Functions 224

Dialplan functions return or set values and are used inside expressions, Set(), and GotoIf() conditions.

Explore other reference groups

Tags: All function 224 dialplan 217
Cheat Sheet
Select 2-6 entries:
C
CALENDAR_BUSY() Determine if the calendar is marked busy at this time. CALENDAR_EVENT() Get calendar event notification data from a notification call. CALENDAR_QUERY() Query a calendar server and store the data on a channel CALENDAR_QUERY_RESULT() Retrieve data from a previously run CALENDAR_QUERY() call CALENDAR_WRITE() Write event data to a calendar entry from the Asterisk dialplan. Set fields like summary, descriptio... CALLCOMPLETION() Get or set a call completion configuration parameter for a channel. CALLERID() Gets or sets Caller*ID data on the channel. CALLERPRES() Gets or sets Caller*ID presentation on the channel. CDR() Read or set Call Detail Record fields in the dialplan. Access standard CDR fields (src, dst, duratio... CDR_PROP() Set a property on a channel's CDR. CHANNEL() Gets/sets various pieces of information about the channel, additional item may be available from the... CHANNELS() Gets the list of channels, optionally filtering by a regular expression. CHANNEL_EXISTS() Checks if the specified channel exists. CHECKSIPDOMAIN() Checks if the domain in the argument is configured as a local SIP domain that this Asterisk server i... CONFBRIDGE() Set a custom dynamic bridge, user, or menu profile on a channel for the ConfBridge application using... CONFBRIDGE_CHANNELS() Get a list of channels in a ConfBridge conference. CONFBRIDGE_INFO() Get information about a ConfBridge conference. CONNECTEDLINE() Gets or sets Connected Line data on the channel. CSV_QUOTE() Quotes a given string for use in a CSV file, escaping embedded quotes as necessary CURL() Retrieve content from a remote web or ftp server CURLOPT() Sets various options for future invocations of CURL. CUT() Slices and dices strings, based upon a named delimiter.
P
PARK_GET_CHANNEL() Get the channel name of an occupied parking space in a parking lot. PASSTHRU() Literally returns the given string. The intent is to permit other dialplan functions which take a va... PERIODIC_HOOK() Execute a periodic dialplan hook into the audio of a call. PITCH_SHIFT() Pitch shift both tx and rx audio streams on a channel. PJSIP_AOR() Get information about a PJSIP AOR PJSIP_CONTACT() Get information about a PJSIP contact PJSIP_DIAL_CONTACTS() Return a dial string for dialing all contacts on an AOR. PJSIP_DTMF_MODE() When read, returns the current DTMF mode When written, sets the current DTMF mode This function uses... PJSIP_ENDPOINT() Get information about a PJSIP endpoint PJSIP_HEADER() Read, add, update, or remove SIP headers on PJSIP channels. Use PJSIP_HEADER to inspect inbound head... PJSIP_HEADERS() Gets the list of SIP header names from an INVITE message. PJSIP_HEADER_PARAM() Get or set header/URI parameters on a PJSIP channel. PJSIP_INHERITABLE_HEADER() Adds, updates or removes the specified SIP header from a PJSIP or non-PJSIP channel to be inherited ... PJSIP_MEDIA_OFFER() Media and codec offerings to be set on an outbound SIP channel prior to dialing. PJSIP_MOH_PASSTHROUGH() Get or change the on-hold behavior for a SIP call. PJSIP_PARSE_URI() Parse a URI and return a type part of the URI. PJSIP_PARSE_URI_FROM() Parse the contents of a variable as a URI and return a type part of the URI. PJSIP_RESPONSE_HEADER() Gets headers of 200 response from an outbound PJSIP channel. PJSIP_RESPONSE_HEADERS() Gets the list of SIP header names from the 200 response of INVITE message. PJSIP_SEND_SESSION_REFRESH() W/O: Initiate a session refresh via an UPDATE or re-INVITE on an established media session PJSIP_TRANSFER_HANDLING() Set how transfers are handled for a PJSIP channel. POLARITY() The POLARITY function can be used to set the polarity of a DAHDI channel. Applies only to FXS channe... POP() Removes and returns the last item off of a variable containing delimited text PP_EACH_EXTENSION() Output the specified template for each extension associated with the specified MAC address. Asterisk... PP_EACH_USER() Pass in a string, with phoneprov variables you want substituted in the format of %\{VARNAME\}, and y... PRESENCE_STATE() The PRESENCE\STATE function can be used to retrieve the presence from any presence provider. Asteris... PUSH() Appends one or more values to the end of a variable containing delimited text
S
SAYFILES() Returns the ampersand-delimited file names that would be played by the Say applications (e.g. SayAlp... SCRAMBLE() Scrambles audio on a channel using whole spectrum inversion. This is not intended to be used for sec... SET() SET assigns a value to a channel variable. SHA1() Computes a SHA1 digest. SHARED() Implements a shared variable area, in which you may share variables between channels. Asterisk dialp... SHELL() Executes a command using the system shell and captures its output. SHIFT() Removes and returns the first item off of a variable containing delimited text SIPPEER() ### Syntax SIPPEER(peername,item). Asterisk dialplan function reference. SIP_HEADER() Reads a named SIP header from an incoming INVITE message. Supports indexed access for repeated heade... SIP_HEADERS() Gets the list of SIP header names from an incoming INVITE message. SMDI_MSG() Is used to access details of an SMDI message that was pulled from the incoming SMDI message queue us... SMDI_MSG_RETRIEVE() Is used to retrieve an incoming SMDI message. It returns an ID which can be used with the SMDI\_MSG(... SORT() Sorts a list of key/vals into a list of keys, based upon the vals. SPEECH() Gets information about speech recognition results. SPEECH_ENGINE() Get or change a speech engine specific attribute. SPEECH_GRAMMAR() Gets the matched grammar of a result if available. SPEECH_RESULTS_TYPE() Sets the type of results that will be returned. Valid options are normal or nbest. Asterisk dialplan... SPEECH_SCORE() Gets the confidence score of a result. SPEECH_TEXT() Gets the recognized text of a result. SPRINTF() Parses the format string specified and returns a string matching that format. Supports most options ... SQL_ESC() Escapes single ticks for use in SQL statements. SQL_ESC_BACKSLASHES() Escapes backslashes for use in SQL statements. SRVQUERY() Initiate an SRV query. SRVRESULT() Retrieve results from an SRVQUERY. STACK_PEEK() Read the calling 'c'ontext, 'e'xtension, 'p'riority, or 'l'abel, as specified by which, by going up ... STAT() > Note > > If 'live_dangerously' in 'asterisk.conf' is set to 'no', this function can only be execut... STIR_SHAKEN() Gets the number of STIR/SHAKEN results or a specific STIR/SHAKEN value from a result on the channel. STIR_SHAKEN_ATTESTATION() Sets STIR/SHAKEN Attestation parameters on an outgoing channel. STRBETWEEN() Inserts a substring between each character in a string. STRFTIME() Returns the current date/time in the specified format. STRPTIME() Returns the epoch of the arbitrary date/time string structured as described by the format. STRREPLACE() Replace instances of a substring within a string with another string. SYSINFO() Returns system information specified by parameter.