<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hello<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I used to have an extension like this which worked fine with asterisk 1.0.7</DIV><DIV>I first dial to see if an IAX phone is present, if not I would try on SIP instead</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>exten=s,1,Dial(IAX2/iax${ARG3},20,tr) ; 20sec timeout</DIV><DIV>exten=s,2,Goto(s-${DIALSTATUS},1)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>; Default action</DIV><DIV>exten=s,200,DBget(temp=CFBS/${ARG1}) ; Get CFBS key, if not existing, goto 301</DIV><DIV>exten=s,201,Dial(Local/${temp}@sip-transfer/n) ; Forward on unavailable</DIV><DIV>exten=s,202,VoiceMail,u${ARG2}</DIV><DIV>exten=s,203,hangup()</DIV><DIV>exten=s,301,Goto(202) ; entry doesn't exist -> Voicemail</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>exten=s-CHANUNAVAIL,1,Goto(s,400)</DIV><DIV>exten=s-CONGESTION,1,Goto(s,200)</DIV><DIV>exten=s-NOANSWER,1,Goto(s,200)</DIV><DIV>exten=s-.,1,Goto(s,200)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>;Now try SIP</DIV><DIV>exten=s,400,Dial(SIP/ipp${ARG3},20,tr) ; 20sec timeout</DIV><DIV>exten=s,401,Goto(s2-${DIALSTATUS},1)</DIV><DIV>exten=s2-CHANUNAVAIL,1,Goto(s,200)</DIV><DIV>exten=s2-CONGESTION,1,Goto(s,200)</DIV><DIV>exten=s2-NOANSWER,1,Goto(s,200)</DIV><DIV>exten=s2-.,1,Goto(s,200)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>In CVS-HEAD it now goes to s-CONGESTION which is definitely not what I want as it goes in this case to voicemail</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>s-DIALSTATUS has changed now? is there a documentation on how it should work now?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Jean-Yves</DIV><DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">---</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Jean-Yves Avenard</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Hydrix Pty Ltd - Embedding the net</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">www.hydrix.com | fax +61 3 95722686 | office +61 3 8573 5299 | direct +61 3 8573 5200</FONT></P> </DIV><BR></DIV></BODY></HTML>