Account code of the origin channel
Gets the value of the close on hangup setting
Gets the value of the close on hangup setting
The caller ID number (or “unknown”)
The caller ID name (or “unknown”)
The number which is defined in ANI2 see Asterisk Detailed Variable List (only for PRI Channels)
The presentation for the callerid in a ZAP channel
An optional 4-digit number (Transit Network Selector) used in PRI Channels see Asterisk Detailed Variable List
The type of number used in PRI Channels see Asterisk Detailed Variable List
The originating channel (your phone)
Origin context in extensions.conf
The dialed number id (or “unknown”)
The flag value is 1.0 if started as an EAGI script, 0.0 otherwise
The called number
The language code (e.g. “en”)
Whether this AGI request is over the network
The network path included in the AGI request ie. agi://127.0.0.1:3000/test This value would return 'test'
The priority it was executed as in the dial plan
The referring DNIS number (or “unknown”)
Gets the IP address of the Asterisk Server that initiated the channel
The filename of your script ie. agi
Thread ID of the AGI script
The originating channel type (e.g. “SIP” or “ZAP”)
A unique ID for the call
The version of Asterisk
Returns status of the connected channel.
Optional
channel: stringSends audio file on channel and allows the listener to control the stream.
Optional
skipms: numberOptional
fastForwardCharacter: stringOptional
rewindCharacter: stringOptional
pauseCharacter: stringAttempts to establish a new outgoing connection on a channel, and then link it to the calling input channel.
Stream file, prompt for DTMF, with timeout. Behaves similar to STREAM FILE but used with a timeout option.
Event that is emitted when the underlying socket encounters an error
Event that is emitted when the underlying socket is closed
Event that emitted when the underlying socket times out
Event that is emitted when the channel is ready
Event that is emitted when a response is received from the Asterisk server
Event that emitted when the channel is hung up
Event that emitted when the response from the Asterisk server is processed into a structured response
Event that is emitted when data is sent to the Asterisk server
Records to a given file.
Optional
beep: booleanOptional
silence: numberOptional
offsetSamples: numberAllows you to remove headers which were previously added with PJSIPAddHeader(). If no parameter is supplied, all previously added headers will be removed. If a parameter is supplied, only the matching headers will be removed
Optional
key: string
Represents an AGI Channel