<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
What is the exact string you are using when getting that err? I'm
asking as the `Laptop=1;Laptop laptop=1` is invalid due to the
space char there (a param list does allow such spaces)<br>
<br>
Regards<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 24.01.2024 12:04, Sasmita Panda
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALf-Q44fcoHiekexajnaE-ckWoKR4BKgGHYj9NJVrUEZaFQwuQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi All ,
<div>I am using opensips 3.2 script transformation parameters to
find the existence of a parameter in ; separated list of
parameters . </div>
<div><br>
</div>
<div>In INVITE I have a custom header X-tag which contains a
value as below . </div>
<div>X-Tag : Laptop</div>
<div><br>
</div>
<div>Agents used to get registered with X-Tag with some values
and I used to put them in the attr column of the location
table . </div>
<div>Agent X-Tag : Laptop=1;Laptop laptop=1</div>
<div><br>
</div>
<div>While processing the call , I am matching if the X-Tag in
Invite exists in the Agent tag . If the exact parameter
exists then give a call to that contact else not . For that I
using below transformation </div>
<div><br>
</div>
<div>
<pre class="escaped"
style="font-size:0.9em;font-family:"Lucida Console","Andale Mono","Courier New",Courier;margin-top:0px;margin-bottom:0px;padding:6px;border:1px solid rgb(235,235,235);background-color:rgb(251,254,250);color:rgb(102,102,102)"><b>{param.exist,Laptop}</b></pre>
</div>
<div><br>
</div>
<div>Somehow this is not working . It's giving an error . As for
my expectation it should match with the first parameter and as
that's an exact match agent must get the call . But its not
happening and breaking with error .</div>
<div><br>
</div>
<div><b>ERROR:core:parse_params: invalid character, ; expected,
found l</b><br>
</div>
<div><b><br>
</b></div>
<div><b>while checking the existence of parameters, is that only
checking a single word without any space ?Also special
characters are allowed in between or not ? </b></div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Senior Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>