[OpenSIPS-Users] URI PARSING
mayamatakeshi
mayamatakeshi at gmail.com
Wed Jul 7 13:28:38 CEST 2010
On Wed, Jul 7, 2010 at 8:01 PM, Premalatha Kuppan
<premalatha at ngintech.com>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:passwd@host/database")
>
> But the value of $rU is NULL..am i placing it in wrong location?
> I want the userpart e.g: sip:userpart at 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:1694 at test.com <sip%3A1694 at test.com>>
From: "1694"<sip:1694 at test.com <sip%3A1694 at test.com>>;tag=6fe26be279236cd3
Call-ID: 40025caa51f66e0d06d5f8595f531340 at 192.168.11.214
CSeq: 1 REGISTER
Max-Forwards: 70
Expires: 0
Contact: *
User-Agent: SAXA/03.T1.10.9
Content-Length: 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100707/c451c850/attachment.htm
More information about the Users
mailing list