[Asterisk-Dev] Continuing dial plan after caller hangs up

John Todd jtodd at loligo.com
Fri Jun 4 17:37:26 MST 2004


At 1:31 PM -0500 on 6/4/04, Steven Critchfield wrote:
>On Fri, 2004-06-04 at 12:41, John James wrote:
>>  Does anyone know if I can continue processing through a dial plan after
>>  a caller hangs up, or do I need to code a special dial application?  In
>>  certain situations, I would like to send the callee into an IVR for
>>  follow-up processing.
>
>Isn't that what the local channel was about? Being able to return after
>completion? or am I confused again?
>--
>Steven Critchfield  <critch at basesys.com>

As others have noted, I think that the original poster was looking 
for "g" as an option in Dial.

When a "Dial" is hung up inside of a chan_local request, it will (to 
the best of my recollection) hang up the calling leg unless the "g" 
option is specified.

chan_local is a mysterious and fairly powerful channel driver, and is 
one of the best tricks in the ancient book of Ast-Fu fighting for 
really complex dialplans.   It's not well-known and probably not used 
when it should be - anyone out there who hasn't looked at it and 
thought about the implications of how it's used should think about it 
a bit more, until the light bulb goes on.  If you have a really 
simple dialplan, you'll not see the use, but if you have a lot of 
weird things going on with how you direct calls around, it's a 
lifesaver.

JT



More information about the asterisk-dev mailing list