1. Playtones - this application allows you to play a list of tones.
NOTE: This application is valid for Asterisk version 1.0.9 and above.
Syntax:
Playtones() ; write as argument the tone from the tonelist, which you would like to play.
Purpose and usage
This application can be used for playing standard tones or a list of playtones. Commonly it is used in combination with another dialplan application such as Busy or Congestion.
To see how the application works you also need a softphone. You can read our tutorials about the softphones. They can help you to pick one of them and to learn how to configure it to work with Asterisk PBX.
Asterisk PBX configurations
NOTE: This is only an example of what for you can use this application. Of course you can use it and for other things.
We need two registered users in iax.conf file. This is because we are going to use the IAX2 protocol. If you want to use other protocol such as SIP or MGCP, you have to do the configurations below respectively in sip.conf or mgcp.conf.
So, we have registered the users anatoliy and ivan
Type=friend means that this user can make and receive calls. Host=dynamic means that the IP is not static but dynamic through a DHCP server. Allow=all means that the line which this user will use, could support all audio codecs. Context=test - this shows that this user is working with the extensions in this context of the configuration file extensions.conf.
In our example when somebody dials 100, the call will be answered by the Answer application. The next executed extension will be the one which contains the Playtones application. As argument in the brackets you can set the desired tone or list of tones. In our example this is the tone - congestion. The next extension will be executed immediately, while the tone is still running. In our example we have set in our next extension the Wait application with argument for 10 seconds. In this way the caller will hearing the congestion signal for 10 seconds and then the execution will continue with the next extension which contains the Dial application. Thanks to it the caller will be connected to the user ivan through the IAX2 channel.
The list of tones can be checked in the indications.conf file. There you can change the parameters of the tones, but we recommend you to leave them as they are set by default.
NOTE: Please, pay attention that we are talking about the IAX2 channel. When you are using the SIP channel, you can use applications such as Busy or Congestion instead of Playtones(busy) or Playtones(congestion). The effect will be the same and you can limit the duration of the signal without using the Wait application.
NOTE: When you are going to use the Playtones application, you always have to use the Answer application before that. Otherwise you won’t be able to hang up the line from your softphone and you will be constrained to restart it.
It is always a good idea to make an extension for hanging up in order to be sure that the Asterisk PBX will close the line after the conversation is over
2. Screenshots of what you can see on the CLI of the Asterisk PBX
3. Additional information
For more information about extensions.conf you can check here.
For more information about iax.conf you can check here.
clomiphene citrate 50mg tab (winnie-wheller73 at tolbe dot ml) 03 July 2020 15:10:03 clomiphene citrate 50mg tab https://salemeds24.wixsite.com/clomid
AAssusHATKaws (serbFerswrendy at clifors dot xyz) 21 June 2020 20:16:17 <a href="https://cialisle.com/">cialis erectile dysfunction</a>
Ariana (892ukvbe at outlook dot com) 19 December 2015 15:16:15 Hi Clint!Great article. You have <a href="http://clpdiiqkv.com">chnaged</a> default.xml to send only call to 1005. And such scenario is even more powerfull. I would like to send calls to plivo according to dialplan. Is there a way to pass some variable from dialplan rule to plivo so that plivo would use this variable as answer url, insted of default one. Is there a way or only to hack plvo source code?
Deles (j5ken0ytlhi at yahoo dot com) 19 December 2015 10:05:29 Hi Clint,This is a great article. By using your defualt.xml file, I am able to make calls using the regular extensions and the freeswitch functions properly.But when I am dialing the 1005 extension. my freeswitch shows a 407 & 480 error on the console. I am able to access the php file through the web browser.Kindly please give me some pointers regarding what I can do to fix this issue. http://nlzpge.com [url=http://lvmiwuglvd.com]lvmiwuglvd[/url] [link=http://ajbhpl.com]ajbhpl[/link]
Thomloyd (xa5vkd2z at yahoo dot com) 18 December 2015 08:01:15 Hello shobhit plasee give more information Which distro , which version of asterisk.also do you have the mobile.conf file configuration file and chan_mobile.so library binary If you have installed asterisk-mobile correctly you should have chan_mobile.so. I need all the information so that I can help .
gaurav (lonely_btgreat at yahoo dot com) 10 January 2008 12:13:16 gud
ivan (support at asteriskguru dot com) 04 October 2005 09:56:07 If you want to have the UK tones set as default you have to change the default country in indications.conf from us to uk. If you want to use just for once or several times some uk tones you have to use Playtones(param) where param is the country frequency tone (you can see the frequency for dial, busy, congestion tones, etc. in the context for the country in indications.conf).
Malcolm Ballinger (malcomms at btopenworld dot com) 03 October 2005 08:16:57 A friend of mine has asterisk software but he is unable to get the ring tne to change from the US (assume default) to the UK standard, the parameters are correct for the UK version and whilst he has got phones to ring with the correct ringing cadence, the ring tone stays resolutely US in both on off times and tonefrequency?
I am new to this so this may be the wrong place to pose this question.