Re: [Asterisk-Users] ${DIALSTATUS} problems
I'm not expert on this matter,but base on experience that is a normal situation on SIP/IAX channels since the call made is answered by the other end regardless of the situation you might found. I'm on PRI ISDN and for me dialstatus and hangupcause works pretty good. Regards Jb On 9/15/05, Mark Edwards [EMAIL PROTECTED] wrote: Hi.I'm dialling two numbers - one that's unobtainable, one that's busy.${DIALSTATUS} is coming back ANSWER each time right before the channels hang up. Am using the following dialplan macro to dial out.[macro-advdial]exten = s,1,Dial(${ARG1},20,g) ; Ring the interface, 20 seconds maximumexten = s,2,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL ,CONGESTION,ANSWER)exten = s-CHANUNAVAIL,1,NoOp(CHANUNAVAIL)exten = s-CHANUNAVAIL,2,UserEvent(ChannelUnavailable|Account: ${ACCOUNTCODE}^${CALLERIDNUM})exten = s-CONGESTION,1,NoOp(CONGESTION) exten = s-CONGESTION,2,UserEvent(Congestion|Account: ${ACCOUNTCODE}^${CALLERIDNUM})exten = s-ANSWER,1,NoOp(ANSWER)exten = s-ANSWER,2,UserEvent(Answer|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-BUSY,1,NoOp(BUSY)exten = s-BUSY,2,UserEvent(Busy|Account: ${ACCOUNTCODE}^${CALLERIDNUM})exten = s-NOANSWER,1,NoOp(NOANSWER)exten = s-NOANSWER,2,UserEvent(NoAnswer|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answerOutbound calls are made using Manager originate interface from a meetme room channel Local/4000/n where 4000 is an extension which accesses the meetme room. ITSP is terminating outbound calls to me via IAX2.I need to be able to see the CAUSE CODE status of the call if it is answered, CONGESTED or BUSY.my ITSP is in Australia - as am I.the IAX2 debug clearly indicates a zero CAUSE CODE on most call cases. Any idea what I might be able to do to make the CAUSE CODE a little more meaningful?Also, does ${DIALSTATUS} or ${HANGUPCAUSE} work better on PRI?Cheers,Mark. -- regards,Mark P. EdwardsFWD: 667917___--Bandwidth and Colocation sponsored by Easynews.com --Asterisk-Users mailing listAsterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-usersTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] ${DIALSTATUS} problems
I met same problem when dial via zap channel. Does anyone know how to solve it? thanks. 2005/9/15, Mark Edwards [EMAIL PROTECTED]: Hi. I'm dialling two numbers - one that's unobtainable, one that's busy. ${DIALSTATUS} is coming back ANSWER each time right before the channels hang up. Am using the following dialplan macro to dial out. [macro-advdial] exten = s,1,Dial(${ARG1},20,g) ; Ring the interface, 20 seconds maximum exten = s,2,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL ,CONGESTION,ANSWER) exten = s-CHANUNAVAIL,1,NoOp(CHANUNAVAIL) exten = s-CHANUNAVAIL,2,UserEvent(ChannelUnavailable|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-CONGESTION,1,NoOp(CONGESTION) exten = s-CONGESTION,2,UserEvent(Congestion|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-ANSWER,1,NoOp(ANSWER) exten = s-ANSWER,2,UserEvent(Answer|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-BUSY,1,NoOp(BUSY) exten = s-BUSY,2,UserEvent(Busy|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-NOANSWER,1,NoOp(NOANSWER) exten = s-NOANSWER,2,UserEvent(NoAnswer|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer Outbound calls are made using Manager originate interface from a meetme room channel Local/4000/n where 4000 is an extension which accesses the meetme room. ITSP is terminating outbound calls to me via IAX2. I need to be able to see the CAUSE CODE status of the call if it is answered, CONGESTED or BUSY. my ITSP is in Australia - as am I. the IAX2 debug clearly indicates a zero CAUSE CODE on most call cases. Any idea what I might be able to do to make the CAUSE CODE a little more meaningful? Also, does ${DIALSTATUS} or ${HANGUPCAUSE} work better on PRI? Cheers, Mark. -- regards, Mark P. Edwards FWD: 667917 ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] ${DIALSTATUS} problems
Have come to a solution on this, and as I suspected, the issue appears to be a bit of a version mismatch between terminating asterices. (Is that the plural of asterisk?) Anyway, to cut a long story short, I tested with another provider, found that they were running a later version (nearer CVS-HEAD) and started to see some useful data in the CAUSE CODE coming back in the IAX stream on hangup. Fortunately, this is finding its way into the ${HANGUPCAUSE} variable, so I am now able to implement this in the dialplan. cheers, Mark.On 9/21/05, Liu Peter [EMAIL PROTECTED] wrote: I met same problem when dial via zap channel.Does anyone know how to solve it?thanks.2005/9/15, Mark Edwards [EMAIL PROTECTED]: Hi. I'm dialling two numbers - one that's unobtainable, one that's busy. ${DIALSTATUS} is coming back ANSWER each time right before the channels hang up. Am using the following dialplan macro to dial out. [macro-advdial] exten = s,1,Dial(${ARG1},20,g) ; Ring the interface, 20 seconds maximum exten = s,2,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL ,CONGESTION,ANSWER) exten = s-CHANUNAVAIL,1,NoOp(CHANUNAVAIL) exten = s-CHANUNAVAIL,2,UserEvent(ChannelUnavailable|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-CONGESTION,1,NoOp(CONGESTION) exten = s-CONGESTION,2,UserEvent(Congestion|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-ANSWER,1,NoOp(ANSWER) exten = s-ANSWER,2,UserEvent(Answer|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-BUSY,1,NoOp(BUSY) exten = s-BUSY,2,UserEvent(Busy|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-NOANSWER,1,NoOp(NOANSWER) exten = s-NOANSWER,2,UserEvent(NoAnswer|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer Outbound calls are made using Manager originate interface from a meetme room channel Local/4000/n where 4000 is an extension which accesses the meetme room. ITSP is terminating outbound calls to me via IAX2. I need to be able to see the CAUSE CODE status of the call if it is answered, CONGESTED or BUSY. my ITSP is in Australia - as am I. the IAX2 debug clearly indicates a zero CAUSE CODE on most call cases. Any idea what I might be able to do to make the CAUSE CODE a little more meaningful? Also, does ${DIALSTATUS} or ${HANGUPCAUSE} work better on PRI? Cheers, Mark. -- regards, Mark P. Edwards FWD: 667917 ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users-- regards, Mark P. EdwardsFWD: 667917 ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] ${DIALSTATUS} problems
On Wed, 2005-09-21 at 14:36 +1000, Mark Edwards wrote: terminating asterices. (Is that the plural of asterisk?) I propose asterii, while by no means gramatically correct it wont fall under potential sue happy lawyers who own the unix trademark (after all the plural there is unices). oh no I said unix and didnt credit anyone or pay royalties. They are gonna get me now. :P -- Trixter http://www.0xdecafbad.com Bret McDanel UK +44 870 340 4605 Germany +49 801 777 555 3402 US +1 360 207 0479 or +1 516 687 5200 FreeWorldDialup: 635378 signature.asc Description: This is a digitally signed message part ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] ${DIALSTATUS} problems
Hi. I'm dialling two numbers - one that's unobtainable, one that's busy. ${DIALSTATUS} is coming back ANSWER each time right before the channels hang up. Am using the following dialplan macro to dial out. [macro-advdial] exten = s,1,Dial(${ARG1},20,g) ; Ring the interface, 20 seconds maximum exten = s,2,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL ,CONGESTION,ANSWER) exten = s-CHANUNAVAIL,1,NoOp(CHANUNAVAIL) exten = s-CHANUNAVAIL,2,UserEvent(ChannelUnavailable|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-CONGESTION,1,NoOp(CONGESTION) exten = s-CONGESTION,2,UserEvent(Congestion|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-ANSWER,1,NoOp(ANSWER) exten = s-ANSWER,2,UserEvent(Answer|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-BUSY,1,NoOp(BUSY) exten = s-BUSY,2,UserEvent(Busy|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = s-NOANSWER,1,NoOp(NOANSWER) exten = s-NOANSWER,2,UserEvent(NoAnswer|Account: ${ACCOUNTCODE}^${CALLERIDNUM}) exten = _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer Outbound calls are made using Manager originate interface from a meetme room channel Local/4000/n where 4000 is an extension which accesses the meetme room. ITSP is terminating outbound calls to me via IAX2. I need to be able to see the CAUSE CODE status of the call if it is answered, CONGESTED or BUSY. my ITSP is in Australia - as am I. the IAX2 debug clearly indicates a zero CAUSE CODE on most call cases. Any idea what I might be able to do to make the CAUSE CODE a little more meaningful? Also, does ${DIALSTATUS} or ${HANGUPCAUSE} work better on PRI? Cheers, Mark. -- regards,Mark P. EdwardsFWD: 667917 ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users