Expire a number masking session
Number Masking
Session status callback
Configure the “callback_url” with your web server URL to receive important session events and status updates. Plivo passes these events to the callback URL.
Attributes
Name | Type | Description |
---|---|---|
SessionFirstPartyAnswer | event | Triggered when the first party answers the call. |
SessionSecondPartyRing | event | Triggered when the second party’s phone starts ringing. |
SessionSecondPartyAnswer | event | Triggered when the second party answers the call. |
SessionSecondPartyHangup | event | Triggered when the second party disconnects the call. |
SessionFirstPartyHangup | event | Triggered when the first party disconnects the call. |
SessionPinAuthenticationStatus | event | Triggered when the PIN authentication status is success, failed, or if the call is from an authorised caller. |
SessionTimeout | event | Triggered when the session expires. |
SessionVirtualNumberReplaced | event | Triggered when the number in the session is sub-optimal and replaced by a temporary, functional one. Update the virtual number accordingly. |
Callback attributes
For each event, the below attributes will be posted to your web server.
Name | Type | Description |
---|---|---|
EventName | string | Event that triggered this callback. This parameter will have one of the values from the list of events above. |
EventTimestamp | string | Timestamp in UTC at which the event occurred. |
SessionUUID | string | Unique ID of the masking session for which callback is sent. (Note: This field was repeated in the original table) |
From | string | Actual from number used to interact with the virtual number. |
To | string | Actual to number dialing out from the virtual number. |
PinAuthenticationStatus | string | Status of the PIN authentication during the interaction. Possible values: success , failed , AuthorizedCaller Success: When the PIN authentication is successful for either A-party or B-party. Failed: When the PIN authentication failed (incorrect PIN or no input). AuthorizedCaller: When the virtual number is dialed using an authorized caller. |
PinRetryCounter | integer | Indicates the PIN retry counter due to incorrect PIN input. |
VirtualNumber | string | The virtual number used in the session. |
Amount | string | Total amount incurred for the call. |
BilledDuration | string | Duration in seconds for which the call was billed. |
Duration | string | Actual duration of the call in seconds. |
PlivoHangupCause | string | Reason for the call termination. |
PlivoHangupCauseCode | integer | A unique integer code for the termination cause. |
SequenceNumber | string | Indicates the sequence of the callback. Helpful for sorting events posted to the recording_callback_url .null for events: SessionParamUpdate , SessionTimeout , SessionPinAuthenticationStatus . |