[arm-allstar] Whitelist
Mike Besemer - WM4B
mwbesemer at cox.net
Fri Oct 26 06:50:24 EDT 2018
Thanks Tim... that makes sense!
Mike
WM4B
On Thu, Oct 25, 2018 at 11:01 PM, "Tim Sawyer via ARM-allstar" wrote:
> The _XXXX! is extension (node number) pattern matching in the asterisk
> dial
> plan. Patterns start with an underscore, X matches 0 to 9, ! matches
> zero
> or more characters. In other words _XXXX! matches 4 or more digits.
>
> The node number is not replaced. It is compared to the whitelist node
> numbers (in the asterisk database) and if a match is found the
> dialplan
> branches to [radio-secure] and then connects.
>
> On Thu, Oct 25, 2018 at 4:08 PM "Mike Besemer via ARM-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
>> Good evening,
>>
>> When Whitelisting nodes, does the XXXX (or _XXXX) in the following
>> example
>> get replaced with the Whitelisted node number? (e.g. exten =>
>> _48166!,1,NoOp(${CALLERID(num)}) or exten =>
>> 48166!,1,NoOp(${CALLERID(num)}))
>>
>> Mike
>> WM4B
>>
>> [whitelist]
>> exten => _XXXX!,1,NoOp(${CALLERID(num)})
>> exten => _XXXX!,n,NoOp(${IAXPEER(CURRENTCHANNEL)})
>> exten => _XXXX!,n,GotoIf($["${IAXPEER(CURRENTCHANNEL)}" =
>> "127.0.0.1"]?radio-secure,${EXTEN},1) ;permit local IPs
>> exten =>
>>
>>
>> _XXXX!,n,GotoIf($[${DB_EXISTS(whitelist/${CALLERID(num)})}]?radio-secure,${E
>> XTEN},1)
>> exten => _XXXX!,n,Hangup
>>
>>
>> _______________________________________________
>>
>> ARM-allstar mailing list
>> ARM-allstar at hamvoip.org
>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>>
>> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>>
>
>
> --
> Tim WD6AWP
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
More information about the ARM-allstar
mailing list