Jakub GÅ‚azik
2007-Jul-20 09:45 UTC
[asterisk-users] priorityjumping not working, Dial goes to n+1 not n+101
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 [1337 at firma: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 [1337 at firma: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 [1337 at firma: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? -- .: Jakub G?azik, .: email & jabber: zytek<at>nuxi.pl
Eric "ManxPower" Wieling
2007-Jul-20 10:12 UTC
[asterisk-users] priorityjumping not working, Dial goes to n+1 not n+101
Did you read UPGRADE.txt? Priority jumping was deprecated in 1.2. I assume it was removed from 1.4. Jakub G?azik wrote> 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 [1337 at firma: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 [1337 at firma: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 [1337 at firma: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? >
Perssy Llamosas
2007-Jul-21 16:04 UTC
[asterisk-users] priorityjumping not working, Dial goes to n+1 not n+101
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 <zytek-lists at nuxi.pl> To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at 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 [1337 at firma: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 [1337 at firma: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 [1337 at firma: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? > >