<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:large">You could then use the 'select' string transformation to select the first item in a ';' separated list:</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large"><a href="https://www.opensips.org/Documentation/Script-Tran-3-4#s.select">https://www.opensips.org/Documentation/Script-Tran-3-4#s.select</a></div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">For example:</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">{s.select,0,;}</div><div class="gmail_default" style="font-size:large"><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, 9 Jan 2025 at 12:58, Alain Bieuzent <<a href="mailto:alain.bieuzent@free.fr">alain.bieuzent@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3303878880878839199"><div lang="FR" style="overflow-wrap: break-word;"><div class="m_-3303878880878839199WordSection1"><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">unfortunately</span><span style="font-size:11pt;font-family:Calibri,sans-serif"> no,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">$rU in my example returns the entire string between sip: and before the @ => 123456789;tgrp=99999<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">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<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">Thanks<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 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 href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> au nom de Ali Dogan <<a href="mailto:alidogan@plan.com" target="_blank">alidogan@plan.com</a>><br><b>Répondre à : </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br><b>Date : </b>jeudi 9 janvier 2025 à 12:31<br><b>À : </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br><b>Objet : </b>Re: [OpenSIPS-Users] Extract "numeric part" of RURI<u></u><u></u></span></p></div><div><p class="MsoNormal"><u></u> <u></u></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"><u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="color:black">$rU - reference to username in request's URI<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span style="color:black">It is R/W variable (you can assign values to it routing script)<u></u><u></u></span></p></div><div><p class="MsoNormal"><span style="color:black"><br>This should give you what you need.<br><br>Best Regards,<u></u><u></u></span></p></div><div><table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;border-collapse:collapse"><tbody><tr><td valign="top" style="padding:0cm"><table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tbody><tr><td valign="top" style="padding:22.5pt 0cm 0cm"><table border="0" cellspacing="0" cellpadding="0" width="500" style="width:375pt;border-collapse:collapse"><tbody><tr><td valign="top" style="border-top:none;border-right:none;border-left:none;border-bottom:1pt solid rgb(177,186,212);padding:0cm 0cm 15pt"><table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tbody><tr><td style="border-top:none;border-bottom:none;border-left:none;border-right:1pt solid rgb(204,204,204);padding:0cm 15pt 0cm 0cm"><table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tbody><tr><td valign="top" style="padding:0cm"><p><b><span style="font-size:10.5pt;font-family:Verdana,sans-serif;color:rgb(4,23,41)">Ali Dogan</span></b><b><span style="font-size:1pt;font-family:remialcxesans,serif;color:white"></span></b><b><span style="font-size:1pt;font-family:template-IIW3pcg7EeunrQANOhMDEQ,serif;color:white"></span></b><b><span style="font-size:1pt;font-family:zone-1,serif;color:white"></span></b><b><span style="font-size:1pt;font-family:zones-AQ,serif;color:white"></span></b><b><span style="font-size:10.5pt;font-family:Verdana,sans-serif;color:rgb(4,23,41)"><u></u><u></u></span></b></p></td></tr><tr><td valign="top" style="padding:11.25pt 0cm 0cm"><p><b><span style="font-size:1pt;color:rgb(4,23,41)"><a href="http://www.plan.com/" target="_blank"><span style="color:rgb(4,23,41);text-decoration:none"><span style="color:blue"><img border="0" width="157" style="width: 1.6354in;" id="m_-3303878880878839199_x0000_i1030" src="http://www.plan.com/signatures/v2/plan-logo.png" alt="plan.com"></span></span></a><u></u><u></u></span></b></p></td></tr></tbody></table></td><td style="border-top:none;border-bottom:none;border-left:none;border-right:1pt solid rgb(177,186,212);padding:0cm 15pt"><table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tbody><tr><td valign="top" style="padding:0cm"><p><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(4,23,41)"><a href="tel:+44(0)3300%2088%2018%2018" target="_blank"><span style="color:rgb(4,23,41);text-decoration:none">+44(0)3300 88 18 18</span></a><u></u><u></u></span></p></td></tr><tr><td valign="top" style="padding:6pt 0cm 0cm"><p><b><span style="font-size:9pt;font-family:Verdana,sans-serif;color:rgb(0,0,1)"><a href="mailto:alidogan@plan.com" target="_blank"><span style="color:rgb(4,23,41);text-decoration:none">alidogan@plan.com</span></a><u></u><u></u></span></b></p></td></tr><tr><td valign="top" style="padding:6pt 0cm 0cm"><table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tbody><tr><td style="padding:0cm 5.25pt 0cm 0cm"><p align="center" style="text-align:center"><span style="font-size:1pt"><a href="https://www.facebook.com/plan.im" target="_blank"><span style="color:windowtext;text-decoration:none"><span style="color:blue"><img border="0" width="20" style="width: 0.2083in;" id="m_-3303878880878839199_x0000_i1029" src="http://www.plan.com/signatures/v3/facebook.png" alt="Facebook"></span></span></a><u></u><u></u></span></p></td><td style="padding:0cm 5.25pt"><p align="center" style="text-align:center"><span style="font-size:1pt"><a href="https://www.instagram.com/plandotcom" target="_blank"><span style="color:windowtext;text-decoration:none"><span style="color:blue"><img border="0" width="20" style="width: 0.2083in;" id="m_-3303878880878839199_x0000_i1028" src="http://www.plan.com/signatures/v3/instagram.png" alt="Instagram"></span></span></a><u></u><u></u></span></p></td><td style="padding:0cm 5.25pt"><p align="center" style="text-align:center"><span style="font-size:1pt"><a href="https://www.linkedin.com/company/plan-com" target="_blank"><span style="color:windowtext;text-decoration:none"><span style="color:blue"><img border="0" width="20" style="width: 0.2083in;" id="m_-3303878880878839199_x0000_i1027" src="http://www.plan.com/signatures/v3/linkedin.png" alt="LinkedIn"></span></span></a><u></u><u></u></span></p></td><td style="padding:0cm 0cm 0cm 5.25pt"><p class="MsoNormal"><span style="font-size:1pt"> <u></u><u></u></span></p></td></tr></tbody></table></td></tr></tbody></table></td><td style="padding:0cm 15pt"><p><span style="font-size:1pt"><img border="0" width="615" style="width: 6.4062in;" id="m_-3303878880878839199_x0000_i1026" src="http://www.plan.com/signatures/v4/2024-awards-logos.png"><u></u><u></u></span></p></td></tr></tbody></table></td></tr><tr><td valign="top" style="padding:0cm"><table border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;border-collapse:collapse"><tbody><tr><td valign="top" style="padding:0cm"><table border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse"><tbody><tr><td valign="top" style="padding:15pt 0cm"><p><span style="font-size:7pt;font-family:Verdana,sans-serif;color:rgb(175,179,194)"><a href="http://www.plan.com/" title="http://www.plan.com/" target="_blank"><span style="color:rgb(175,179,194);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.<u></u><u></u></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" align="center" style="text-align:center"><hr size="0" width="100%" align="center"></div><div id="m_-3303878880878839199divRplyFwdMsg"><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif;color:black">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif;color:black"> Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Alain Bieuzent <<a href="mailto:alain.bieuzent@free.fr" target="_blank">alain.bieuzent@free.fr</a>><br><b>Sent:</b> Thursday, January 9, 2025 14:12<br><b>To:</b> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br><b>Subject:</b> [OpenSIPS-Users] Extract "numeric part" of RURI</span> <u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div></div><table border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100%;border-collapse:collapse;box-sizing:border-box;border-spacing:0px"><tbody><tr style="height:24.75pt"><td width="4" style="width:3pt;background:rgb(145,10,25);padding:5.25pt 1.5pt;height:24.75pt"></td><td width="100%" style="width:100%;background:rgb(253,242,244);padding:5.25pt 3.75pt 5.25pt 11.25pt;height:24.75pt"><p><span style="font-family:Calibri,sans-serif;color:black">This message was sent from outside <a href="http://plan.com" target="_blank">plan.com</a>. 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"><u></u><u></u></span></p></td></tr></tbody></table><p class="MsoNormal"><u></u> <u></u></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif">Good Morning,</span><span style="font-family:Calibri,sans-serif"><u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span><span style="font-family:Calibri,sans-serif"><u></u><u></u></span></p><p><span style="font-size:11pt;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"><u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span><span style="font-family:Calibri,sans-serif"><u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif">INVITE <u><span style="color:rgb(5,99,193)"><a><span style="color:rgb(5,99,193)">sip:123456789;tgrp=99999@X.X.X.X:5060</span></a></span></u></span><span style="font-family:Calibri,sans-serif"><u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span><span style="font-family:Calibri,sans-serif"><u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif">Thanks in advance,</span><span style="font-family:Calibri,sans-serif"><u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif"> </span><span style="font-family:Calibri,sans-serif"><u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif">Alain</span><span style="font-family:Calibri,sans-serif"><u></u><u></u></span></p><p class="MsoNormal">_______________________________________________ Users mailing list <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a> <u></u><u></u></p></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></blockquote></div></div>