I think n+101 worked in Asterisk 1.2.x but it doesn't work in Asterisk 1.4.x use ${DIALSTATUS} if you want Asterisk to act depending the result of Dial()
I read that the variable has been disabled in SVN to be replaced by the DEVSTATE function, I need to confirm that. Well... an example: exten => 1337,1,Dial(SIP/zytek,5,Ttj) exten => 1337,n,Goto(${DIALSTATUS},1) exten => CONGESTION,1,Congestion exten => CANCEL,1,Hangup exten => BUSY,1,Busy exten => CHANUNAVAIL,1,NoOp("I can't find it") exten => CHANUNAVAIL,n,Busy Although it would look a lot nicer if you create a macro that acts upon the result of Dial. Perssy Llamosas -------- Original Message -------- Subject: [asterisk-users] priorityjumping not working, Dial goes to n+1 not n+101 From: Jakub GÅ‚azik <[EMAIL PROTECTED]> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Date: 20/07/2007 04:45 a.m. > Priorityjumping is totally ignored by my asterisk (tested 1.4.4 and > 1.4.7.1 on FreeBSD 6.2) > > [general] > priorityjumping=yes > > With n+101: > exten => 1337,1,Dial(SIP/zytek,5,Ttj) > exten => 1337,102,Dial(SIP/zytek,${RINGTIME},${OPTIONS}) > exten => 1337,n,Hangup > > -- Executing [EMAIL PROTECTED]:1] Dial("SIP/113-087a3000", > "SIP/zytek|5|Ttj") in new stack > -- Called zytek > -- SIP/zytek-087b9000 is ringing > -- Nobody picked up in 5000 ms > == Auto fallthrough, channel 'SIP/113-087a3000' status is 'NOANSWER' > > With n+1: > > exten => 1337,1,Dial(SIP/zytek,5,Ttj) > exten => 1337,2,Dial(SIP/zytek,${RINGTIME},${OPTIONS}) > exten => 1337,n,Hangup > > -- Executing [EMAIL PROTECTED]:1] Dial("SIP/113-087c8000", > "SIP/zytek|5|Ttj") in new stack > -- Called zytek > -- SIP/zytek-087da000 is ringing > -- Nobody picked up in 5000 ms > -- Executing [EMAIL PROTECTED]:2] Dial("SIP/113-087c8000", > "SIP/zytek|720|Ttm") in new stack > -- Called zytek > -- Started music on hold, class 'default', on channel > 'SIP/113-087c8000' > -- SIP/zytek-087b6000 is ringing > > > Why? > > _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users