[OpenSIPS-Users] Push notification implementation Opensips 3.0
Liviu Chircu
liviu at opensips.org
Tue Jun 22 21:30:49 EST 2021
On 12.06.2021 05:31, HS wrote:
> Jun 11 11:40:47 [15463] $avp(query) = "SELECT token from
> push_tokens where username = '" + $(tU{s.escape.common}) + "' and
> domain = '" + $(td{s.escape.common}) + "' and app
> Jun 11 11:40:47 [15463] ^~~~~~
> Jun 11 11:40:47 [15463] xlog("L_DBG", "[CONFIG] REGISTER
> push SQL query: $avp(query)\n");
> Jun 11 11:40:47 [15463] avp_db_query($avp(query),
> "$avp(old_pn_token)");
> Jun 11 11:40:47 [15463] CRITICAL:core:yyerror: parse error in
> /etc/opensips/opensips.cfg:331:2-7: bad command!)
> Jun 11 11:40:47 [15463] CRITICAL:core:yyerror: parse error in
> /etc/opensips/opensips.cfg:331:8-9: bare word <L_DBG> found, command
> calls need '()'
Hi,
That SELECT query line looks unterminated, which is why the parser
complains with "bare word L_DBG"... perhaps some copy/paste error or
misusage of your text editor?
Best,
--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
OpenSIPS Summit 2021 Distributed | www.opensips.org/events
More information about the Users
mailing list