[OpenSIPS-Users] do_action error in logs

Liviu Chircu liviu at opensips.org
Wed Aug 23 06:58:14 EDT 2017


Hi Tito,

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.

PS: Maybe there is some lingering "{" or "}" that's confusing the parser.

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 23.08.2017 11:16, Tito Cumpen wrote:
> Alex,
>
>
> Thanks for the tip but I tried using either double quotes or single 
> quotes as you suggested :
>
>
> if ($ua=~'restcomm'){
>
> setflag(uac_ws);
>
> }
>
>
> but I am still seeing the error.
>
>
> On Wed, Aug 23, 2017 at 12:22 AM, Alex Balashov 
> <abalashov at evaristesys.com <mailto:abalashov at evaristesys.com>> wrote:
>
>     someUA / restcomm need to be string literals, e.g. enclosed in
>     single or
>     double quotes.
>
>     On Wed, Aug 23, 2017 at 12:20:47AM -0700, Tito Cumpen wrote:
>
>     > Group I am seeing errors in opensips logs with the latest 2.3
>     >
>     >
>     > I am attempting to do the following:
>     >
>     >
>     > if ($ua=~someUA){
>     >
>     > setflag(4);
>     >
>     > }
>     >
>     >
>     > WARNING:core:do_action: error in expression at
>     > /etc/opensips/opensips.cfg:790
>     >
>     >
>     > I also see an error in this expression
>     >
>     >
>     >
>     > if ($ua=~restcomm){
>     >
>     > setflag(uac_ws);
>     >
>     > }
>     >
>     >  WARNING:core:do_action: error in expression at
>     > /etc/opensips/opensips.cfg:602
>     >
>     > does anyone have any idea what is causing this error or if this
>     flag is
>     > even being evaluated ?
>
>     > _______________________________________________
>     > Users mailing list
>     > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
>
>     --
>     Alex Balashov | Principal | Evariste Systems LLC
>
>     Tel: +1-706-510-6800 <tel:%2B1-706-510-6800> / +1-800-250-5920
>     <tel:%2B1-800-250-5920> (toll-free)
>     Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170823/69a67bf5/attachment.html>


More information about the Users mailing list