In this tutorial we will introduce to you the commands(applications) you can use in extensions.conf. With their help you can make your dial plan, control and manage your calls.
NOTE: These applications are valid for the Asterisk version 1.0.9
NOTE:Information about the functions could be obtained by typing the command show functions
Information about a particular function could be obtained by typing show function <function name> on the Asterisk CLI
These applications are tested with our IAX softphone Idefisk. You could download it from here. For more information about this softphone please read our tutorial.
If you would like to test this application with the SIP channel you could read our tutorials about the SIP Softphones to learn how to configure them to work with Asterisk PBX
2. List of all dial plan applications
1) General Commands
01. Authenticate - authenticate an user with a dialed pass code. You can use it if you what to restrict the access to the system. This application will require a password to be entered in order to continue with the execution.
02. SendDTMF - this application sends DTMF digits on a channel.
03. SendImage - this application allows you to send an image file to the caller.
04. SendText - this application allows you to send a text to the caller. You can use it to send a message before the connection and for advertising
05. SendURL- this application requests from the client to go to a specific URL.
06. System - this application could be useful if you want to execute a system command.
07. TrySystem - this application is very similar to System.
08. Wait - as you can conclude from the name of this application, it could be used for setting a definite period of time for waiting.
09. WaitMusicOnHold - this application plays a music on hold.
10. WaitExten - a variety of the command Wait.
11. WaitForRing(UNDER CONSTRUCTION) - this application waits the Ring application to be executed.
12. Transfer - this application is used when you want to transfer the caller to a remote connection.
2) Call Management (hangup, answer, dial, etc)
01. Answer - the purpose of this application is to answer a channel if it is ringing.
02. Busy - indicates busy mode.
03. ChanIsAvail - this application makes a check whether the channel is free.
04. Congestion - indicates congestion mode
05. Ringing - indicates ringing tone.
06. DISA - this application allows somebody from outside the PBX to make calls as if he is inside.
07. Hangup- just hanging up the line.
08. Dial(UNDER CONSTRUCTION) - this application makes a call and connect to a channel.
3) Control Flow and Timeouts
01. AbsoluteTimeout - with this application you can limit the duration of the call
02. DigitTimeout - this application sets the maximum time between two digits
03. Goto - with this application you can go to a particular priority, extension or context
04. GotoIf - a variety of GoTo.
05. GotoIfTime - similar to GoTo and GoToIf but you can add and a time.
06. Random - this application could be used if you wand to choose a random context, extension or priority
07. ResponseTimeout - this application sets the maximum time to wait for a response.
4) Sounds: Playing and Recording
01. Playback - this application plays a sound file
02. ControlPlayback - this application can play sound file. It also can control it.
03. MP3Player - with this application you can play a .mp3 files
04. Background - with this application you can play a sound file.
05. BackgroundDetect - whit this application you can play a sound file in the background and to stop it by voice
06. Playtones - whit this application you can play tones such as busy, congestion and etc.
07. StopPlaytones - whit this application you can stop the playing of a tone
08. SayUnixTime - this application says the date and the time
09. SayAlpha - this application says a specified string character by character.
10. SayDigits - this application says a specified number digit by digit.
11. SayNumber - this application says a specified number.
12. SayPhonetic - this application will say a specified string according to the NATO phonetic alphabet
13. Record - with this application you can record a message
14. Dictate - with this application you are allowed to record a voice and to store it in a file.
15. Monitor - with this application you can record a conversation
16. MixMonitor - with this application you are allowed to record conversations. It is an updated version of the Monitor application.
17. ChangeMonitor - with this application you can change the filename used by the Monitor application
18. StopMonitor - this application stops the action of the Monitor one
19. MusicOnHold - this application plays music on hold
20. SetMusicOnHold - this application sets a class for music on hold
21. Echo - this application returns the outgoing audio from a channel back to the channel
22. Milliwatt - this application generates an endless signal
23. SetLanguage - this application changes the preferable language
24. Festival(UNDER CONSTRUCTION) -
5) Caller presentation (ID, Name etc)
01. LookupBlacklist - this application checks the Asterisk`s database for blacklisted caller IDs
02. LookupCIDName - this application checks in the Asterisk`s database for the caller number
03. Zapateller - this application plays tone used for blocking a telemarketers
04. SetCallerID - this application sets the ID of the caller.
05. SetCIDName - this application could change the Caller ID Name
06. SetCIDNum - this application could change the Caller ID Number
07. SetCallerPres(UNDER CONSTRUCTION) -
08. CallingPres(UNDER CONSTRUCTION) -
09. PrivacyManager(UNDER CONSTRUCTION) -
10. SoftHangup(UNDER CONSTRUCTION) -
6) Database handling
01. DBdel - this application could remove a key from the Asterisk`s database
02. DBdeltree - this application removes a key tree from the Asterisk`s database
03. DBget - this application retrieves a value from the Asterisk`s database
04. DBput - this application stores a value in the Asterisk`s database
7) Voicemail and conferencing
01. Directory - this application says a list of extensions.
02. VoiceMail - this application could leave a voice message in a voicemail box
03. VoiceMailMain - this application gives you an access to the Asterisk’s voicemail system
04. HasNewVoicemail - this application checks for new message in a specified mailbox
05. HasVoicemail - this application is improved version of the previous one.
06. MailboxExists - this application checks whether a specified mailbox exist.
07. MeetMe - this application allows you to create an conference calls.
08. MeetMeCount - this application gives you information about the number of participants in a conference.
09. MeetMeAdmin(UNDER CONSTRUCTION)
8) String & variable manipulation
01. Cut - this application could cut strings
02. Prefix - this application adds digits in front of the extension number
03. Suffix - this application adds digits in the end of the extension number
04. StripLSD - this application removes digits from the end of the extension number
05. StripMSD - this application removes digits from the beginning of the extension number
06. Set - this application sets a value to a variable
07. SetVar - this application is deprecated. Use the Set application.
08. SetGlobalVar - this application could set a value to a global variable.
09. SubString -
9) Queue and ACD management
01. Queue - thanks to this application you can attach a call in a queue.
02. AddQueueMember - with this application you can add an agent(member) in your queue.
03. AgentCallbackLogin - the application allows you to log in an agent, into a queue, with callback.
04. AgentLogin - the application allows you to log in an agent into a queue.
05. RemoveQueueMember - this application allows you to remove, dynamically, an agents or members, from a queue.
06. PauseQueueMember - this application allows you to stop, temporary, the answering of calls in the queue, from a specific member.
07. UnpauseQueueMember - the usage of this application will cancel the effect of the PauseQueueMember application.
08. AgentMonitorOutgoing - this application allows you to figure out the Caller ID of the agent, who is making an outgoing call.
09. ParkedCall - this application answers parked calls
10. Park - this application allows you to park yourself.
11. ParkAndAnnounce
10) Application integration
01. NoOp - this application could be used for debugging.
02. Macro - this application is used for executing a macro.
03. MacroIf - this application executes macro if some condition is true or false.
04. MacroExit - this application allow you to exit from a macro.
05. Read - this application reads a variable.
06. ReadFile - this application reads a file.
07. TXTCIDName
08. UserEvent
09. EnumLookup
10. AGI
11. EAGI
12. DeadAGI
11) Fax
01. RxFax - this application allows you to receive faxes from a fax machine to the Asterisk
////---- All tutorials below this point are under construction ----////
12) Billing
01. ForkCDR - this application forks the Call Data Record(CDR)
02. NoCDR - this application prevent Asterisk PBX to safe the CDR for certain call
03. ResetCDR - this application resets the CDR
04. SetAccount - this application sets an account code for billing purposes.
05. SetAMAflags - this application sets AMA flags
06. SetCDRUserField - this application set the CDR user field with a value
07. AppendCDRUserField - very similar to the previous one this application appends a value to the CDR user field.
Michaelgycle (thincariper1989ytavip at yandex dot ru) 25 February 2019 13:00:39 cialis delivered switzerlandreal cialis no prescription36 hour cialis onlinecialis price history <a href="https://skylensnw.com/">cialis 20mg</a>
https://skylensnw.com
https://italentos.win/wiki/Buycialis20mgaustralia
https://vw88love.com/forum/profile.php?section=personality&id=297623
http://jacobsongilliam2.ebook-123.com/post/cialis20mgprivateprescription
Mrigraj SIngh (mmrrigg at gmail dot com) 19 August 2017 15:13:29 Hello, we have developed a simple iOS and Android application using PjSIP,
When we hold a call on one device, we are not getting any event on another about the remote device has put the call on hold.
Is there any way to identify it?
Any help is highly appriciated.
Jenibelle (ka6bi5klaxd at gmail dot com) 16 April 2017 03:33:19 Your post captures the issue peyfrctle! http://zfsjou.com [url=http://yxqsep.com]yxqsep[/url] [link=http://uaxdtuzyb.com]uaxdtuzyb[/link]
Lyzbeth (twb09hkl at hotmail dot com) 14 April 2017 13:59:40 How neat! Is it really this siepml? You make it look easy. http://zmlefvcytq.com [url=http://zphyebd.com]zphyebd[/url] [link=http://xtgplnn.com]xtgplnn[/link]
Rochi (jz0pij43mum at outlook dot com) 13 April 2017 15:19:24 Dag nabbit good stuff you <a href="http://oognnhxdtb.com">whpepersnapiprs!</a>
andhikapratiwi (andhikapratiwi26 at gmail dot com) 21 September 2015 05:11:17 hei..how about video call? and how about if i set withe different context.
sachin (ss7596691 at gmail dot com) 29 May 2009 18:01:23 hii sir i am confugear asterisk but sum anatthor problam fasing ivr. is not confugear
give me exesonin.conf file how to confugear fill in asterisk server
somu (shanya at shanya dot com) 22 September 2008 07:04:55 sss
Johnny (johno at sjdklfj dot com) 18 May 2008 06:18:11 I'd recommend people take a look at the Asterisk integration offered by PhoneSpamFilter.com. One simple script is all that's required to stop telemarketers from ringing your phone.
souvik (souvik_sadhu at yahoo dot com) 20 September 2007 11:20:25 HI..
Can anydody please tell me what i have to write in extension.conf file to get incoming call in my pstn desktop phone from TDM card.??
in my incoming context i have written==
exten => 6561,1,Dial(Zap/1)
exten => 6561,1,Dial(SIP/6561)
but i m not getting any incoming call in this phone.
what exactly i have to write for this incoming call
thanks in advance
souvik
ishaq hussain (x_26230 at yahoo dot com) 22 March 2007 10:01:03 wat abt call waiting and call transfer.please tell me seperately abt the configuration of the two as i m new to both asterisk and linux
ishaq hussain (x_26230 at yahoo dot com) 22 March 2007 09:58:44 how to do conference calling(zap dummy driver)with asterisk in linux operating environment.
ishaq hussain (x_26230 at yahoo dot com) 22 March 2007 09:34:34 i m working on the project which is a software based PBX.i have to use asterisk with LINUX as my OS.i have to make a dial plan for all the users for SIP channels,20 internal clients and 2 external clients.i have to make a voicemail box for each user using mysql.i have to make billing system for calling the external client.also have to do conference calling(zap dummy driver).also have to implement call waiting,caller identification,audio on hold and call transfer.for all this i have to provide the config files.how shall i proceed.how much time it is going to take.any tutorials to help me in this.i will be grateful to u.
LeSonPhat (herowater1 at yahoo dot com) 02 November 2006 05:51:01 I am trying to form the Real Time in mysql. already I did everything what indicated in http://www.voip-info.org/wiki-Asterisk+RealTime but does not work yet. When I used command: realtime load sipusers username 2000. Then asterisk have a alert: Segmentation fault. why error, please, can you send me a tutorial of RealTime whith MySQL?