Hi Brandon,
loading the RPID should work with the default values for the parameters:
modparam("auth", "rpid_avp", "rpid")
modparam("auth_db", "load_credentials","rpid")
see the online documentation
to properly understand the meaning of each param.
shortly: you have just to do append_hf();
to troubleshoot - before the append_hf(), check with avp_print() if the
"rpid" avp was loaded ; also you can check the mysql logs to see what if
it was loaded.
regards,
bogdan
Jesus Rodriguez wrote:
On Thu, 6 Oct 2005, Brandon Price wrote:
Hello,
I am having some trouble getting this to work. I
have tried...
openserctl rpid add 200 "privacy=full"
openserctl rpid add 200
"<sip:200@ourdomain.net;party=calling;id-type=subscriber;screen=yes;privacy=full>"
I made sure that the changes were actually taking place in the mysql db.
neither have achieved the desired effect equal to callerid block on
the pstn.
I have included the related portions of my openser.cfg. Any help
would be greatly appreciated.
# auth
modparam("auth", "rpid_avp", "rpid")
modparam("auth", "rpid_prefix", "")
modparam("auth", "rpid_suffix",
";party=calling;id-type=subscriber;screen=yes")
if (method=="INVITE" && uri =~ "sip:1[0-9]{10}@.*"){
if (is_user_in("From", "ld")){
if (!www_authorize("", "subscriber")){
www_challenge("", "1");
break;
};
setflag(1);
append_rpid_hf();
prefix("+");
rewritehost("1.2.3.4");
Use this module param to load the rpid value:
modparam("auth_db", "load_credentials","$rpid=rpid")
Regards.
On Wed, 5
Oct 2005, Brandon Price wrote:
Can someone please explain to me how RPID works
under openser? I
have some experience with SIP and Asterisk, but I am having some
trouble manipulating the RPID variables under openser. How does
RPID relate to Callerid or simple services like private calling, or
anonymous call block. How do I tell openser to send all calls from
a certain user with the privacy=full flag, I'm assuming this tells
the sip proxy or UA on the other end not to present the callerid?
Any help greatly appreciated.
You can use a field "rpid" in the database and load the value with
AVPs.
A possible format to use is:
<sip:12345678@domain.com;user=phone>;privacy=off
You can also add a prefix or sufix to every rpid that will be
automatically added by OpenSER with:
modparam("auth", "rpid_suffix",
";party=calling;id-type=subscriber")
Saludos
JesusR.
-------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
jesusr(a)voztele.com
http://www.voztele.com
Tel. 902360305
-------------------------------
Saludos
JesusR.
-------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
jesusr(a)voztele.com
http://www.voztele.com
Tel. 902360305
-------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users