On Wed, Jul 7, 2010 at 8:01 PM, Premalatha Kuppan
<[email protected]>wrote:
> Thanks. Corrected teh opensips.cfg file
>
> But the problem was due to this. by default DB URL was NULL. Now i have
> added the DB URL for avpops.
>
> # default URL
> modparam("avpops","db_url","mysql://user:pas...@host/database")
>
> But the value of $rU is NULL..am i placing it in wrong location?
> I want the userpart e.g: sip:userp...@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.
>
> Any Idea ?
>
I think you should be able to use $rU directly like this:
$(rU{s.select,0,_})
However, are you sure there is a username in the request URI?
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:
REGISTER sip:test.com SIP/2.0
Via: SIP/2.0/UDP 192.168.11.214:5060;branch=z9hG4bK23ff25886a332c4f
To: "1694"<sip:[email protected] <sip%[email protected]>>
From: "1694"<sip:[email protected] <sip%[email protected]>>;tag=6fe26be279236cd3
Call-ID: [email protected]
CSeq: 1 REGISTER
Max-Forwards: 70
Expires: 0
Contact: *
User-Agent: SAXA/03.T1.10.9
Content-Length: 0
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users