[OpenSIPS-Users] Push notification implementation Opensips 3.0

HS bullehs at gmail.com
Sat Jun 12 02:31:20 EST 2021


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210612/b688166d/attachment.html>


More information about the Users mailing list