[asterisk-users] GotoIf not working with ${EXTEN} for me in 1.4.8

voiplist gotvoip at gmail.com
Sat Aug 18 22:29:47 CDT 2007


On 8/18/07, C F <shmaltz at gmail.com> wrote:
> You are missing a dollar sign $
>
> On 8/18/07, voiplist <gotvoip at gmail.com> wrote:
> > I am using GotoIf all over the place in 1.4.8 but for some reason, the
> > following in my dial plan:
> >
> > #############################################################
> > exten => _1NXXNXXXXXX,1,GotoIf([${EXTEN} = "15554441212"]?100)
> > exten => _1NXXNXXXXXX,n,Dial(SIP/provider1/${EXTEN},60)
> > exten => _1NXXNXXXXXX,n,Dial(SIP/provider2/${EXTEN},60)
> > exten => _1NXXNXXXXXX,n,Hangup
> > exten => _1NXXNXXXXXX,100,NoOp(Calling my cell w/special CID)
> > exten => _1NXXNXXXXXX,n,Set(CALLERID(all)="Dude" <5551112233>)
> > exten => _1NXXNXXXXXX,n,Dial(SIP/provider1/${EXTEN},60)
> > exten => _1NXXNXXXXXX,n,Dial(SIP/provider2/${EXTEN},60)
> > exten => _1NXXNXXXXXX,n,Hangup
> > #############################################################
> >
> >
> >
> > Results in this in my CLI:
> >
> > ##############################################################
> > dalint1*CLI>
> >   == Parsing '/etc/asterisk/sip_notify.conf': Found
> >     -- Executing [12223334545 at out-personal:1]
> > GotoIf("SIP/5556685598-b7dc7f90", "[18005558888 = "15554441212"]?100")
> > in new stack
> >     -- Goto (out-personal,18005558888,100)
> >     -- Executing [18005558888 at out-personal:100]
> > NoOp("SIP/5556685598-b7dc7f90", "Calling my cell w/special CID") in
> > new stack
> >     -- Executing [18005558888 at out-personal:101]
> > Set("SIP/5556685598-b7dc7f90", "CALLERID(all)="Dude" <5551112233>") in
> > new stack
> >     -- Executing [18005558888 at out-personal:102]
> > Dial("SIP/5556685598-b7dc7f90", "SIP/provider1/18005558888|60") in new
> > stack
> >     -- Called provider1/18005558888
> > ################################################################
> >
> >
> > Clearly 18005558888  does NOT equal "15554441212" so why is it jumping
> > to priority 100?
> >
> > I always hate to scream BUG but I can't see my mistake here to save my
> > life..
> >
> > Anyone? Maybe I am just tired..
> >
> > Of course I have changed the numbers involved to protect the innocent :-)
> >
> >
> > Regards,
> >  Todd R.
> >
> > --
> > Prestige Messaging
> > Live Answering Services
> > SIP or Toll-Free Connectivity
> > Light Accounts From $14.95/mo
> > http://www.PrestigeMessaging.com
> >
> > _______________________________________________
> > --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
> >
>
> _______________________________________________
> --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
>

Where?

I the only variable I am using is ${EXTEN} and as far as I can see I
have a dollar sign on each ${EXTEN}.


Regards,
 Todd R.

--
Prestige Messaging
Live Answering Services
SIP or Toll-Free Connectivity
Light Accounts From $14.95/mo
http://www.PrestigeMessaging.com



More information about the asterisk-users mailing list