<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="">I looks like your app id send here is wrong:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""> Push notification command: /usr/local/bin/sylk-pushclient --url "<a href="http://127.0.0.1:8400/push" class="">http://127.0.0.1:8400/push</a>" --platform="firebase" --appid="linphone" --from_name="" --mediatype="audio" --event="incoming_session" --token="fwz3tSEwSgKNxkaAs4FMPD:xxxxxxxxxxxxxxxxxxx" --deviceid="<urn:uuid:3c57301d-888c-000a-97d5-03ec12a78ada>" --callid="B2B.281.1406675.1667755015" --from="+<a href="mailto:3021070xxxxx@voiceland.dev" class="">3021070xxxxx@voiceland.dev</a>" --to="+<a href="mailto:3021070xxxxx@voiceland.dev" class="">3021070xxxxx@voiceland.dev</a>”</div></div></blockquote><div class=""><br class=""></div><div class=""><br class=""></div>It needs to be com.voiceland.voiceland, as it needs to match the one in the push server.</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 6 nov. 2022, om 18:27 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" class="">Dear AG-Project Team,<div class=""><br class=""></div><div class="">I am new to the push notification world and wanted to try out your sylkpushserver</div><div class="">to send notifications from OpenSIPS to linphone app and then to my custom mobile app which is using exact same contact params like the linphone.</div><div class=""><br class=""></div><div class="">So I downloaded latest code from <a href="https://github.com/AGProjects/sylk-pushserver" class="">https://github.com/AGProjects/sylk-pushserver</a> and installed manually using:</div><div class="">------------------------------------------------------------------------------------------------------------------------------------------------------</div><div class="">pip3 install -r requirements.txt<br class="">python3 setup.py install<br class=""></div><div class=""><br class=""></div><div class="">Firstly I wanted to try with linphone just to be sure that it's not any fault with my custom mobile app but I think the problem is that I have misconfigured sylkpushserver :-(</div><div class=""><br class=""></div><div class="">so here is my config:</div><div class=""><br class=""></div><div class="">applications.ini</div><div class="">----------------------------------------------<br class="">[voiceland-dev] ;this is firebase project id<br class="">app_id = com.voiceland.voiceland ;yes this is correct<br class="">app_type = linphone <br class="">app_platform = firebase <br class="">firebase_authorization_file = key.json<br class="">firebase_push_url = <a href="https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send" class="">https://fcm.googleapis.com/v1/projects/voiceland-dev/messages:send</a><br class=""></div><div class=""><br class=""></div><div class="">server is started like this:</div><div class="">-----------------------------</div><div class="">root@ip-10-100-0-114:/etc/sylk-pushserver# /usr/local/bin/sylk-pushserver --no-fork --debug --config_dir /etc/sylk-pushserver/<br class="">2022-11-06 15:20:53 INFO     Starting Sylk Pushserver 2.0.0<br class="">2022-11-06 15:20:53 INFO     Reading configuration from /etc/sylk-pushserver/<br class="">2022-11-06 15:20:53 INFO     Reading: /etc/sylk-pushserver//general.ini<br class="">2022-11-06 15:20:53 INFO     Reading: /etc/sylk-pushserver//applications.ini<br class="">2022-11-06 15:20:53 INFO     Reading storage configuration from /etc/sylk-pushserver/general.ini<br class="">2022-11-06 15:20:53 INFO     Using pickle file for token storage<br class="">2022-11-06 15:20:53 INFO     Loaded 1 applications from /etc/sylk-pushserver//applications.ini:<br class="">2022-11-06 15:20:53 INFO     Loaded Firebase Linphone app com.voiceland.voiceland<br class="">2022-11-06 15:20:53 DEBUG    Linphone app com.voiceland.voiceland classes: FirebaseLinphoneHeaders, FirebaseLinphonePayload<br class="">2022-11-06 15:20:53 DEBUG    Loaded 1 Push notification services: FirebasePNS<br class="">2022-11-06 15:20:53 DEBUG    Firebase Push Notification Service - FirebasePNS class<br class="">2022-11-06 15:20:53 DEBUG    Server is now ready to answer requests<br class="">2022-11-06 15:20:53 INFO     Sylk Pushserver listening on <a href="http://0.0.0.0:8400/" class="">http://0.0.0.0:8400</a><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">here is sql data from push_tokens table:</div><div class="">------------------------------------------------------</div><div class="">>select * from push_tokens;<br class="">+----+---------------+---------------+----------+----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+---------------------+--------+<br class="">| id | username      | domain        | platform | app      | token                                                                                                                                                               | sip_instance                                    | user_agent                                                                                                            | last_modified       | silent |<br class="">+----+---------------+---------------+----------+----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+---------------------+--------+<br class="">|  1 | +3021070xxxxx | <a href="http://xxxxx.dev/" class="">xxxxx.dev</a> | firebase | linphone | fwz3tSEwSgKNxkaAs4FMPD:xxxxxxxxxxxxxxxxxxx | <urn:uuid:3c57301d-888c-000a-97d5-03ec12a78ada> | LinphoneAndroid/4.6.14 (Το S21 Ultra Ï„ου/της Vasilios) LinphoneSDK/5.1.62 (tags/5.1.62^0)                     | 2022-11-05 16:31:47 | 1      |<br class="">|  2 | +3021070xxxxx | <a href="http://xxxxx.dev/" class="">xxxxx.dev</a> | firebase | linphone | cZdVSMtZRZ-fwz3tSEwSgKNxkaAs4FMPD:xxxxxxxxxxxxxxxxxxx | <urn:uuid:efa8bb0e-70a1-457d-ae63-997837951838> | Dart SIP Client v1.0.0                                                                                                | 2022-11-05 16:38:37 | 0      |<br class="">+----+---------------+---------------+----------+----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------+---------------------+--------+<br class=""></div><div class=""><br class=""></div><div class="">OpenSIPS logs when there is an incoming call for the linphone app:<br class=""></div><div class="">---------------------------------------------------------------------------------------------</div><div class=""> Route:ci:B2B.281.1406675.1667755015:wakeup_mobile_devices [CONFIG] SELECT token, app, platform, sip_instance from push_tokens WHERE username='+302107001394' AND domain='<a href="http://voiceland.dev/" class="">voiceland.dev</a>'<br class=""> Route:ci:B2B.281.1406675.1667755015:wakeup_mobile_devices [CONFIG] Push notification command: /usr/local/bin/sylk-pushclient --url "<a href="http://127.0.0.1:8400/push" class="">http://127.0.0.1:8400/push</a>" --platform="firebase" --appid="linphone" --from_name="" --mediatype="audio" --event="incoming_session" --token="fwz3tSEwSgKNxkaAs4FMPD:xxxxxxxxxxxxxxxxxxx" --deviceid="<urn:uuid:3c57301d-888c-000a-97d5-03ec12a78ada>" --callid="B2B.281.1406675.1667755015" --from="+<a href="mailto:3021070xxxxx@voiceland.dev" class="">3021070xxxxx@voiceland.dev</a>" --to="+<a href="mailto:3021070xxxxx@voiceland.dev" class="">3021070xxxxx@voiceland.dev</a>"<br class=""></div><div class=""><br class=""></div><div class=""><div class="">and now the problem I am facing is this error here from sylkpushserver:</div><div class=""><div class="">-----------------------------------------------------------------------------------------------</div></div><div class="">2022-11-06 17:10:10 INFO     incoming Firebase request incoming_session - linphone-B2B.281.3234209.1667673375:  from <a href="http://127.0.0.1/" class="">127.0.0.1</a>: {'platform': 'firebase', 'app-id': 'linphone', 'token': 'fwz3tSEwSgKNxkaAs4FMPD:xxxxxxxxxxxxx', 'media-type': 'audio', 'event': 'incoming_session', 'from': '+<a href="mailto:3021070xxxxx@xxxxx.dev" class="">3021070xxxxx@xxxxx.dev</a>', 'from-display-name': '+<a href="mailto:3021070xxxxx@xxxxx.dev" class="">3021070xxxxx@xxxxx.dev</a>', 'to': '+<a href="mailto:3021070xxxxx@xxxxx.dev" class="">3021070xxxxx@xxxxx.dev</a>', 'device-id': '<urn:uuid:3c57301d-888c-000a-97d5-03ec12a78ada>', 'call-id': 'B2B.281.3234209.1667673375', 'silent': '1'}</div><div class=""><b class="">2022-11-06 17:10:10 ERROR    incoming Firebase from 127.0.0.1 response for incoming_session - linphone-B2B.281.3234209.1667673375, push rejected: Firebase linphone app is not configured</b></div></div><div class=""><br class=""></div><div class="">Could you please help me out with what I am missing? Do I have to configure something more in the applications/ directory, I think for linphone this should work out of the box right?</div><div class="">Error says linphone is not configured, so how to configure the linphone app? is this a firebase error or a sylkpushserver error?</div><div class=""><br class=""></div><div class="">Thank you in advance for your help and also thank you for sharing this great project to the community.</div><div class=""><br class=""></div><div class="">Best Regards</div><div class=""><br class=""></div><div class="">Vasilios Tzanoudakis</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><br class=""></div><div class=""><br class=""></div></div>
_______________________________________________<br class="">SIPBeyondVoIP mailing list<br class=""><a href="mailto:SIPBeyondVoIP@lists.ag-projects.com" class="">SIPBeyondVoIP@lists.ag-projects.com</a><br class="">https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip<br class=""></div></blockquote></div><br class=""></div></body></html>