Hello all
Just came across this post:

https://opensips.org/pipermail/users/2020-June/043294.html

I am trying to implement this on Opensips 3.0/Amazon EC2, just wondering if
anyone has done this already? Clearly I am not a dev and getting the
following errors:

  Jun 11 11:40:47 [15463] Traceback (last included file at the bottom):
Jun 11 11:40:47 [15463]  0. /etc/opensips/opensips.cfg
Jun 11 11:40:47 [15463] CRITICAL:core:yyerror: parse error in
/etc/opensips/opensips.cfg:331:2-7: syntax error
Jun 11 11:40:47 [15463]         # save data required later for push
notifications
Jun 11 11:40:47 [15463]         if ($avp(pn_type) and $avp(pn_token) and
$avp(pn_app)) {
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 '()'
Jun 11 11:40:47 [15463] CRITICAL:core:yyerror: parse error in
/etc/opensips/opensips.cfg:331:8-9: bad command: missing ';'?

Thanks.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to