[OpenSIPS-Users] URI PARSING

mayamatakeshi mayamatakeshi at gmail.com
Fri Jul 2 11:58:02 CEST 2010


On Fri, Jul 2, 2010 at 6:44 PM, Premalatha Kuppan
<premalatha at ngintech.com>wrote:

> Hi,
>
> Can anyone tell me how to parse SIP URL in Opensips.
>
> Iam getting request as Sip:aa_bb_ccc at opensips.org<Sip%3Aaa_bb_ccc at opensips.org>.
> I need to parse "aa_bb_ccc" as aa,bb,cc and store it in DB.
>
> Anyidea or suggestions ?
>
>
Maybe you can use this transformation on the $rU:
http://www.opensips.org/Resources/DocsCoreTran16#toc6

But you will need to call it 3 times, once for each token.

If the number of token varies, then I think you could ask module perl to
split it to you.

br,
takeshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100702/057e3256/attachment-0001.htm 


More information about the Users mailing list