Jean-Yves Avenard
2005-May-15 03:36 UTC
[Asterisk-Users] Problem with extensions and when channel is unavailable
Hello I used to have an extension like this which worked fine with asterisk 1.0.7 I first dial to see if an IAX phone is present, if not I would try on SIP instead exten=s,1,Dial(IAX2/iax${ARG3},20,tr) ; 20sec timeout exten=s,2,Goto(s-${DIALSTATUS},1) ; Default action exten=s,200,DBget(temp=CFBS/${ARG1}) ; Get CFBS key, if not existing, goto 301 exten=s,201,Dial(Local/${temp}@sip-transfer/n) ; Forward on unavailable exten=s,202,VoiceMail,u${ARG2} exten=s,203,hangup() exten=s,301,Goto(202) ; entry doesn't exist -> Voicemail exten=s-CHANUNAVAIL,1,Goto(s,400) exten=s-CONGESTION,1,Goto(s,200) exten=s-NOANSWER,1,Goto(s,200) exten=s-.,1,Goto(s,200) ;Now try SIP exten=s,400,Dial(SIP/ipp${ARG3},20,tr) ; 20sec timeout exten=s,401,Goto(s2-${DIALSTATUS},1) exten=s2-CHANUNAVAIL,1,Goto(s,200) exten=s2-CONGESTION,1,Goto(s,200) exten=s2-NOANSWER,1,Goto(s,200) exten=s2-.,1,Goto(s,200) If the IAX channel didn't exist or wasn't connected, it would jump to s-CHANUNAVAIL which jumps to priority 400 and try SIP In CVS-HEAD it now goes to s-CONGESTION which is definitely not what I want as it goes in this case to voicemail s-DIALSTATUS has changed now? is there a documentation on how it should work now? Jean-Yves --- Jean-Yves Avenard Hydrix Pty Ltd - Embedding the net www.hydrix.com | fax +61 3 95722686 | office +61 3 8573 5299 | direct +61 3 8573 5200 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050515/c9363e61/attachment.htm
Jean-Yves Avenard
2005-May-15 04:13 UTC
[Asterisk-Users] Problem with extensions and when channel is unavailable
A bit more details: Calling an IAX entry which doesn't exist: May 15 21:09:49 WARNING[608]: chan_iax2.c:2727 create_addr: No such host: iax107 May 15 21:09:49 NOTICE[608]: app_dial.c:968 dial_exec_full: Unable to create channel of type 'IAX2' (cause 3) == Everyone is busy/congested at this time (1:0/1/0) -- Executing NoOp("Zap/5-1", "CONGESTION") in new stack Should have been CHANUNAVAIL Same for SIP -- Executing Dial("SIP/ipp100-e5aa", "SIP/ipp107|20|Ttr") in new stack May 15 21:12:55 NOTICE[608]: app_dial.c:968 dial_exec_full: Unable to create channel of type 'SIP' (cause 3) == Everyone is busy/congested at this time (1:0/1/0) -- Executing NoOp("SIP/ipp100-e5aa", "CONGESTION") in new stack Jean-Yves On 15/05/2005, at 8:36 PM, Jean-Yves Avenard wrote:> If the IAX channel didn't exist or wasn't connected, it would jump > to s-CHANUNAVAIL which jumps to priority 400 and try SIP > > In CVS-HEAD it now goes to s-CONGESTION which is definitely not > what I want as it goes in this case to voicemail > > s-DIALSTATUS has changed now? is there a documentation on how it > should work now?--- Jean-Yves Avenard Hydrix Pty Ltd - Embedding the net www.hydrix.com | fax +61 3 95722686 | office +61 3 8573 5299 | direct +61 3 8573 5200 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050515/d6171968/attachment.htm