Re: [OpenSIPS-Users] Regex on R-URI question

2015-04-07 Thread Satish Patel
Thanks for hint, It works like following way

$var(my-uri) = $rU + "@" + $rd + ":" + $rp"

On Tue, Apr 7, 2015 at 10:37 AM, Newlin, Ben  wrote:

>  “$rU@$rd:$rp”
>
>
>
> $rU – R-URI Username
>
> $rd – R-URI Domain
>
> $rp – R-URI Port
>
>
>
> http://www.opensips.org/Documentation/Script-CoreVar-1-11
>
>
>
> Ben Newlin
>
>
>
> *From:* users-boun...@lists.opensips.org [mailto:
> users-boun...@lists.opensips.org] *On Behalf Of *Satish Patel
> *Sent:* Tuesday, April 07, 2015 10:23 AM
> *To:* OpenSIPS users mailling list
> *Subject:* [OpenSIPS-Users] Regex on R-URI question
>
>
>
> I have following R-URI, want to remove "sip:" and anything after ";"
>
>
>
> sip:12345678@176.74.234.222:31156;rinstance=19e78a48990c0005
>
>
>
> I want following from above string
>
>
>
> 12345678@176.74.234.222:31156
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Regex on R-URI question

2015-04-07 Thread Newlin, Ben
“$rU@$rd:$rp”

$rU – R-URI Username
$rd – R-URI Domain
$rp – R-URI Port

http://www.opensips.org/Documentation/Script-CoreVar-1-11

Ben Newlin

From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of Satish Patel
Sent: Tuesday, April 07, 2015 10:23 AM
To: OpenSIPS users mailling list
Subject: [OpenSIPS-Users] Regex on R-URI question

I have following R-URI, want to remove "sip:" and anything after ";"

sip:12345678@176.74.234.222:31156;rinstance=19e78a48990c0005

I want following from above string

12345678@176.74.234.222:31156<http://12345678@176.74.234.222:31156>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Regex on R-URI question

2015-04-07 Thread Satish Patel
I have following R-URI, want to remove "sip:" and anything after ";"

sip:12345678@176.74.234.222:31156;rinstance=19e78a48990c0005

I want following from above string

12345678@176.74.234.222:31156
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users