# callUser

abstract fun callUser(userId: String, mediaConstraints: MediaConstraints): Call

Makes a call to the user with the given id.

#### Return

A Call instance.

#### Parameters

userId

The app specific id of the user to call. May not be empty.

mediaConstraints

Media constraints for given user call.

#### Throws

IllegalStateException

If SinchClient is not started.

com.sinch.android.rtc.MissingPermissionException

If missing a permission required to place a call.

abstract fun callUser(userId: String, mediaConstraints: MediaConstraints, callHeaders: Map<String, String>?): Call

Makes a call to the user with the given id.

#### Return

A Call instance.

#### Parameters

userId

The app specific id of the user to call. May not be empty.

mediaConstraints

Media constraints for given user call.

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.