TxClient
Methods
getCall(callId:)
- Parameter callId: The unique identifier of a call.
- Returns: The
Callobject that matches the requestedcallId. Returnsnilif no call was found.
Parameters
| Name | Description |
|---|---|
| callId | The unique identifier of a call. |
newCall(callerName:callerNumber:destinationNumber:callId:clientState:customHeaders:debug:)
- Parameters:
- callerName: The caller name. This will be displayed as the caller name in the remote’s client.
- callerNumber: The caller Number. The phone number of the current user.
- destinationNumber: The destination
SIP user address(sip:[email protected]) orphone number. - callId: The current call UUID.
- clientState: (optional) Custom state in string format encoded in base64
- customHeaders: (optional) Custom Headers to be passed over webRTC Messages, should be in the
format
X-key:ValueXis required for headers to be passed.
- Throws:
- sessionId is required if user is not logged in
- socket connection error if socket is not connected
- destination number is required to start a call.
- Returns: The call that has been created
Parameters
| Name | Description |
|---|---|
| callerName | The caller name. This will be displayed as the caller name in the remote’s client. |
| callerNumber | The caller Number. The phone number of the current user. |
| destinationNumber | The destination SIP user address (sip:[email protected]) or phone number. |
| callId | The current call UUID. |
| clientState | (optional) Custom state in string format encoded in base64 |
| customHeaders | (optional) Custom Headers to be passed over webRTC Messages, should be in the format X-key:Value X is required for headers to be passed. |
processVoIPNotification(txConfig:serverConfiguration:pushMetaData:)
- Parameters:
- txConfig: The desired configuration to login to B2B2UA. User credentials must be the same as the
- serverConfiguration : required to setup from VoIP push notification metadata.
- pushMetaData : meta data payload from VOIP Push notification (this should be gotten from payload.dictionaryPayload[“metadata”] as? [String: Any])
- Throws: Error during the connection process
Parameters
| Name | Description |
|---|---|
| txConfig | The desired configuration to login to B2B2UA. User credentials must be the same as the |
| serverConfiguration | required to setup from VoIP push notification metadata. |
| pushMetaData | meta data payload from VOIP Push notification (this should be gotten from payload.dictionaryPayload[“metadata”] as? [String: Any]) |