I am having trouble with this module. I am trying to deny calls but the only
command that seems to effect calls in the permissions.deny file is ALL:ALL.
I am not sure if this is a problem with my syntax or other. Below is the
relevant info.
Thanks
modparam("permissions", "default_allow_file",
"/usr/local/etc/ser/permissions.allow")
modparam("permissions", "default_deny_file",
"/usr/local/etc/ser/permissions.deny")
if (lookup("location")) {
log(1, "LOG: Match location\n");
append_hf("P-hint: usrloc applied\r\n");
if (allow_routing()) {
log(1, "LOG: Allow_routing\n");
append_branch();
rewritehostport ("xxx.yyy.83.5:5060");
route(9);
#t_relay();
break;
} else {
#append_branch();
log(1, "LOG: Post allow route failed voicemail\n");
rewritehostport ("xxx.yyy.83.5:5060");
prefix("2");
route(9);
break;
};
};
/usr/local/etc/ser/permissions.allow - is empty
/usr/local/etc/ser/permissions.deny - various attempts
"^sip:4103539999@66\.159\.88\.16$" : "^sip:5505@64\.254\.83\.4$"
ALL : "^sip:5505$"
ALL : "^sip:5505@64\.254\.83\.4$"
"^sip:4103539999$" : ALL
Ngrep of INIVTE to SER
INVITE sip:5505@xxx.yyy.83.4 SIP/2.0..Via: SIP/2.0/UDP
xxx.yyy.88.16:5060;branch=z9hG4bK7325aa3b..From: "Cell Phone MD" <sip:41
bd19a3b299ac6605833f7@xxx.yyy.88.16..CSeq: 102 INVITE..User-Agent:
Asterisk PBX..Date: Thu, 07 Apr 2005 18:22:03 GMT..Allow: INV
159.88.16..CSeq: 102 INVITE..Server: Sip EXpress router (0.9.1
(i386/linux))..Content-Length: 0..Warning: 392 xxx.yyy.83.4:5060
INVITE sip:5505@xxx.yyy.83.5:5060 SIP/2.0..Max-Forwards: 10..Record-Route:
<sip:xxx.yyy.83.4;ftag=as424541a9;lr=on>..Via: SIP/2.0
57cdeb7c798bd19a3b299ac6605833f7@xxx.yyy.88.16..CSeq: 102
INVITE..User-Agent: Asterisk PBX..Date: Thu, 07 Apr 2005 18:22:03 GMT.
.Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER..Content-Type:
application/sdp..Content-Length: 238..P-hint: usrloc applied...
INVITE sip:5505@69.250.205.31:5068 SIP/2.0..Max-Forwards:
10..Record-Route: <sip:xxx.yyy.83.4;ftag=as424541a9;lr=on>..Via: SIP/2
: 57cdeb7c798bd19a3b299ac6605833f7@xxx.yyy.88.16..CSeq: 102
INVITE..User-Agent: Asterisk PBX..Date: Thu, 07 Apr 2005 18:22:03 GM
T..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER..Content-Type:
application/sdp..Content-Length: 238..P-hint: usrloc applied.
-ID: 57cdeb7c798bd19a3b299ac6605833f7@xxx.yyy.88.16..CSeq: 102
INVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPT
798bd19a3b299ac6605833f7@xxx.yyy.88.16..CSeq: 102 INVITE..User-Agent:
Grandstream BT100 1.0.5.16..Content-Length: 0....
Show replies by date