[asterisk-users] priorityjumping - asterisk 1.8

Chad Wallace
Fri, 13 Apr 2012 19:31:29 -0000

On Fri, 13 Apr 2012 10:53:43 -0600
Joseph <syscon780 at gmail.com> wrote:

> I'm trying asterisk 1.8 (coming from 1.4) and it seems to me
> "priorityjumping" is not working.
>
> In extension.conf I have:
> priorityjumping=yes
>
> exten => 1,1,Dial(${FD_L1},25,jtrw)
>   exten => 1,102,Dial(${FD_L2},20,trw)
>   exten => 1,103,Voicemail(4)
>   exten => 1,104,Hangup()
> exten => 1,2,Voicemail(4)            ; Right to voicemail
> exten => 1,3,Hangup()
>
> When line one is busy and second call is coming IN it goes to voice
> mail.

I believe you'd use GotoIf and the DIALSTATUS variable now instead of
jumping.

exten => 1,1,Dial(${FD_L1},25,trw)
exten =>
1,n,GotoIf($["${DIALSTATUS}"="BUSY"]?line2:voicemail)
exten => 1,n(line2),Dial(${FD_L2},20,trw)
exten => 1,n(voicemail),Voicemail(4)
exten => 1,n,Hangup()


--

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0