
Asterisk Blog - Page 12
Asterisk Queue Callback
This feature allows a caller holding in your queue to press ‘1’ and enter a phone number to be called back at when their slot in line comes up next. Note: This requires Asterisk 1.2 To accomplish this,…
Read More »Asterisk cmd RetryDial
RetryDial This is simply a variant of the Dial command. RetryDial(announce|sleep|loops|Technology/resource[&Technology2/resource2…[|timeout[|options[|URL]]]]) Synopsis Place a call, retrying on failure allowing optional exit extension. Description Attempt to place a call. If no channel can be reached, play the file defined…
Read More »Asterisk func strftime
STRFTIME Formats the datetime Synopsis STRFTIME([<epoch>][,[<timezone>][,<format>]]) Description Formats the time specified by <epoch>, localized to <timezone>. The format comes directly from the underlying C function strftime(3). If <epoch> is not specified, defaults to the current time. <timezone> likewise…
Read More »Asterisk Functions
Asterisk functions are used in Asterisk‘s dialplan. Unlike dialplan applications, they cannot be used directly. Instead they return a value that could be used by the dialplan logic. Page Contents Function List Using functions in Asterisk dialplans Functions…
Read More »Asterisk PHP
Asterisk PHP (scripting within the dialplan) Introduction Asterisk PHP allows you to control the dial-plan and write applications for Asterisk in PHP. This is faster and more flexible than phpAGI. The PHP extensions can be found at…
Read More »Asterisk Realtime Voice Pitch Changer
Asterisk Voice Changer is a dial-like application written for Asterisk by Justin Tunney using the SoundTouch Library. This application is currently in a beta state and should not be used on a production system. The author of the…
Read More »Asterisk func db
DB AstDB access function Synopsis DB(family/key) Description DB provides inline access to the values in the Asterisk Database without executing a separate application. DB may be both read from and written to. On a read, this function returns…
Read More »Asterisk cmd While
While Loop until condition is false Synopsis While(condition) Description Execution loops between a While and an EndWhile statement, until the condition specified in the While evaluates to false. The condition is evaluated once per loop, at the beginning….
Read More »Asterisk SIP pedantic
Syntax pedantic=yes|no Default no Description Enable slow, pedantic checking of Call-ID:s, multiline SIP headers and URI-encoded headers. Notes If you have a problem with the “#” sign (shown as “%23”), try to set this option to yes.
Read More »Asterisk queue_log on MySQL
Converting to a more readable format for Asterisk 13 added `agent` field in `call_status` table (by linvinus) `callid` field moved to varchar(32) in all tables (same as in `cdr` table) modified `update_processed` and `bi_queueEvents` trigges for data1,data2,data3 fields…
Read More »Asterisk cmd Return
Return Return from a Gosub or GosubIf Synopsis Return() 1.4 Return(value) 1.6/1.8 the value is stored in GOSUB_RETVAL See also Gosub: Jump to a context/extension/priority (new in v1.2) GosubIf: Conditional Gosub (new in v1.2) Goto: Jump to a…
Read More »Asterisk cmd GosubIf
GosubIf Conditionally jump to a particular priority, extension, or context, saving the return address. Synopsis GosubIf(condition?[label1][:label2]) Asterisk 1.6 and up (?): GosubIf(condition?[labeliftrue[(arg1[,…][,argN])]][:labeliffalse[(arg1[,…][,argN])]]) Description If condition is true and label1 points to a existing context|extension|priority or extension|priority or priority,…
Read More »Asterisk cmd Gosub
Gosub Jump to a particular priority, extension, or context, saving the return address. Synopsis Since: Asterisk 1.2 Asterisk 1.2, 1.4 Gosub([[[[context|]extension|]priority) Asterisk 1.6 Gosub([[[[context|]extension|]priority(arg1,arg2,…)) Asterisk 10 Gosub([[context,]exten,]priority[(arg1[,…][,argN])]) Description Set the priority to the specified value, optionally setting the…
Read More »Asterisk cmd Page
Page() Synopsis Pages phones, i.e. transmit a message thru multiple phone (and/or their loudspeakers) Description Page(Technology/Resource&Tech2/Res2…[|options]) Places outbound calls to the given technology/resource and dumps them into a conference bridge as muted participants (if the ‘d’ option is…
Read More »Asterisk cli show hints
Note This command just lists hints registered in extensions.conf. NOTE: This command has changed to “core show hints” in Asterisk 1.2. Hints will always show available on SIP unless lines have a call-limit The state field indicates the…
Read More »