# callSip

abstract fun callSip(sipUri: String): Call

Makes a SIP call to the user with the given sip uri. The identity should be in the form "user@server".

#### Return

A Call instance.

#### Parameters

sipUri

SIP URI to dial in to.

#### Throws

IllegalStateException

If SinchClient is not started.

IllegalArgumentException

If the size of all header strings exceeds 1024 bytes when encoded as UTF-8.

com.sinch.android.rtc.MissingPermissionException

If missing a permission required to place a call.

abstract fun callSip(sipUri: String, callHeaders: Map<String, String>?): Call

Makes a SIP call to the user with the given sip uri. The identity should be in the form "user@server".

#### Return

A Call instance.

#### Parameters

sipUri

SIP URI to dial in to.

callHeaders

Headers to pass with the call.

#### Throws

IllegalStateException

If SinchClient is not started.

IllegalArgumentException

If the size of all headers strings exceeds 1024 bytes when encoded as UTF-8.

com.sinch.android.rtc.MissingPermissionException

If missing a permission required to place a call.

abstract fun callSip(sipUri: String, cli: String?): Call

Makes a SIP call to the user with the given sip uri. The identity should be in the form "user@server".

#### Return

A Call instance.

#### Parameters

sipUri

SIP URI to dial in to.

cli

Identifier of the caller.

#### Throws

IllegalStateException

If SinchClient is not started.

IllegalArgumentException

If sipUri exceeds 64 characters.

com.sinch.android.rtc.MissingPermissionException

If missing a permission required to place a call.

abstract fun callSip(sipUri: String, cli: String?, callHeaders: Map<String, String>?): Call

Makes a SIP call to the user with the given sip uri. The identity should be in the form "user@server".

#### Return

A Call instance.

#### Parameters

sipUri

SIP URI to dial in to.

cli

Identifier of the caller.

callHeaders

Headers to pass with the call.

#### Throws

IllegalStateException

If SinchClient is not started.

IllegalArgumentException

If the size of all headers strings exceeds 1024 bytes when encoded as UTF-8.

com.sinch.android.rtc.MissingPermissionException

If missing a permission required to place a call.