<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Thanks for the logs. Looked at them and I think you’re using the wrong firebase url for the app type.</div><div class=""><br class=""></div><div class="">For ‘linphone’ based apps it should be <a href="https://fcm.googleapis.com/fcm/send" class="">https://fcm.googleapis.com/fcm/send</a> like in the sample applications.ini</div><div class=""><br class=""></div><div class="">Let me know if this solves your issue.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class=""><br class=""></div><div class="">Tijmen de Mes</div><div class="">—</div><div class="">AG Projects</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">Op 10 jan. 2023, om 18:36 heeft Vasilios Tzanoudakis <<a href="mailto:vtzanoudakis@gmail.com" class="">vtzanoudakis@gmail.com</a>> het volgende geschreven:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div class="">Dear Tijmen,<br class=""></div><div class=""><div class=""><br class=""></div><div class="">Thank you for your quick response on this issue.<br class=""></div><div class=""><br class=""></div><div class="">I am sending you the logs on your private email because of the sensitive data. </div><div class=""><br class=""></div><div class="">Thank you in advance</div><div class=""><br class=""></div><div class="">Best regards</div><font color="#888888" class=""><div class=""><br class=""></div><div class="">Vasilios Tzanoudakis</div></font></div></div><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div class="gmail_quote" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div dir="ltr" class="gmail_attr">On Mon, 9 Jan 2023 at 14:08, Vasilios Tzanoudakis <<a href="mailto:vtzanoudakis@gmail.com" target="_blank" class="">vtzanoudakis@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr" class="">Dear Team,<div class=""><br class=""></div><div class="">Happy new year to you all!!!</div><div class=""><br class=""></div><div class="">I have a question regarding sylkpush-server.</div><div class="">I have manged to run the sylkpush-server successfully <br class=""></div><div class="">--------------------------------------------------------------------------------<br class=""></div><div class="">root@ip-10-100-0-202:~# /usr/bin/sylk-pushserver --debug<br class="">INFO:root:2023-01-09 10:33:04.029253 Starting Sylk Pushserver...<br class="">INFO:to_file:2023-01-09 10:33:04.615029 Loaded 1 applications from /etc/sylk-pushserver/applications.ini:<br class="">INFO:to_file:2023-01-09 10:33:04.615682 Loaded Firebase Linphone app com.voiceland.voiceland<br class="">DEBUG:to_file:2023-01-09 10:33:04.616451 Linphone app com.voiceland.voiceland classes: FirebaseLinphoneHeaders, FirebaseLinphonePayload<br class="">DEBUG:to_file:2023-01-09 10:33:04.616731 Loaded 1 Push notification services: FirebasePNS<br class="">DEBUG:to_file:2023-01-09 10:33:04.616935 Firebase Push Notification Service - FirebasePNS class<br class="">DEBUG:to_file:2023-01-09 10:33:04.617140 Server is now ready to answer requests<br class="">INFO:to_file:2023-01-09 10:33:04.618109 Sylk Pushserver listening on<span class="Apple-converted-space"> </span><a href="http://0.0.0.0:8400/" target="_blank" class="">http://0.0.0.0:8400</a><br class=""></div><div class=""><div class="">--------------------------------------------------------------------------------</div><br class=""></div><div class="">and I am trying to wake up my device using this opensips script which is take from the opensips.cfg example.</div><div class="">-------------------------------------------------------------------------------------------</div><div class="">$var(push_command) = "/usr/bin/sylk-pushclient --url \"<a href="http://127.0.0.1:8400/push%5C" target="_blank" class="">http://127.0.0.1:8400/push\</a>" --platform=\"" + $var(pn_platform) +<span class="Apple-converted-space"> </span><br class="">"\" --appid=\"" + $var(pn_app) + "\" --from_name=\"" + $(fn{s.escape.common}) + "\" --mediatype=\"" + $var(sip_application_type) +<span class="Apple-converted-space"> </span><br class="">"\" --event=\"" + $var(pn_event) + "\" --token=\"" + $var(pn_token) + "\" --deviceid=\"" + $var(sip_instance) +"\" --callid=\"" +<span class="Apple-converted-space"> </span><br class="">$ci + "\" --from=\"" + $var(from) + "\" --to=\"" + $var(to) + "\"";<br class="">           <span class="Apple-converted-space"> </span>xlog("L_NOTICE", "Route:ci:$ci:wakeup_mobile_devices [CONFIG] Push notification command: $var(push_command)\n");<br class=""></div><div class="">launch(exec("$var(push_command)",,, $var(rc)), "PN_RESULT");<br class=""></div><div class=""><div class="">---------------------------------------------------------</div><div class=""><br class=""></div>I am receiving an error from FCM side, could you please help me out because I don't see time_to_live, priority to the sylk-pushclient and also it gives me an error on "to" header also also that cannot find field. In the opensips.cfg example I see pusher.py script which I cannot find anywhere in repo. So could you please clarify what I am doing wrong?<br class=""><div class=""><br class=""></div><div class="">root@ip-10-100-0-202:~# /usr/bin/sylk-pushclient --url "<a href="http://127.0.0.1:8400/push" target="_blank" class="">http://127.0.0.1:8400/push</a>" --platform="firebase" --appid="myappid" --from_name="" --mediatype="audio" --event="incoming_session" --token="cZdVSMtZRZ-qhGDAkX3vCj:token" --deviceid="<urn:uuid:4cf4f194-0215-433b-86e1-8aecc8cde1ce>" --callid="B2B.281.4947472.1673264089" --from="+30210XXXXXXX@domain" --to="+30210XXXXXXX@domain"<br class=""><br class="">error:</div><div class="">========================================================================<br class="">incoming_session push for B2B.281.4947472.1673264089 to<span class="Apple-converted-space"> </span><a href="http://127.0.0.1:8400/push" target="_blank" class="">http://127.0.0.1:8400/push</a><span class="Apple-converted-space"> </span>failed: 400: {"code":400,"description":"push notification response","data":{"body":{"_content":{"error":{"code":400,"message":"Invalid JSON payload received. Unknown name \"to\": Cannot find field.\nInvalid JSON payload received. Unknown name \"time_to_live\": Cannot find field.\nInvalid JSON payload received. Unknown name \"priority\": Cannot find field.\nInvalid JSON payload received. Unknown name \"data\": Cannot find field.","status":"INVALID_ARGUMENT","details":[{"@type":"<a href="http://type.googleapis.com/google.rpc.BadRequest" target="_blank" class="">type.googleapis.com/google.rpc.BadRequest</a>","fieldViolations":[{"description":"Invalid JSON payload received. Unknown name \"to\": Cannot find field."},{"description":"Invalid JSON payload received. Unknown name \"time_to_live\": Cannot find field."},{"description":"Invalid JSON payload received. Unknown name \"priority\": Cannot find field."},{"description":"Invalid JSON payload received. Unknown name \"data\": Cannot find field."}]}]}},"_content_consumed":true,"status_code":400,"url":"<a href="https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send" target="_blank" class="">https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send</a>","encoding":"UTF-8","reason":"Bad Request"},"code":400,"reason":"Bad Request","url":"<a href="https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send" target="_blank" class="">https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send</a>","call_id":"B2B.281.4947472.1673264089","token":"cZdVSMtZRZ-qhGDAkX3vCj:token"}}<br class=""></div><div class="">========================================================================<br class=""></div><div class="">thank you very much in advance for your support.</div><div class=""><br class=""></div><div class="">Kind Regards</div><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""></div>Vasilios Tzanoudakis</div></div></div></div></div></div></blockquote></div><br clear="all" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">--<span class="Apple-converted-space"> </span></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""></div>Βασίλης Τζανουδάκης</div></div></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">SIPBeyondVoIP mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="mailto:SIPBeyondVoIP@lists.ag-projects.com" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">SIPBeyondVoIP@lists.ag-projects.com</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip</a></div></blockquote></div><br class=""></div></body></html>