Hi,
I'm using the append_rpid_hf() command to add the remote party id.
I've implemented it like this:
modparam("auth", "rpid_prefix", "<sip:")
modparam("auth", "rpid_suffix",
"@xxx.xxx.xxx.xxx;user=phone>;party=calling;id-type=subscriber;screen=yes;privacy=off")
[...]
# first the caller needs to be authenticated
if (uri=~"^sip:[0-9]*@(xxx.xxx.xxx.xxx|(voip1\.)?test\.com)") {
if (!(src_ip==xxx.xxx.xxx.xxx | method==ACK | method=="CANCEL" |
method=="BYE")) {
if (!proxy_authorize("xxx.xxx.xxx.xxx", "subscriber")) {
proxy_challenge( "xxx.xxx.xxx.xxx","0");
break;
} else if (method=="INVITE" & !check_from()) {
log(1, "LOG: Spoofed from attempt\n");
sl_send_reply("403", "Use From=id next time");
break;
};
};
};
append_rpid_hf();
What I noticed is that sometimes ser sends it and sometimes not. I have a value in the
rpid column of the user...
Has anyone of you an idea why that happens??
Thanks!
Sebastian