[asterisk-users] Variables for dial plan

Michael michael at networkstuff.co.nz
Mon Dec 15 03:26:55 CST 2008


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



More information about the asterisk-users mailing list