[sr-dev] [kamailio/kamailio] Param.valueat not returning special chars (#2200)

duarterocha91 notifications at github.com
Wed Jan 22 17:47:52 CET 2020


Hello,

I've run into a problem while using parameters parsing tools from Kamailio.
When i request the value of a parameter it discards some characters like ""
for example.

Here is an example :


$var(Parameters) = "kamailio=\"version5\";sip=hey";
xerr("String Parameter = $var(Parameters)");
xerr("Parameter on position 1 = $(var(Parameters){param.name,0}) and has
value = $(var(Parameters){param.valueat,0})");


This code returns :
ERROR: <script>: String Parameter = kamailio="version5";sip=hey
ERROR: <script>: Parameter on position 0 = kamailio and has value = version5

I found this issue while processing calls with the Contact parameter sip.instance.

Is there anything i can do to get the original string?

I'm running Kamailio 5.2.0.

Best Regards

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2200
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200122/8d4604cf/attachment.html>


More information about the sr-dev mailing list