<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>Hi Tito,</tt></p>
<p><tt>The line numbers may sometimes be slightly incorrect - I
suggest you try to comment out some code until you really find
the line that's not working. The last code block you posted
shouldn't cause any problems on 2.3.</tt></p>
<p><tt>PS: Maybe there is some lingering "{" or "}" that's confusing
the parser.<br>
</tt></p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 23.08.2017 11:16, Tito Cumpen wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANZPVB7Q7yqMqT8H4oU_sK4980cwuG1KYXaXYtQTw7aftqAfrQ@mail.gmail.com">
<div dir="ltr">Alex,
<div><br>
</div>
<div><br>
</div>
<div>Thanks for the tip but I tried using either double quotes
or single quotes as you suggested :</div>
<div><br>
</div>
<div><br>
</div>
<div>
<p class="gmail-p1"><span class="gmail-s1">if
($ua=~'restcomm'){</span></p>
<p class="gmail-p1"><span class="gmail-s1">setflag(uac_ws);</span></p>
<p class="gmail-p1"><span class="gmail-s1">}</span></p>
<p class="gmail-p1"><span class="gmail-s1"><br>
</span></p>
<p class="gmail-p1"><span class="gmail-s1">but I am still
seeing the error.</span></p>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Aug 23, 2017 at 12:22 AM, Alex
Balashov <span dir="ltr"><<a
href="mailto:abalashov@evaristesys.com" target="_blank"
moz-do-not-send="true">abalashov@evaristesys.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">someUA /
restcomm need to be string literals, e.g. enclosed in single
or<br>
double quotes.<br>
<div>
<div class="h5"><br>
On Wed, Aug 23, 2017 at 12:20:47AM -0700, Tito Cumpen
wrote:<br>
<br>
> Group I am seeing errors in opensips logs with the
latest 2.3<br>
><br>
><br>
> I am attempting to do the following:<br>
><br>
><br>
> if ($ua=~someUA){<br>
><br>
> setflag(4);<br>
><br>
> }<br>
><br>
><br>
> WARNING:core:do_action: error in expression at<br>
> /etc/opensips/opensips.cfg:790<br>
><br>
><br>
> I also see an error in this expression<br>
><br>
><br>
><br>
> if ($ua=~restcomm){<br>
><br>
> setflag(uac_ws);<br>
><br>
> }<br>
><br>
> WARNING:core:do_action: error in expression at<br>
> /etc/opensips/opensips.cfg:602<br>
><br>
> does anyone have any idea what is causing this
error or if this flag is<br>
> even being evaluated ?<br>
<br>
</div>
</div>
> ______________________________<wbr>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org"
moz-do-not-send="true">Users@lists.opensips.org</a><br>
> <a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: <a href="tel:%2B1-706-510-6800"
value="+17065106800" moz-do-not-send="true">+1-706-510-6800</a>
/ <a href="tel:%2B1-800-250-5920" value="+18002505920"
moz-do-not-send="true">+1-800-250-5920</a> (toll-free)<br>
Web: <a href="http://www.evaristesys.com/"
rel="noreferrer" target="_blank"
moz-do-not-send="true">http://www.evaristesys.com/</a>,
<a href="http://www.csrpswitch.com/" rel="noreferrer"
target="_blank" moz-do-not-send="true">http://www.csrpswitch.com/</a><br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org"
moz-do-not-send="true">Users@lists.opensips.org</a><br>
<a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
rel="noreferrer" target="_blank"
moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
</font></span></blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>