<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Hello,</p>
<p>the doc listing suggest that the name of the parameter has to be
provided, like:</p>
<p>$sel(contact.uri.params[name])</p>
<p>On the other hand, the URI in the logs has username parameters,
not URI parameters.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 18.12.20 15:07, Chaigneau, Nicolas
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AM9PR02MB65473806529A7A5EE9446B13E6C30@AM9PR02MB6547.eurprd02.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’d like to use a « select » as described
here:<o:p></o:p></p>
<p class="MsoNormal"><a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/cookbooks/5.4.x/selects#contactparams_s">http://www.kamailio.org/wiki/cookbooks/5.4.x/selects#contactparams_s</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to extract a parameter from the
Contact URI.<o:p></o:p></p>
<p class="MsoNormal">What I’ve tried to do:<o:p></o:p></p>
<p class="MsoNormal">
xlog("L_INFO", "contact.uri: $sel(contact.uri)\n"); # OK<o:p></o:p></p>
<p class="MsoNormal">
xlog("L_INFO", "contact.uri.params:
$sel(contact.uri.params)\n"); # null ??<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This does not seem to work… see output
here :<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">3(10316) INFO: {1 INVITE r8wEHsAgxNIS5OJL}
<script>: contact.uri:
<a class="moz-txt-link-freetext" href="sip:+33145678901;tgrp=YC031;trunk-context=YC90@10.31.22.2:5099">sip:+33145678901;tgrp=YC031;trunk-context=YC90@10.31.22.2:5099</a><o:p></o:p></p>
<p class="MsoNormal">3(10316) INFO: {1 INVITE r8wEHsAgxNIS5OJL}
<script>: contact.uri.params: <null><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">What am I doing wrong ?<o:p></o:p></p>
<p class="MsoNormal">Maybe this is the wrong approach for what
I’m trying to do ?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Nicolas.<o:p></o:p></p>
</div>
<p style="font-size: 9px; ">This message contains information that
may be privileged or confidential and is the property of the
Capgemini Group. It is intended only for the person to whom it
is addressed. If you are not the intended recipient, you are not
authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender
immediately and delete all copies of this message.</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
</body>
</html>