[SR-Users] possible bug on {param.value,name}

David Villasmil david.villasmil.work at gmail.com
Mon May 3 21:29:14 CEST 2021


Hello guys,

I'm possible using this wrong, but here it is;
I need to get a previously set parameter to rr, named "wsconnid":

$var(wsconnid) = $(hdr(Route){param.value,wsconnid})
xlog("L_ERR", "Connection ID parameter: $var(wsconnid)");

And i'm getting:

May  3 19:24:45 ip-10-231-32-37 /usr/sbin/kamailio[10015]: ERROR: <script>:
WS Connection ID 13>
May  3 19:24:49 ip-10-231-32-37 /usr/sbin/kamailio[10014]: ERROR: <script>:
Got an OPTIONS We now need to get the connection id from rr

This is an example:
Route: <sip:10.231.32.37;r2=on;lr;wsconnid=13>

The function is returning "13>" instead of "13".

Thanks all,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210503/cc5be124/attachment.htm>


More information about the sr-users mailing list