[asterisk-users] priorityjumping not working, Dial goes to n+1 not n+101

Perssy Llamosas pllamosas at telecall.com.pe
Sat Jul 21 11:04:23 CDT 2007


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? 
>
>   




More information about the asterisk-users mailing list