One of these methods will work:

exten => s,n,ExecIf($["${dialplan}" = "NZ"]|Set|NAT="0")
exten => s,n,ExecIf($["${dialplan}" = "NZ"]|Set|INT="00")

-or-

exten => s,n,GotoIf($["${dialplan}" != "NZ"]?not-nz)
exten => s,n,Set(NAT="0")
exten => s,n,Set(INT="00")
exten => s,n(not-nz),more_dialplan_stuff


On Mon, Dec 15, 2008 at 3:26 AM, Michael <[email protected]> wrote:
> On Mon, 15 Dec 2008 21:31:56 you wrote:
>> Use setvar=variablename=value
>>
>> Eg: under [client1]
>> setvar=dialplan=NZ
>>
>> Then just reference ${dialplan} in your extensions.conf
>>
>> Cheers
>> Andy
>
> Thanks, now how do I achieve the following logic?
>
> if ($dialplan == NZ) {
> $NAT = 0;
> $INT = 00;
> };
>
> Michael
>
> _______________________________________________
> -- 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

Reply via email to