<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello all</div><div>Just came across this post:</div><div><br></div><div><a href="https://opensips.org/pipermail/users/2020-June/043294.html" target="_blank">https://opensips.org/pipermail/users/2020-June/043294.html</a><br></div><div><br></div><div>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:</div><div><br></div><div> Jun 11 11:40:47 [15463] Traceback (last included file at the bottom):<br>Jun 11 11:40:47 [15463] 0. /etc/opensips/opensips.cfg<br>Jun 11 11:40:47 [15463] CRITICAL:core:yyerror: parse error in /etc/opensips/opensips.cfg:331:2-7: syntax error<br>Jun 11 11:40:47 [15463] # save data required later for push notifications<br>Jun 11 11:40:47 [15463] if ($avp(pn_type) and $avp(pn_token) and $avp(pn_app)) {<br>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<br>Jun 11 11:40:47 [15463] ^~~~~~<br>Jun 11 11:40:47 [15463] xlog("L_DBG", "[CONFIG] REGISTER push SQL query: $avp(query)\n");<br>Jun 11 11:40:47 [15463] avp_db_query($avp(query), "$avp(old_pn_token)");<br>Jun 11 11:40:47 [15463] CRITICAL:core:yyerror: parse error in /etc/opensips/opensips.cfg:331:2-7: bad command!)<br>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 '()'<br>Jun 11 11:40:47 [15463] CRITICAL:core:yyerror: parse error in /etc/opensips/opensips.cfg:331:8-9: bad command: missing ';'?<div class="gmail-yj6qo"></div><div class="gmail-adL"><br></div></div><div>Thanks.<br></div></div>
</div></div>