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

Karsten Wemheuer kwe at temp.temp
Thu Aug 31 07:38:00 UTC 2023


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




More information about the Users mailing list