• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
Back to Tutorials

6.1.2.14. Congestion (dialplan application)

1. Congestion - this application allows you to indicate a congestion mode.

NOTE: This application is valid for Asterisk version 1.0.9 and above.

 


Syntax:

Congestion(timeout) ; write as argument the period of time for which you want to indicate congestion mode. The delay is in seconds

 


Purpose and usage

This application has for a purpose to indicate a congestion mode.

You can use the Congestion application to show to the caller that there is a congestion on the line at that moment. It works on the same principle as the Busy application

 


Prerequisites

To use this application you need a working Asterisk PBX with registered users in iax.conf, sip.conf or mgcp.conf(It depends on which protocol you would like to use) and made extensions.

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 112 the first executed application will be Answer. Then the caller will hear a playtone for a congestion condition. We will achieve this with two extensions. The first one contains the Playtones application and the second one the Congestion application. It is very important to use these two applications together. 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 Congestion 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 Congestion application is enough to hear the congestion signal. So, this depends on the used channel.

In the brackets of the Playtones application we have written congestion. 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 argument in the brackets of the Congestion application. If you leave the brackets empty the congestion 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 congestion 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.

Finally, you can make an extension which to send a text message to the caller. The message in our case is We cannot handle your call at the moment! Please try again later.

It is very important to remember that the extension for the message should be before the extension with the Congestion application. Otherwise, if you set it after the Congestion application, the message won’t appear. The reason is that the Congestion application will hang up the line immediately after the time in the brackets expire.

 


2. Screenshots of what you can see on your Idefisk and 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.
For more information about indications.conf you can check here.
For more information about the SendText application you can check here.
For more information about the Busy application you can check here.
For more information about the Playtones application 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

 


4. Uploaded files

extensions.conf
iax.conf
indications.conf
 

 
User Comments
Geri (uy0ptdn81y at yahoo dot com)
16 April 2017 03:31:23
This is exactly what I was looking for. Thanks for wrtiing! http://oslydmgtgy.com [url=http://mfuvpiik.com]mfuvpiik[/url] [link=http://vbkdnva.com]vbkdnva[/link]
Jesslyn (qxes1sa8t8l at outlook dot com)
15 April 2017 08:50:47
Wow! Great to find a post with such a clear <a href="http://hhhxxps.com">measegs!</a>
Robert (cvhc8o8wo at gmail dot com)
09 October 2015 09:31:37
Yes, I play the guitar <a href="http://ktszdtm.com">illaegl</a> toplist cp pics shes not got that tight of a pussy; not as tight as a teenager should have anyway. that guy has a massive cock, that pussy should be like a glove around it. pretty decennt tho.
Waleed (2rpguwfsn at yahoo dot com)
25 September 2015 12:50:05
Can you hear me OK? rompl ranchi dark cocoeltiln BISEXUAL MEN ARE THE BEST HE IS SOOOOOOOOO SEXY. EVERYTIME I SEE HIM I JUST THINK ABOUT HOW THAT DICK WOULD FEEL INSIDE ME, HE FUCKS WOMEN AND MEN ALL THE SAME AND I LOVE IT.
 
Add Comment
Name:
Email:
Comment:
In order to prevent automatic posting on our website, we kindly request you to type in the number you see in the picture below.
Image Verification:
 

Latest Headlines:

  • T.38 faxing with Zoiper 2.15 is now easier than ever
    section: voip software
  • Asterisk 1.4.21 Released
    section: Asterisk
  • Asterisk 1.4.20 Released
    section: Asterisk
  • Asterisk 1.4.20-rc2 Released
    section: Asterisk
  • Asterisk 1.4.20-rc1 Now Available
    section: Asterisk
  • News Archives (older news)

Latest Tutorials:

  • Sending Fax from Zoiper to Zoiper using T.38
    added 08/Dec/2008 18:16
  • VMAuthenticate (dialplan application)
    added 01/Mar/2008 15:57
  • Siptronic ST-530
    added 06/Nov/2007 17:57
  • Siemens C455 IP hardphone
    added 05/Nov/2007 10:24
  • Zoiper
    added 22/Oct/2007 17:53

Latest Comments:

  • https://donde-ver-ant-man-y-la-avispa-qu...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-scream-6-tyt.statuspag...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-guardianes-de-la-noche...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://donde-ver-demon-slayer-villa-de-...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://www.reddit.com/r/BenavidezvPlant...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™