[OpenSIPS-Users] bad arguments for command <setflag>

Prathibha B prathibhab.tvm at gmail.com
Thu Aug 31 07:56:18 UTC 2023


using quotes around parameter resolved the issue.

On Thu, 31 Aug 2023 at 13:25, Karsten Wemheuer <kwem at gmx.de> wrote:

> Hi,
>
> Am Donnerstag, dem 31.08.2023 um 12:48 +0530 schrieb Prathibha B:
> > Aug 31 06:58:48 [346547] CRITICAL:Traceback (last included file at
> > the bottom):
> > Aug 31 06:58:48 [346547] CRITICAL: 0. //etc/opensips/opensips.cfg
> > Aug 31 06:58:48 [346547] CRITICAL:core:yyerror: parse error in
> > //etc/opensips/opensips.cfg:184:11-17: syntax error
> > Aug 31 06:58:48 [346547] CRITICAL:      # check if the clients are
> > using WebSockets or WebSocketSecure
> > Aug 31 06:58:48 [346547] CRITICAL:      if ($socket_in(proto) == "WS"
> > > > $socket_in(proto) == "WSS")
> > Aug 31 06:58:48 [346547] CRITICAL:              setflag(SRC_WS);
> > Aug 31 06:58:48 [346547] CRITICAL:              ^~~~~~~
> > Aug 31 06:58:48 [346547] CRITICAL:
> > Aug 31 06:58:48 [346547] CRITICAL:      # consider the client is
> > behind NAT - always fix the contact
> > Aug 31 06:58:48 [346547] CRITICAL:core:yyerror: parse error in
> > //etc/opensips/opensips.cfg:184:17-18: bad arguments for command
> > <setflag>
>
> maybe use quotes around parameter like
> setflag("SRC_WS");
>
> HTH,
> Best regards Karsten
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Regards,
B.Prathibha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230831/a6d2c9fc/attachment.html>


More information about the Users mailing list