Session Object
Number Masking
Update a number masking session
The following resource allows you to update the session.
POST
Attributes
Name | Type | Description |
---|---|---|
record | boolean | Recording status for a phone call. Defaults to false . If set to true :
|
recording_callback_url | string | URL to which the call recording is sent. |
record_file_format | string | Audio format for the recording. Allowed values: mp3 , wav . Defaults to mp3 . |
recording_callback_method | string | HTTP verb to invoke the URL configured as recording_callback_url . Allowed values: GET , POST . Defaults to POST . |
session_expiry | integer | Time in seconds after which the session mapping will end. Calls made to the virtual phone number after the session ends are not forwarded to the other party. The default answer_url or application_url associated with the virtual number will be activated. Defaults to 3,600. |
call_time_limit | integer | Time in seconds after which the call will be disconnected. This applies to all call legs within a session. Default: 3,600 |
callback_url | string | URL to receive important session events and status updates. |
callback_method | string | HTTP verb to invoke the URL configured as callback_url . Allowed values: GET , POST . Defaults to POST . |
ring_timeout | integer | Time in seconds after which the ring will be disconnected. Applies to both call legs. Defaults to 120. |
first_party_play_url | string | URL that returns an .mp3 or .wav file to be played to the first party before connecting to the second party. |
second_party_play_url | string | URL that returns an .mp3 or .wav file to be played to the second party before connecting to the first party. |
first_party | string | The actual phone number of the first participant. This update is applicable only when the session is created with create_session_with_single_party set to true. |
second_party | string | The actual phone number of the second participant. An update is applicable only when the session is created with create_session_with_single_party as true. |