Pivot Request Parameters

Pivot sends some general parameters alongside call’s parameters to developer servers. Parameters are either passed as URL encoded query string when req_body_format is set to form, or in the request body when req_body_format is set to json and method is post.

Parameters

These parameters are sent in every request. The table below shows the name of these parameters. Pivot TwiML parameters are used when req_format is twiml, and Callflow parameters is used when req_format is kazoo.

Callflow ParametersPivot TwiML ParametersDescription
Account-IDAccountSidThe account id receiving the call
Api-VersionApiVersionThe version of the API
Call-IDCallSidThe unique call identifier
Caller-ID-NameCallerNameCaller ID Name
Caller-ID-NumberCallerNumberCaller ID Number
DirectionDirectionThe direction of the call, relative to 2600Hz: outbound if 2600Hz originated the call, inbound otherwise
From-RealmFromRealmFrom SIP realm
FromFromCaller’s number, if available
Language-The caller’s language preference
To-RealmToRealmTo SIP realm
ToToDialed number, SIP endpoint or user
User-ID-The User ID(s) of the caller

Optional Parameters

The request may include these parameters after certain callflow modules or Pivot TwiML terms are executed.

Callflow ParametersPivot TwiML ParametersDescription
Call-StatusCallStatusStatus of the call
Custom-Application-Vars-Custom application variables set on the call channel
Custom-SIP-Headers-Custom SIP Headers set on the call channel
DialCallDurationDialCallDurationHow many billable seconds in the call
DialCallSidDialCallSidCall-ID of the b-leg
DialCallStatusDialCallStatusCall status of the b-leg
DigitsDigitsAny DTMF (or collection of DTMFs) pressed
Recording-DurationRecordingDurationHow long the recording is
Recording-IDRecordingSidThe recording id
Recording-UrlRecordingUrlThe URL that can be used to retrieve the recorded media
Request-Realm-
Request-
User-ID-