Asterisk dialplan: Back to DISA after remote party hangup

Posted on 2010-08-12
Last Modified: 2013-11-12
Hello experts,

In my Asterisk dialplan:


exten => s,1,Playback(access-granted)
exten => s,n,DISA(no-password,privileged_context)

Say that user called 00812345678.

When remote party 00812345678 is hanging up, the call both legs are being hung . Is it possible to let caller to resume back to DISA again after the remote party hangs up? I remember that somebody made this for me before, but I forgot how it was.
Question by:Muhajreen
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 33420880
See if this works?


exten => s,1,Playback(access-granted)
exten => s,n,DISA(no-password,privileged_context)
exten => s,n,Goto(s,2,authorised)

Accepted Solution

nasirbest earned 500 total points
ID: 33421343
replace your dialplan with following

exten => s,1,Playback(access-granted)
exten => s,n(dial),Dial(Local/disa-ext@authorised,3600,g)
exten => s,n,Goto(dial)

exten => disa-ext,DISA(no-password,privileged_context)

Open in new window


Author Comment

ID: 33423604
Thank you both.

@samdart: Your solution didn't work, the call hangs up before proceding to the next priority.

@nasirbest: You solution works partially, just a problem that after caller receives DISA tone, when he presses any single digit, it proceeds to the Goto(dial) priority and repeats again...... forever.

I think we are very near to the solution.

Expert Comment

ID: 33434753
can you provide asterisk cli logs ?

Author Comment

ID: 33437913
Thank you,

It was a mistake in the (privileged_context) name, now it's working fine !

Have a good night.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are no good configuration guides for HP-H3C router to LYNC on the web. :( Big statement, but we havent been able to find one yet. We did find the following document useful, but the information was not enough to use H3C router for use as a L…
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question