Skip to main content

multiple permit/deny rules don't work on sip/iax trunks

Posted by justdave on Fri, 01/16/2009

When setting up a SIP or IAX trunk and putting multiple permit or deny rules in the "other options" box, PBX Manager removes all but the last one entered when saving it to the config file. The syntax of the file allows multiple of these, and it's necessary when talking to a multi-homed SIP provider who could deliver a call to you from any of a few IPs.

If I put the following in the box:

permit=ipaddress1
permit=ipaddress2
permit=ipaddress3
deny=0.0.0.0/0

Then I get the following written to the file:

permit=ipaddress3
deny=0.0.0.0/0

Using PBX Manager 6.0.1.69


Submitted by justdave on Fri, 01/16/2009 Permalink

and my example is actually backwards, the deny should have been listed first (for my specific example). Last matching rule wins according ot the docs.