[Asterisk-Users] This should be easy: What happens when the Calling Party hangs up

Eric "ManxPower" Wieling eric at fnords.org
Mon Jun 5 11:49:24 MST 2006


Start out by using a valid Dial line:

Dial(Zap/G3/${exten},120,gM(connected));

You don't put commas beween the dial options

Julian Lyndon-Smith wrote:
> svn trunk 31497
> 
> For the life of me, I can't get this :) I want to be able to catch the 
> situation where the calling party hangs up *before* the call is 
> connected to the called party. My dialplan is thus:
> 
> macro DialExternal(exten) {
> Dial(Zap/G3/${exten},120,g,M(connected));
>         goto DialResult|r${HANGUPCAUSE}|1;
>         Hangup();
> };
> 
> But the goto dialresult is not executed:
> 
> Executing [from-sip:1] Macro("SIP/7XX-b403", "DialExternal|xxxxxx") in 
> new stack
>     -- Executing [macro-DialExternal:1] Dial("SIP/7XX-b403", 
> "Zap/G3/07803034440|120|g|M(connected^jmls at mike^706)") in new stack
>     -- Requested transfer capability: 0x00 - SPEECH
>     -- Called G3/XXXXXX
>     -- Zap/10-1 is proceeding passing it to SIP/7XX-b403
>     -- Zap/10-1 is ringing
>     -- Hungup 'Zap/10-1'
>   == Spawn extension (macro-DialExternal, s, 1) exited non-zero on 
> 'SIP/7XX-b403' in macro 'DialExternal'
>   == Spawn extension (macro-DialExternal, s, 1) exited non-zero on 
> 'SIP/7XX-b403'
> 
> What do I need to put where ? I can catch all connected, calling party 
> hangups and bad numbers etc
> 
> Julian
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
Now accepting new clients in Birmingham, Atlanta, Huntsville, 
Chattanooga, and Montgomery.



More information about the asterisk-users mailing list