All;
I'm using Asterisk 1.8 and TL MTE 6.1.1.12. I want to add options to each extension in sip.conf like so:
contactdeny=0.0.0.0/0.0.0.0
contactpermit=xxx.yyy.zzz.0/255.255.255.224
contactpermit=aaa.bbb.ccc.ddd/255.255.255.255
contactpermit=eee.fff.ggg.hhh/255.255.255.255
However, when I save the config, only the contactdeny and the last contactpermit are saved. If I write a quick script to manually add these lines to sip.conf, they dont appear in the TL manager. I'm not sure how to get around this. Any help at all would be greatly appreciated.
Thanks;
Frank
I seem to of come across
I seem to of come across another problem with this. It seems that the order of the ACL's does matter, so if I do something like this:
contactdeny=0.0.0.0/0.0.0.0
contactpermit=10.10.10.0/255.255.255.0
where my IP is 10.10.10.10, things work, but if the ACL's are
contactpermit=10.10.10.0/255.255.255.0
contactdeny=0.0.0.0/0.0.0.0
then I am denied. The real problem is that if I edit the extension in Thirdlane, the order is changed. I'm not sure how to get around that, other than Thirdlane fixing this on their end. What do you think?
Thanks;
FSD
for an ACL to work correctly
for an ACL to work correctly the contactdeny entry must come before the contactpermit entry otherwise you re-deny what you tried to permit. old or new pbxmanager?
Correct, the contactdeny must
Correct, the contactdeny must come before the contactpermit. Its not like IPTables where you exit on the first match. Here, every statement is being executed. I'm using TL MTE version 6.1.1.12. The ACL's are in the correct order in sip.conf, but if I edit the extension in Thirdlane, the two lines are reversed in the "other options" box.
Thanks;
FSD
yes, this certainly sounds
yes, this certainly sounds like a gui bug to me. I wonder if it re-orders everything alphabetically by first letter of each row??
you can have only 1 contactpermit 'technically'... so separate them on one entry. try comma or semicolon, i cant remember which.
you could also do a contactacl and use the acl.conf file???