<div dir="ltr"><div>Dear Tijmen,<br></div><div><div><br></div><div>Thank you for your quick response on this issue.<br></div><div><br></div><div>I am sending you the logs on your private email because of the sensitive data. </div><div><br></div><div>Thank you in advance</div><div><br></div><div>Best regards</div><font color="#888888"><div><br></div><div>Vasilios Tzanoudakis</div></font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 9 Jan 2023 at 14:08, Vasilios Tzanoudakis <<a href="mailto:vtzanoudakis@gmail.com" target="_blank">vtzanoudakis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear Team,<div><br></div><div>Happy new year to you all!!!</div><div><br></div><div>I have a question regarding sylkpush-server.</div><div>I have manged to run the sylkpush-server successfully <br></div><div>--------------------------------------------------------------------------------<br></div><div>root@ip-10-100-0-202:~# /usr/bin/sylk-pushserver --debug<br>INFO:root:2023-01-09 10:33:04.029253 Starting Sylk Pushserver...<br>INFO:to_file:2023-01-09 10:33:04.615029 Loaded 1 applications from /etc/sylk-pushserver/applications.ini:<br>INFO:to_file:2023-01-09 10:33:04.615682 Loaded Firebase Linphone app com.voiceland.voiceland<br>DEBUG:to_file:2023-01-09 10:33:04.616451 Linphone app com.voiceland.voiceland classes: FirebaseLinphoneHeaders, FirebaseLinphonePayload<br>DEBUG:to_file:2023-01-09 10:33:04.616731 Loaded 1 Push notification services: FirebasePNS<br>DEBUG:to_file:2023-01-09 10:33:04.616935 Firebase Push Notification Service - FirebasePNS class<br>DEBUG:to_file:2023-01-09 10:33:04.617140 Server is now ready to answer requests<br>INFO:to_file:2023-01-09 10:33:04.618109 Sylk Pushserver listening on <a href="http://0.0.0.0:8400" target="_blank">http://0.0.0.0:8400</a><br></div><div><div>--------------------------------------------------------------------------------</div><br></div><div>and I am trying to wake up my device using this opensips script which is take from the opensips.cfg example.</div><div>-------------------------------------------------------------------------------------------</div><div>$var(push_command) = "/usr/bin/sylk-pushclient --url \"<a href="http://127.0.0.1:8400/push%5C" target="_blank">http://127.0.0.1:8400/push\</a>" --platform=\"" + $var(pn_platform) + <br> "\" --appid=\"" + $var(pn_app) + "\" --from_name=\"" + $(fn{s.escape.common}) + "\" --mediatype=\"" + $var(sip_application_type) + <br> "\" --event=\"" + $var(pn_event) + "\" --token=\"" + $var(pn_token) + "\" --deviceid=\"" + $var(sip_instance) +"\" --callid=\"" + <br> $ci + "\" --from=\"" + $var(from) + "\" --to=\"" + $var(to) + "\"";<br> xlog("L_NOTICE", "Route:ci:$ci:wakeup_mobile_devices [CONFIG] Push notification command: $var(push_command)\n");<br></div><div>launch(exec("$var(push_command)",,, $var(rc)), "PN_RESULT");<br></div><div><div>---------------------------------------------------------</div><div><br></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><div><br></div><div>root@ip-10-100-0-202:~# /usr/bin/sylk-pushclient --url "<a href="http://127.0.0.1:8400/push" target="_blank">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><br>error:</div><div>========================================================================<br>incoming_session push for B2B.281.4947472.1673264089 to <a href="http://127.0.0.1:8400/push" target="_blank">http://127.0.0.1:8400/push</a> 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">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">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">https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send</a>","call_id":"B2B.281.4947472.1673264089","token":"cZdVSMtZRZ-qhGDAkX3vCj:token"}}<br></div><div>========================================================================<br></div><div>thank you very much in advance for your support.</div><div><br></div><div>Kind Regards</div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div></div>Vasilios Tzanoudakis</div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div></div>Βασίλης Τζανουδάκης</div></div></div></div>