[OpenSIPS-Users] do_action error in logs

Tito Cumpen tito at xsvoce.com
Wed Aug 23 04:16:07 EDT 2017


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>
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
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> 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/bbc8ff96/attachment-0001.html>


More information about the Users mailing list