Re: [SR-Users] force_rtp_proxy[flag, ipaddress] not rewriting c and o ?

2011-07-01 Thread Ovidiu Sas
Are you sure that force_rtp_proxy is invoked? On Fri, Jul 1, 2011 at 11:00 PM, MingHon wrote: > Hi list, > can anyone here help me out here? > i also tried putting it in reply_one. > but in the sdp the c= and o= did not change. it stil having the private ip. > > onreply_route[REPLY_ONE] { > xdbg(

Re: [SR-Users] force_rtp_proxy[flag, ipaddress] not rewriting c and o ?

2011-07-01 Thread MingHon
Hi list, can anyone here help me out here? i also tried putting it in reply_one. but in the sdp the c= and o= did not change. it stil having the private ip. onreply_route[REPLY_ONE] { xdbg("incoming reply\n"); #!ifdef WITH_NAT if ((isflagset(FLT_NATS) || isbflagset(FLB_NATB)) && status=~"(183)

Re: [SR-Users] auth_db question

2011-07-01 Thread Fabian Borot
Thank you klaus, what you say makes sense, but I was under the impression that it could be set from the config file, I will take a look at the kamctl script From: fbo...@hotmail.com To: sr-users@lists.sip-router.org Subject: RE: auth_db question Date: Fri, 1 Jul 2011 14:55:52 -0400 I just tri

Re: [SR-Users] auth_db question

2011-07-01 Thread Klaus Darilion
If there is a clear text password in the database does not depend on the Kamailio configuration. In your case it is the kamctl tool: kamctl will fill both columns, password with the cleartext password and ha1 with the hash. Thus, either provision the subscriber table manually or modify kamctl to

Re: [SR-Users] Session authorization just before initiate it

2011-07-01 Thread Klaus Darilion
Hi Roberto! The best location of applying such a "policy" function depends on several things: First, you need to have all the data you are requiring. E.g. if you want to check if a certain user is allowed to call a certain phone number you usually need to do first: - authenticate the user - norma

Re: [SR-Users] auth_db question

2011-07-01 Thread Fabian Borot
I just tried and the phones register but I still see the password on the password column as clear text. modparam("auth_db", "db_url", DBURL) modparam("auth_db", "calculate_ha1", 0) modparam("auth_db", "password_column", "ha1") modparam("auth_db", "load_credentials", "") modparam("auth_db", "use

[SR-Users] auth_db question

2011-07-01 Thread Fabian Borot
Hello I am trying to store the password on the subscriber db as encrypted instead of plain text and when I do it then the registration fails, modparam("auth_db", "db_url", DBURL) modparam("auth_db", "calculate_ha1", yes) modparam("auth_db", "password_column", "ha1") modparam("auth_db", "load_cre

[SR-Users] Session authorization just before initiate it

2011-07-01 Thread Roberto Fichera
Hi All in the list, I'm new to Kamailio but I'm actually able to quickly setup a server, including also the SIP presence, looking at the example I found at http://kb.asipto.com/kamailio:presence:k31-made-simple which explain very well how to do it. I also made some changes in the final setup and

Re: [SR-Users] xcap server - http load–balancer: xcap authentication problem

2011-07-01 Thread Henning Westerholt
On Thursday 30 June 2011, laura testi wrote: > [...] > pres_refresh_watchers triggered by xcap message in another presence server: > with the hashing over to uri in dispacther workaround, it seems solve the > first problem for SIP/SIMPLE messages, but we have the same kind of > problem for xcap mes

[SR-Users] force_rtp_proxy[flag, ipaddress] not rewriting c and o ?

2011-07-01 Thread MingHon
im trying to replace the ip address in c= and o= with force_rtp_proxy. i tried different flag co,rc,ro,fo,fc,rfco but still doesnt work. hope some one can help me with this.. below is my noob simple script. hope someone can help.. thanks you :) route[RTPPROXY] { #!ifdef WITH_NAT if (i