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.
-Brandon Price-
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@voztele.com http://www.voztele.com Tel. 902360305 -------------------------------
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");
On Oct 6, 2005, at 4:53 AM, Jesus Rodriguez wrote:
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@voztele.com http://www.voztele.com Tel. 902360305
After more troubleshooting I have found that the RPID isn't being sent with the INVITE's. Theres my real problem. Als always. Any help, greatly appreciated.
On Oct 6, 2005, at 10:55 AM, Brandon Price wrote:
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");
On Oct 6, 2005, at 4:53 AM, Jesus Rodriguez wrote:
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@voztele.com http://www.voztele.com Tel. 902360305
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
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@voztele.com http://www.voztele.com Tel. 902360305
Saludos JesusR.
------------------------------- Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305 -------------------------------
When I do that openser fails to start. contents of /var/log/messages enclosed.
Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: Maxfwd module- initializing Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: AUTH module - initializing Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: AUTH_DB module - initializing Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: ERROR:auth:aaa_avps: parse error in "$rpid=rpid" at pos 0($rpid=rpid) Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: ERROR:auth_db:mod_init: failed to parse credentials Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: init_mod(): Error while initializing module auth_db
On Oct 6, 2005, at 12:19 PM, 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@voztele.com http://www.voztele.com Tel. 902360305
Saludos JesusR.
Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305
On Thu, 6 Oct 2005, Brandon Price wrote:
When I do that openser fails to start. contents of /var/log/messages enclosed.
Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: Maxfwd module- initializing Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: AUTH module - initializing Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: AUTH_DB module - initializing Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: ERROR:auth:aaa_avps: parse error in "$rpid=rpid" at pos 0($rpid=rpid) Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: ERROR:auth_db:mod_init: failed to parse credentials Oct 6 12:43:24 ser1 /usr/local/sbin/openser[18457]: init_mod(): Error while initializing module auth_db
Define the avp "rpid":
modparam("avpops", "avp_aliases","rpid=10")
On Oct 6, 2005, at 12:19 PM, 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@voztele.com http://www.voztele.com Tel. 902360305
Saludos JesusR.
Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Saludos JesusR.
------------------------------- Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305 -------------------------------
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 http://www.openser.org/docs/modules/0.10.x/ 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@voztele.com http://www.voztele.com Tel. 902360305
Saludos JesusR.
Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
errata : append_hf() replaced by append_rpid() :D
bogdan
Bogdan-Andrei Iancu wrote:
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 http://www.openser.org/docs/modules/0.10.x/ to properly understand the meaning of each param.
shortly: you have just to do append_rpid();
to troubleshoot - before the append_rpid(), 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@voztele.com http://www.voztele.com Tel. 902360305
Saludos JesusR.
Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users