[asterisk-users] Dial exited non-zero, only if PSTN/ZAP/E1 hangs up first. not if voip hangs up.

Andres andres at telesip.net
Wed Jul 26 15:18:42 MST 2006


Manrique Feoli wrote:

> Hey I need a quick advise here,   I must be missing something basic.
>
> I get a call from an Zap E1,  and dial into a Voip extension, 
> if the extension hangs up first,  the next line of the dialplan gets 
> executed,
>
> if the pstn hangs up first,   shows "exited non-zero on ZAP/6-1"  and 
> the next line doesn't get executed.   ( 3,system(...) )
>
> this is my dialplan
>
> exten =>_X.,1,Answer
> exten =>_X.,2,Dial(Zap/g1/${EXTEN},,tTrhH)
> exten =>_X.,3,system(/bin/echo -e "'${DIALEDTIME}, ${ANSWEREDTIME}, 
> ${TIMESTAMP},${CALLERID},${EXTEN},${CHANNEL}'">> 
> /home/mque/E1/list_calls)

You can try to put this in the 'h' extension so it gets executed upon 
hangup:
exten => h,1,system(/bin/echo -e "'${DIALEDTIME}, ${ANSWEREDTIME}, 
${TIMESTAMP},${CALLERID},${EXTEN},${CHANNEL}'">> /home/mque/E1/list_calls)

> exten =>_X.,4,Congestion
>
> _______________________________________________
> --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
>
>


-- 
Andres
Technical Support
http://www.telesip.net




More information about the asterisk-users mailing list