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

Steve Murphy murf at digium.com
Tue Aug 21 13:37:17 CDT 2007


On Sat, 2007-08-18 at 21:11 -0700, Ira wrote:
> At 08:29 PM 8/18/2007, you wrote:
> > > > exten => _1NXXNXXXXXX,1,GotoIf($[${EXTEN} = "15554441212"]?100)
> >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}.
> 
> I think it's this one.
> 
> GotoIf($[${EXTEN} = "15554441212"]?100)
> 
> Ira 

Both issues have to be fixed for this to work right, the $ issue and the
quote issue:

exten => _1NXXNXXXXXX,1,GotoIf($["${EXTEN}" = "15554441212"]?100)

or you can, in this case, drop the quotes on both sides:

exten => _1NXXNXXXXXX,1,GotoIf($[${EXTEN} = 15554441212]?100)


Best of luck,

murf


> 
> 
> _______________________________________________
> --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
-- 
Steve Murphy
Software Developer
Digium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3227 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070821/1eff1a16/attachment.bin 


More information about the asterisk-users mailing list