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

Julian Lyndon-Smith asterisk at dotr.com
Mon Jun 5 12:45:52 MST 2006


Eric "ManxPower" Wieling wrote:
> Start out by using a valid Dial line:
> 
> Dial(Zap/G3/${exten},120,gM(connected));
> 
> You don't put commas beween the dial options

Thanks for the syntax catch, but it didn't make any difference. Got 
exactly the same output. Yes, I reloaded ;)

Julian

> 
> 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
>>
> 
> 




More information about the asterisk-users mailing list