makeDirectCall

open fun makeDirectCall(context: Context, guestName: String, sipUri: Uri, host: String, isVideo: Boolean, isVideoConference: Boolean, transport: SipAccountTransport)

Makes a Direct call.

Parameters

context

application context

guestName

name to display when making guest calls

host

sip host

sipUri

sip uri to call in the format: sip:number@realm:port

isVideo

whether the call has video or not

isVideoConference

whether the call is video conference or not

transport

transport to be configured on guest account


open fun makeDirectCall(context: Context, guestName: String, sipUri: Uri, host: String, isVideo: Boolean, isVideoConference: Boolean, transport: SipAccountTransport, srvLookup: Boolean)

Makes a Direct call, optionally resolving the destination through DNS SRV (RFC 3263).

With srvLookup set, a call with no host and no port in sipUri looks up the SRV records of the URI host (_sip._tcp for TCP, _sips._tcp for TLS). That needs PJSIP's resolver, which is configured only when the stack starts: if the stack is not running it is started with it; if it is already running without it, or the device DNS can't be used, the call goes to the URI host on the default port. Without SRV records PJSIP uses the host's A record on the transport's default port.

Parameters

srvLookup

resolve the destination through DNS SRV when possible

See also


open fun makeDirectCall(context: Context, guestName: String, sipUri: Uri, host: String, isVideo: Boolean, isVideoConference: Boolean)