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(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
-------------------------------