[asterisk-users] Variables for dial plan
Steve Johnson
stevej456 at gmail.com
Mon Dec 15 07:43:26 CST 2008
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 <michael at networkstuff.co.nz> 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
>
More information about the asterisk-users
mailing list