[Asterisk-Users] Format of extensions.conf

Howard Lowndes lannet at lannet.com.au
Mon Oct 24 19:21:17 MST 2005


It's also catering for the fact that ${FROM_DID} might be a string with 
embedded spaces, and it's assuming, probably not unreasonably, that 
${CALLERIDNUM} doesn't have embedded spaces.

David Tillman wrote:
> In my (inherited) extensions.conf I have some lines of the format:
> 
>   exten => o,2,GotoIf($["foo${FROM_DID}" =
> "foo"]?from-pstn,s,1:from-pstn,${FROM_DID},1)
> 
> and some lines like:
> 
>   exten => s,1,GotoIf($[foo${ECID${CALLERIDNUM}} = foo]?4)
> 
> 
> Note the quotes around the "foo${FROM_DID}" and "foo" in the
> first, but the lack of quotes in the second.
> 
> Are these syntacticly equivalent?
> 
> In the first, is it just comparing to see if the string "foo" still equals
> "foo" after the vars are interpolated?
> 
> Thanks,
> -dave
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
> 
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 

-- 
Howard.
LANNet Computing Associates - Your Linux people <http://lannet.com.au>
-- 
When you just want a system that works, you choose Linux;
When you want a system that works, just, you choose Microsoft.
-- 
Flatter government, not fatter government;
Get rid of the Australian states.




More information about the asterisk-users mailing list