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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

The Zaptel people ( got kind of annoyed with the fact that they were getting bombarded with searches for the zaptel driver system for Asterisk (not to mention they own the trademark on zaptel). So, they kindly requested that Digium ch…
So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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