This post is at: ForumGeneral questions
4 posts / 0 new
Last post
justdave
justdave's picture
Joined: 2008/07/17
Points: 0

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

justdave
justdave's picture
Joined: 2008/07/17
Points: 0

in case it's doing any kind of hashing, note that the order they're listed is important, so the order needs to be preserved as well.

justdave
justdave's picture
Joined: 2008/07/17
Points: 0

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.

thirdlane
thirdlane's picture
Joined: 2007/02/07
Points: 100

Dave,

Thanks for reporting. This is not going to be an easy fix - I will see what can be done.

Alex

Alex Epshteyn
Third Lane Technologies
Multi Tenant Asterisk PBX