|
Hello Nicolas, first of all I want to thank you. You are the first guy
give me an answer. I already posted this issue two times but nobody was
interested in it. I tried your sugggestion but it doesn't work. In the mean time I upgraded to v1.0.2 but things remain the same or even worse ( I have in the log a new channel name OutgoingSpoolFailed but the behaviour is the same). Any way perhaps I found a solution and I would like to ask what do you think about it: This is the request: /bin/echo "Action: Originate";\ /bin/echo "Channel: Local/[EMAIL PROTECTED]";\ /bin/echo "Variable: callid=123456|number=XXXXX|url=""> /bin/echo "Context: chiamamezzi3";\ /bin/echo "Exten: s";\ /bin/echo "Priority: 1";\ /bin/echo "Callerid: Asterisk Automatic Wardial";\ /bin/echo "Timeout: 10000";\ /bin/echo "Async: True";\ ** this is important otherwise fail extension doesn't work ** /bin/echo "ActionId: 10";\ This is the context [chiamamezzi3] exten => _.X,1,Dial(ZAP/g1/${EXTEN}) exten => _.X,2,NoOp( _.X DIALSTATUS is ${DIALSTATUS}, number is ${number} ) exten => _.X,3,SetGlobalVar(status=${DIALSTATUS}) exten => s,1,Wait,1 exten => s,2,Answer exten => s,3,DigitTimeout,5 exten => s,4,ResponseTimeout,10 exten => s,5,system(/prd/asterisk/log.sh "Variabili: [menuid=${menuid}] [number=${number}] [redirectnum=${redirectnum}] [url="" [callid=${callid}]") exten => s,6,Goto(chiamamezzi-${menuid},s,1) exten => t,1,Goto(noanswer,s,1) exten => failed,1,NoOp( failed DIALSTATUS is ${status} number is ${number}) exten => failed,2,Hangup() exten => h,1,Hangup() As I told you, If the call is ok dialplan goes on s, 1 If the call fails I proceed on _.X,2 and 3 and I need to set a globalvariable to let to handle it in the failed extension. It works but I don't know if it could work on multi request environment . It would be much better to use a channel variable or even better, to have DIALSTATUS directly available . Regards Luca Casavola Nicolás Gudiño wrote: Hello, Comments inline.. |
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
