1. Busy - this application allows you to indicate a busy mode.
NOTE: This application is valid for Asterisk version 1.0.9 and above.
Syntax:
Busy(timeout) ; write as argument the period of time for which you want to indicate busy mode. The delay is in seconds
Purpose and usage
You can use this application in case of timeout or invalid conditions. The application allows you to set a delay. So, you can make an extension which will play busy tone for 10 seconds if there is a timeout or invalid operation.
To see how the application works we recommend to use our IAX softphone Idefisk. You can download it from here. Please also read our tutorial 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 three 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, user1 and user2.
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.
When somebody dials 111 the first executed application will be Answer. Then the caller will hear a playtone for a busy condition. We will achieve this with two extensions. The first one contains the Playtones application and the second one the Busy application. It is very important to use the two applications together. If you use only one of them the result won’t be the desired one. For example if you use only one of them the result won’t be the desired one. For example if you use only Playtones you won’t here a signal. Again if you use only Busy u won’t hear a signal.
NOTE: Please, pay attention that we are talking about the IAX2 channel. If you are going to use the SIP channel you don’t need to use the Playtones application. The Busy application is enough to hear the busy signal. So, this depends on the used channel.
In the brackets of the Playtones application we have written busy. This is a standard playtone. You can change its parameters in the indications.conf file. However we recommend you to leave the settings by default.
We advise you to set a delay as an argument in the brackets of the Busy application. If you leave the brackets empty the busy signal will continue endlessly or until the caller hang up the phone. In our case we have set 10 seconds. When this time expires, the next extension will be executed, if such one exists.
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.
You cannot use Playback or Background application for indicating busy condition because they do not support arbitrary tones.
Don’t forget that it is always a good idea to make an extension for hanging up. In this way you will be sure that after the conversation is over the Asterisk PBX will close the line.
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.
This application is tested with our IAX softphone Idefisk. You can 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 can read our tutorials about the SIP Softphones to learn how to configure them to work with Asterisk PBX
careprost buy online (minnie_ruggieri37 at welcore dot ml) 02 August 2020 10:37:08 careprost buy online https://www.jueriy.com/
cheapest viagra 50 mg (alfredo dot grills at drizat dot xyz) 17 July 2020 12:35:08 cheapest viagra 50 mg https://cleverviagra.com/
Rangle (ayj2a7bmpkt at outlook dot com) 20 November 2016 08:34:47 I liltearly jumped out of my chair and danced after reading this! http://fkllgmfqrd.com [url=http://heswdsurw.com]heswdsurw[/url] [link=http://vztmxxqk.com]vztmxxqk[/link]