[SR-Users] Trying to use $sel(contact.uri.params)

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 21 10:52:14 CET 2020


Hello,

the doc listing suggest that the name of the parameter has to be
provided, like:

$sel(contact.uri.params[name])

On the other hand, the URI in the logs has username parameters, not URI
parameters.

Cheers,
Daniel

On 18.12.20 15:07, Chaigneau, Nicolas wrote:
>
> Hello,
>
>  
>
>  
>
> I’d like to use a « select » as described here:
>
> http://www.kamailio.org/wiki/cookbooks/5.4.x/selects#contactparams_s
>
>  
>
> I’m trying to extract a parameter from the Contact URI.
>
> What I’ve tried to do:
>
>                                xlog("L_INFO", "contact.uri:
> $sel(contact.uri)\n"); # OK
>
>                                xlog("L_INFO", "contact.uri.params:
> $sel(contact.uri.params)\n"); # null ??
>
>  
>
> This does not seem to work… see output here :
>
>  
>
> 3(10316) INFO: {1 INVITE r8wEHsAgxNIS5OJL} <script>: contact.uri:
> sip:+33145678901;tgrp=YC031;trunk-context=YC90 at 10.31.22.2:5099
>
> 3(10316) INFO: {1 INVITE r8wEHsAgxNIS5OJL} <script>:
> contact.uri.params: <null>
>
>  
>
>  
>
> What am I doing wrong ?
>
> Maybe this is the wrong approach for what I’m trying to do ?
>
>  
>
>  
>
>  
>
> Regards,
>
> Nicolas.
>
> 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.
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201221/83d308fa/attachment.htm>


More information about the sr-users mailing list