[arm-allstar] Whitelist 1 node - Same Server?
David McGough
kb4fxc at inttek.net
Fri Apr 5 11:11:07 EDT 2019
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
On Fri, 5 Apr 2019, "David McGough via ARM-allstar" wrote:
>
>
> Sean,
>
> Yes, fairly easy to do. In your extensions.conf file,
> you've got a [radio-secure] stanza that looks something like this. Note
> that the 23455, 23456 and 23457 are 3 nodes on the same box:
>
>
> [radio-secure]
> exten => 23455,1,rpt,23455|X
> exten => 23456,1,rpt,23456|X
> exten => 23457,1,rpt,23457|X
>
>
> Change this to be something like this, where node 23456 goes through the
> "whitelist":
>
> [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-secure,${EXTEN},1) ;permit local IPs
> exten => s,n,GotoIf($[${DB_EXISTS(whitelist/${CALLERID(num)})}]?radio-secure,${EXTEN},1)
> exten => s,n,Hangup
>
>
>
> I HAVEN'T ACTUALLY TRIED THIS! So, my syntax may not be quite perfect!
> I'll try it later today, if someone else doesn't beat me to it....But,
> this is the basic idea.
>
>
> 73, David KB4FXC
>
>
>
>
> On Fri, 5 Apr 2019, "Sean McCarthy via ARM-allstar" wrote:
>
> > Should have clearly stated, the server has 2 nodes, I would like a
> > whitelist on only one of those nodes.
> >
> > Thanks,
> > Sean
> >
> > On Fri, Apr 5, 2019 at 9:19 AM Sean McCarthy <smccarthy61 at gmail.com> wrote:
> >
> > > Is there any way to set up iax.conf and extensions.conf for a whitelist
> > > that only affects one node on the same server?
> > >
> > > Thanks,
> > > Sean
> > >
> > _______________________________________________
> >
> > 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
> >
>
> _______________________________________________
>
> 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