
Asterisk Blog - Page 32
Asterisk cmd MP3Player
Synopsis Plays an MP3 sound file or stream Description MP3Player(location) Executes the mpg123 unix program to play the given location which typically would either be the filename of an MP3 sound file, or the URL of an MP3…
Read More »Asterisk sip reinvite
Notes reinvite=yes/no is plain wrong, even if you see it mentioned in example .conf files. The correct syntax is canreinvite=yes/no See Asterisk sip canreinvite
Read More »Asterisk cmd SendDTMF
Synopsis: Sends arbitrary DTMF digits Description: SendDTMF(digits[,timeout_ms[,duration_ms[,channel]]]) Arguments: Argument Description digits List of digits 0-9,*#,abcd timeout_ms Amount of time, in milliseconds, to wait between tones. (defaults to .25s) duration_ms Duration of each digit, in milliseconds channel Channel where…
Read More »Asterisk Quickstart
10-minute guide to Asterisk Easy tips if you want to get Asterisk up and running on your Linux system within minutes: Download the tarball: Download the Asterisk stable distribution tarball from https://www.voip-info.org/asterisk-mirrors/. Build Asterisk: Unpack the tarball and…
Read More »Asterisk Manager API Action Redirect
Action: Redirect Synopsis: Redirect (transfer) a call Privilege: call,all Description: Redirect (transfer) a call. Variables: (Names marked with * are required) Channel: Channel to redirect ExtraChannel: Second call leg to transfer (optional) Exten: Extension to transfer to Context:…
Read More »Asterisk config codecs.conf
Configuration file for asterisk codecs. Example for Asterisk 1.2: See also bug/patch 2536 [speex] ;0-10 quality => 3 ;0-10 complexity => 4 ; true / false enhancement => true ; true / false vad => false ; true…
Read More »Asterisk Tips IVR Menu
Implementing a Simple ‘Push-1, Push-2’ Menu Structure The key to creating this menu is to create an Extension (defined as 205 below) to record your menu prompts. This will put the sound file in /tmp/asterisk-recording.gsm. You’ll have to…
Read More »Asterisk cmd Goto
Synopsis Jump to a particular priority, extension, or context Description Goto([[context|]extension|]priority) Set the priority to the specified value, optionally setting the extension and optionally the context as well. The extension BYEXTENSION is special in that it uses the…
Read More »Asterisk cmd SIPGetHeader
SIPGetHeader() SIPGetHeader is deprecated, use the * Asterisk func sip_header instead. With this app, you can pick any header from an incoming invite and stuff it into a channel variable. It is a generic way of supporting any…
Read More »Asterisk config manager.conf
Configuration of the Asterisk manager API. Note that activating the manager API opens a TCP port. Make sure you know what you are doing. Maybe it’s enough to just activate this for the local loopback interface, 127.0.0.1. However,…
Read More »Asterisk config extensions.conf sorting
NOTE: All the explained in this page is not true (at least in Asterisk 1.4.X). For example: [example] exten => _918.,1,Dial(Zap/1/${EXTEN}) exten => _.,1,Dial(Zap/2/${EXTEN}) exten => h,1,Hangup The real sort order is: _918. _. h Major change from…
Read More »Asterisk config dundi.conf
Configuration file for DUNDi lookups in Asterisk See also DUNDiLookup Application Asterisk config files DUNDi Enterprise Configuration SIP with no passwords – guide to set up DUNDi for SIP exchange Sample dundi.conf ; DUNDi configuration file ;…
Read More »Asterisk SIP media path
Asterisk SIP media path In a normal SIP proxy, the server is not involved in the media between the phones. With Asterisk, sometimes Asterisk stays in the path. It depends on many variables and configurations. Asterisk mostly sets…
Read More »Asterisk cmd Transfer
Transfer() Synopsis Transfer caller to remote extension Description Transfer([Tech/]dest[|options]) Requests the remote caller be transferred to a given extension. If TECH (SIP, IAX2, LOCAL etc) is used, only an incoming call with the same channel technology will be…
Read More »Asterisk Dial Plan – Working Example
Sample dial plan from working system Description of this dialplan is available at Panasonic KSU [general] ; ; ; static=yes ; ; if static=yes and writeprotect=no, you can save dialplan by ; CLI command ‘save dialplan’ too ;…
Read More »