[OpenSIPS-Users] unusual RURI format

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Jun 29 17:11:39 CEST 2009


Hi Brett,

Brett Nemeroff wrote:
> All,
> I've got a customer that is sending me calls with an RURI like this:
>  sip:13155551207;npdi=yes;rn=13155550000 at 1.2.3.4
>
> when I use anything that parses the RURI like $rU, it shows 
> $rU=sip:131555551207;npdi=yes;rn=13155550000
>
> Which is exactly everything from sip: to the first @ sign.
and according to the RFC3261, this is correct and a SIP-URI is 

"sip:" [ userinfo ] hostport uri-parameters [ headers ]


And $rU returns this userinfo (see 19.1.1 SIP and SIPS URI Components).

> The customer isn't able to change this RURI (it's coming from their 
> downstream)
>
> What can I do to properly have $rU parse this up?
I think you already found the answer :) - using dialplan to extract only 
the username part from userinfo.

Regards,
Bogdan

>
> Thanks,
> Brett
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list