Permit and Deny fields

dilly's picture

Hello everyone,

Is there a way to put in multiple permit and deny addresses on a particular extension?

Thanks


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Not in the gui. However, you

mickecarlsson's picture

Not in the gui.

However, you can try this approach:
In sip_custom_post.conf add the extension with this syntax (example for extension 2476):

[2476](+)
permit=192.168.1.0/255.255.255.0
permit=172.16.25.0/255.255.255.0
...
...

deny/permit are read top down, if you have deny=0.0.0.0/0.0.0.0 in the gui it will deny everything, that is why permit= is further down in the configuration.

So only add permit= in the sip_custom_post.conf.

Note2: This is untested and from memory, YMMV


__________________

Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)


You can use '&' sign in the

obelisk's picture

You can use '&' sign in the GUI and put multiple network ranges:

192.168.1.0/255.255.255.0&172.16.25.0/255.255.255.0


__________________

SIP: Magic incantations - http://forums.digium.com/viewtopic.php?t=78543


Thanks

dilly's picture

Thank you I will try and see how it goes!


I try this & separator to

decnet's picture

I try this & separator to see if it works with mine. Thanks for the input


__________________

"A little Learning is a Dangerous Thing"