<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi Alain,<br>
<br>
There is no direct way. You need to use a transformation (on top
of $rU) in order to get that param value : $(rU{s.select,0,,}) ,
see <br>
<a class="moz-txt-link-freetext" href="https://www.opensips.org/Documentation/Script-Tran-3-4#s.select">https://www.opensips.org/Documentation/Script-Tran-3-4#s.select</a><br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 09.01.2025 14:56, Alain Bieuzent
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6FB8743A-2ECF-4077-9A3B-AC7E3AEEE08C@free.fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}@font-face
{font-family:"Apple Color Emoji";
panose-1:0 0 0 0 0 0 0 0 0 0;}@font-face
{font-family:remialcxesans;
panose-1:2 11 6 4 2 2 2 2 2 4;}@font-face
{font-family:template-IIW3pcg7EeunrQANOhMDEQ;
panose-1:2 11 6 4 2 2 2 2 2 4;}@font-face
{font-family:zone-1;
panose-1:2 11 6 4 2 2 2 2 2 4;}@font-face
{font-family:zones-AQ;
panose-1:2 11 6 4 2 2 2 2 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"
lang="EN-US">unfortunately</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">
no,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"
lang="EN-US">$rU in my example returns the entire string
between sip: and before the @ => 123456789;tgrp=99999<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"
lang="EN-US">I know how read the value of parameters (ex :
$(rU{param.value, tgrp}) ), but I don’t know how to read the
value without parameters<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"
lang="EN-US">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"
lang="EN-US"><o:p> </o:p></span></p>
<div
style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-family:"Calibri",sans-serif;color:black">De : </span></b><span
style="font-family:"Calibri",sans-serif;color:black">Users
<a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org"><users-bounces@lists.opensips.org></a> au nom de Ali
Dogan <a class="moz-txt-link-rfc2396E" href="mailto:alidogan@plan.com"><alidogan@plan.com></a><br>
<b>Répondre à : </b>OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Date : </b>jeudi 9 janvier 2025 à 12:31<br>
<b>À : </b>OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Objet : </b>Re: [OpenSIPS-Users] Extract "numeric
part" of RURI<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Hello Alain,<br>
<br>
3.77 Username in SIP Request's URI - $rU </span><span
style="font-family:"Apple Color Emoji";color:black">🔗</span><span
style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">$rU - reference
to username in request's URI<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">It is R/W
variable (you can assign values to it routing script)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><br>
This should give you what you need.<br>
<br>
Best Regards,<o:p></o:p></span></p>
</div>
<div>
<table class="MsoNormalTable"
style="width:100.0%;border-collapse:collapse" width="100%"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm" valign="top">
<table class="MsoNormalTable"
style="border-collapse:collapse" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td style="padding:22.5pt 0cm 0cm 0cm"
valign="top">
<table class="MsoNormalTable"
style="width:375.0pt;border-collapse:collapse" width="500"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td
style="border:none;border-bottom:solid #B1BAD4 1.0pt;padding:0cm 0cm 15.0pt 0cm"
valign="top">
<table class="MsoNormalTable"
style="border-collapse:collapse"
cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr>
<td
style="border:none;border-right:solid #CCCCCC 1.0pt;padding:0cm 15.0pt 0cm 0cm">
<table class="MsoNormalTable"
style="border-collapse:collapse" cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr>
<td
style="padding:0cm 0cm 0cm 0cm" valign="top">
<p><b><span
style="font-size:10.5pt;font-family:"Verdana",sans-serif;color:#041729">Ali Dogan</span></b><b><span
style="font-size:1.0pt;font-family:"remialcxesans",serif;color:white"></span></b><b><span
style="font-size:1.0pt;font-family:"template-IIW3pcg7EeunrQANOhMDEQ",serif;color:white"></span></b><b><span
style="font-size:1.0pt;font-family:"zone-1",serif;color:white"></span></b><b><span
style="font-size:1.0pt;font-family:"zones-AQ",serif;color:white"></span></b><b><span
style="font-size:10.5pt;font-family:"Verdana",sans-serif;color:#041729"><o:p></o:p></span></b></p>
</td>
</tr>
<tr>
<td
style="padding:11.25pt 0cm 0cm 0cm" valign="top">
<p><b><span
style="font-size:1.0pt;color:#041729"><a href="http://www.plan.com/"
target="_blank" moz-do-not-send="true"><span
style="color:#041729;text-decoration:none"><span style="color:blue"><img
style="width:1.6354in" id="_x0000_i1030"
src="http://www.plan.com/signatures/v2/plan-logo.png" alt="plan.com"
moz-do-not-send="true" width="157" border="0"></span></span></a><o:p></o:p></span></b></p>
</td>
</tr>
</tbody>
</table>
</td>
<td
style="border:none;border-right:solid #B1BAD4 1.0pt;padding:0cm 15.0pt 0cm 15.0pt">
<table class="MsoNormalTable"
style="border-collapse:collapse" cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr>
<td
style="padding:0cm 0cm 0cm 0cm" valign="top">
<p><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#041729"><a
href="tel:+44(0)3300%2088%2018%2018" target="_blank"
moz-do-not-send="true"><span style="color:#041729;text-decoration:none">+44(0)3300 88 18 18</span></a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td
style="padding:6.0pt 0cm 0cm 0cm" valign="top">
<p><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#000001"><a
href="mailto:alidogan@plan.com" target="_blank" moz-do-not-send="true"><span
style="color:#041729;text-decoration:none">alidogan@plan.com</span></a><o:p></o:p></span></b></p>
</td>
</tr>
<tr>
<td
style="padding:6.0pt 0cm 0cm 0cm" valign="top">
<table
class="MsoNormalTable" style="border-collapse:collapse" cellspacing="0"
cellpadding="0"
border="0">
<tbody>
<tr>
<td
style="padding:0cm 5.25pt 0cm 0cm">
<p
style="text-align:center" align="center"><span style="font-size:1.0pt"><a
href="https://www.facebook.com/plan.im" target="_blank"
moz-do-not-send="true"><span
style="color:windowtext;text-decoration:none"><span style="color:blue"><img
style="width:.2083in" id="_x0000_i1029"
src="http://www.plan.com/signatures/v3/facebook.png" alt="Facebook"
moz-do-not-send="true" width="20" border="0"></span></span></a><o:p></o:p></span></p>
</td>
<td
style="padding:0cm 5.25pt 0cm 5.25pt">
<p
style="text-align:center" align="center"><span style="font-size:1.0pt"><a
href="https://www.instagram.com/plandotcom" target="_blank"
moz-do-not-send="true"><span
style="color:windowtext;text-decoration:none"><span style="color:blue"><img
style="width:.2083in" id="_x0000_i1028"
src="http://www.plan.com/signatures/v3/instagram.png" alt="Instagram"
moz-do-not-send="true" width="20" border="0"></span></span></a><o:p></o:p></span></p>
</td>
<td
style="padding:0cm 5.25pt 0cm 5.25pt">
<p
style="text-align:center" align="center"><span style="font-size:1.0pt"><a
href="https://www.linkedin.com/company/plan-com" target="_blank"
moz-do-not-send="true"><span
style="color:windowtext;text-decoration:none"><span style="color:blue"><img
style="width:.2083in" id="_x0000_i1027"
src="http://www.plan.com/signatures/v3/linkedin.png" alt="LinkedIn"
moz-do-not-send="true" width="20" border="0"></span></span></a><o:p></o:p></span></p>
</td>
<td
style="padding:0cm 0cm 0cm 5.25pt">
<p
class="MsoNormal"><span style="font-size:1.0pt"> <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td
style="padding:0cm 15.0pt 0cm 15.0pt">
<p><span
style="font-size:1.0pt"><img
style="width:6.4062in"
id="_x0000_i1026"
src="http://www.plan.com/signatures/v4/2024-awards-logos.png"
moz-do-not-send="true"
width="615" border="0"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm"
valign="top">
<table class="MsoNormalTable"
style="width:100.0%;border-collapse:collapse" width="100%"
cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr>
<td
style="padding:0cm 0cm 0cm 0cm" valign="top">
<table class="MsoNormalTable"
style="border-collapse:collapse" cellspacing="0" cellpadding="0"
border="0">
<tbody>
<tr>
<td
style="padding:15.0pt 0cm 15.0pt 0cm" valign="top">
<p><span
style="font-size:7.0pt;font-family:"Verdana",sans-serif;color:#AFB3C2"><a
href="http://www.plan.com/" target="_blank" title="http://www.plan.com/"
moz-do-not-send="true"><span style="color:#AFB3C2;text-decoration:none">plan.com</span></a>
is the trading
name of Plan
Communications
Limited,
registered in the
Isle of Man with
company number
010273V and
Registered Office
at No.5 Victoria
Street, Douglas,
Isle of Man, IM1
2LR. This email
and any
attachments to it
may be
confidential and
are intended
solely for the use
of the individual
to whom it is
addressed. Any
views or opinions
expressed are
solely those of
the author and do
not necessarily
represent those of
Plan. If you are
not the intended
recipient of this
email, you must
neither take any
action based upon
its contents, nor
copy or show it to
anyone. Please
contact the sender
if you believe you
have received this
email in error.<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div class="MsoNormal" style="text-align:center" align="center">
<hr width="100%" size="0" align="center"></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> Users
<a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org"><users-bounces@lists.opensips.org></a> on behalf of
Alain Bieuzent <a class="moz-txt-link-rfc2396E" href="mailto:alain.bieuzent@free.fr"><alain.bieuzent@free.fr></a><br>
<b>Sent:</b> Thursday, January 9, 2025 14:12<br>
<b>To:</b> OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Subject:</b> [OpenSIPS-Users] Extract "numeric part" of
RURI</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<table class="MsoNormalTable"
style="width:100.0%;border-collapse:collapse;box-sizing: border-box;border-spacing: 0px"
width="100%" cellspacing="0" cellpadding="0" border="0"
align="left">
<tbody>
<tr style="height:24.75pt">
<td
style="width:3.0pt;background:#910A19;padding:5.25pt 1.5pt 5.25pt 1.5pt;height:24.75pt"
width="4"><br>
</td>
<td
style="width:100.0%;background:#FDF2F4;padding:5.25pt 3.75pt 5.25pt 11.25pt;height:24.75pt"
width="100%">
<p
style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly"><span
style="font-family:"Calibri",sans-serif;color:black">This
message was sent from outside plan.com. Please do
not click links or open attachments unless you
recognise the source of this email and know the
content is safe.</span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Good
Morning,</span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">What
is the best way to extract the "numeric part" of a RURI, for
example on an INVITE with tgrp parameter and I want to
extract only the “123456789” part</span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">INVITE
<u><span style="color:#0563C1"><a
href="sip:123456789;tgrp=99999@X.X.X.X:5060"
moz-do-not-send="true"><span style="color:#0563C1">sip:123456789;tgrp=99999@X.X.X.X:5060</span></a></span></u></span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks
in advance,</span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Alain</span><span
style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal">_______________________________________________
Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a> <o:p></o:p></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>