[arm-allstar] Whitelist 1 node - Same Server?
David McGough
kb4fxc at inttek.net
Fri Apr 5 14:25:16 EDT 2019
Okay, here is a final version that is tested and works:
;-----extensions.conf-----
[radio-secure]
exten => 23455,1,rpt,23455|X
exten => 23456,1,Goto(whitelist|${EXTEN}|1)
exten => 23457,1,rpt,23457|X
[whitelist]
exten => _X!,1,Set(NODENUM=${CALLERID(number)})
exten => _X!,n,NoOp(${IAXPEER(CURRENTCHANNEL)})
exten => _X!,n,GotoIf($["${IAXPEER(CURRENTCHANNEL)}" = "127.0.0.1"]?radio-allow,${EXTEN},1)
exten => _X!,n,GotoIf($[${DB_EXISTS(whitelist/${NODENUM})}]?radio-allow,${EXTEN},1)
exten => _X!,n,Hangup
[radio-allow]
exten => 23456,1,rpt,23456|X
73, David KB4FXC
On Fri, 5 Apr 2019, "David McGough via ARM-allstar" wrote:
>
>
> Already see one oops. Here is another try:
>
> [radio-secure]
> exten => 23455,1,rpt,23455|X
> exten => 23456,1,Goto(whitelist|s|1)
> exten => 23457,1,rpt,23457|X
>
> [whitelist]
> exten => s,1,NoOp(${CALLERID(num)})
> exten => s,n,NoOp(${IAXPEER(CURRENTCHANNEL)})
> exten => s,n,GotoIf($["${IAXPEER(CURRENTCHANNEL)}" = "127.0.0.1"]?radio-allow,${EXTEN},1) ;permit local IPs
> exten => s,n,GotoIf($[${DB_EXISTS(whitelist/${CALLERID(num)})}]?radio-allow,${EXTEN},1)
> exten => s,n,Hangup
>
>
> [radio-allow]
> exten => 23456,1,rpt,23456|X
>
>
>
More information about the ARM-allstar
mailing list