
Asterisk Blog - Page 35
Asterisk cmd ControlPlayback
Synopsis Plays a sound file with fast forward, rewind and stop controls. Description ControlPlayback(filename[|skipms[|ff[|rew[|stop[|pause[|restart|options]]]]]]]) Note: New version Asterisk (about 1.6 above), the Optional Parameters separated by the , character not | This application will play back the given…
Read More »Asterisk cmd Playtones
Synopsis Play a tone list Description Playtones(tonename) Playtones(tonelist) Plays a tone list, either the tone named tonename defined in the indications.conf file, or a directly specified tonelist of frequencies and durations. See indications.conf for a description of the…
Read More »Asterisk h extension
The h extension Gets executed after a call has been terminated. Use DeadAGI instead of AGI here. Do not call Hangup from within the h extension. When the ‘h’ extension is running, the call legs have already been…
Read More »Asterisk Dialplan Globals
Dialplan Global Variables Dialplan global variables and their initial values are defined in the extensions.conf file following the Dialplan General Settings. The global variables section begins with the header: [globals] Following this header you may define global variables…
Read More »Asterisk cmd Congestion
Description Congestion([timeout]) Sends a signal to inform the channel of congestion. This command waits for the user to hang up unless the optional timeout has been specified; it does not continue execution of further commands. On a SIP…
Read More »Asterisk MGCP channels
The MGCP channel in Asterisk Apparently the MGCP channel supports the following CLASS service codes: – blind transfer FLASH – consultative transfer 67 – Calling Number Delivery Blocking 70 – Cancel Call Waiting 72 – Call Forwarding Activation…
Read More »Asterisk Voicemail Dialplan
How to transfer or forward to voicemail mailboxes Assume you have 3 digit extensions 100 – 199, then you can put something like this in the dialplan to allow users to transfer calls directly to a mailbox by…
Read More »Asterisk config rtp.conf
rtp.conf Configuration of Asterisk Real Time Protocol, RTP, media channels. RTP is used for SIP communication. Details On your router you might want to arrange both traffic shaping (QoS) and port forwarding (in case of NAT) for the…
Read More »Asterisk cmd SubString
Note: This command is completely obsolete and has been removed Synopsis: Save substring digits in a given variable Description: SubString(variable=string_of_digits|count1|count2) Assigns the substring of string_of_digits to a given variable. Parameter count1 may be positive or negative. If it’s…
Read More »Asterisk sip permit-deny-mask
IP address mask for SIP traffic In a user/peer definition in Asterisk config sip.conf, you may limit SIP traffic to and from this peer to a certain IP or network Syntax permit=<ipaddress>/<network mask> deny=<ipaddress>/<network mask> Order Matters! –…
Read More »Asterisk options
Starting Asterisk -c: Console mode. Don’t go into background mode, stay in foreground with a command line interface (implies -f) -C <filename>: Start Asterisk with a specified configuration file -d: Debug mode -f: Stay in foreground mode -g:…
Read More »Asterisk “s” extension
The “s” extension is used when there is no known called number in the context used. The “s” extension is used when starting a call. It is also used when defining a macro. Incoming calls are always placed…
Read More »Asterisk sip fromuser
Fromuser= and fromdomain= This is used when calling TO this peer FROM asterisk. If you’re using _register=>_ with another SIP proxy, this setting can come in handy since some SIP networks only allow users in the right domain…
Read More »Asterisk t extension
t (lower case t): Timeout extension in context. T (capital T): Timeout on AbsoluteTimeout Asterisk standard extensions Asterisk cmd ResponseTimeout Asterisk cmd AbsoluteTimeout: Setting the maximum call time Asterisk config extensions.conf: The dial plan Asterisk | Tips &…
Read More »Asterisk cmd AbsoluteTimeout
Synopsis: Set absolute maximum time of call Status: Deprecated in 1.2 in favor of TIMEOUT(absolute) function Removed in 1.4 Description: AbsoluteTimeout(seconds) Set the absolute maximum amount of time permitted for a call. A setting of 0 disables the…
Read More »