<br><br><div class="gmail_quote">On Wed, Jul 7, 2010 at 8:01 PM, Premalatha Kuppan <span dir="ltr"><<a href="mailto:premalatha@ngintech.com">premalatha@ngintech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks. Corrected teh opensips.cfg file<br><br>But the problem was due to this. by default DB URL was NULL. Now i have added the DB URL for avpops.<br><pre># default URL<br>modparam("avpops","db_url","mysql://user:passwd@host/database")<br>
<br></pre>But the value of $rU is NULL..am i placing it in wrong location?<br> I want the userpart e.g: sip:userpart@domain is the request uri; i need only userpart . I
believe that would be stored in $rU; but tis coming as NULL. Which
variable or where should i place this command for registration and
de-registration.<br>
<br>
Any Idea ?<br></blockquote></div><br>I think you should be able to use $rU directly like this:<br>$(rU{s.select,0,_})<br><br>However, are you sure there is a username in the request URI?<br>I know at least two sip phone models (SAXA/03.T1.10.9 and CounterPath eyebeam), that don't send a username in the REGISTER Request URI:<br>
<br>REGISTER sip:<a href="http://test.com">test.com</a> SIP/2.0<br>Via: SIP/2.0/UDP 192.168.11.214:5060;branch=z9hG4bK23ff25886a332c4f<br>To: "1694"<<a href="mailto:sip%3A1694@test.com">sip:1694@test.com</a>><br>
From: "1694"<<a href="mailto:sip%3A1694@test.com">sip:1694@test.com</a>>;tag=6fe26be279236cd3<br>Call-ID: <a href="mailto:40025caa51f66e0d06d5f8595f531340@192.168.11.214">40025caa51f66e0d06d5f8595f531340@192.168.11.214</a><br>
CSeq: 1 REGISTER<br>Max-Forwards: 70<br>Expires: 0<br>Contact: *<br>User-Agent: SAXA/03.T1.10.9<br>Content-Length: 0<br><br>