Morning all,
I'm trying to get Flexisip set up in from of my Asterisk install
to function as a push proxy.
I've got Flexisip installed, running on port 6060 and accepting
registrations. There's no call sound yet, but that's the next
rabbit hole I'm going to dive down.
My issue at the moment is getting push notifications out to an
Android device running the Linphone app. I get a MismatchSenderId
response from flexisip_pusher.
I believe I've got the right combination of --appid and --key as
I've moved on from the 401 Unauthorized responses and the --pntok
was taken directly from a tcpdump capture of the registration.
From an afternoon of Googling, most of the info I've found has
been to do with people developing their own apps using
liblinphone. In those cases this error was caused by the app
config not matching the push notification config. The app config
being something I don't have control over.
Is the Server Key a push notification is sent from tied to the
app that will receive it?
Do I therefore need to publish my own clone of Linphone in order
to get this to work?
Or have I missed something else along the way?
My flexisip_pusher command looks like this:
root@voip:~/flexisip/flexisip/OUTPUT# ./bin/flexisip_pusher
--pntype firebase --appid 101<redacted> --key
AAAA<redacted> --pntok coBWluzSFlM<redacted> --debug
Writing logs in :
/var/opt/belledonne-communications/log/flexisip/flexisip-pusher.log
2019-08-26 11:08:36:359 flexisip-debug-Adding firebase push
notification client [1018004454291]
2019-08-26 11:08:36:360 flexisip-debug-Push notification https
post body is {"to":"coBWluzSFlM<redacted>", "time_to_live":
2419200, "priority":"high", "data":{"uuid":"",
"call-id":"fb14b5fe-a9ab-1231-9485-7d582244ba3d",
"sip-from":"+33681741738", "loc-key":"",
"loc-args":"+33681741738", "send-time":"2019-08-26 10:08:36"}}
2019-08-26 11:08:36:360 flexisip-debug-PNR 0x55deb1dab300 https
post header is POST /fcm/send HTTP/1.1
Host:fcm.googleapis.com
Content-Type:application/json
Authorization:key=AAAA<redacted>
Content-Length:378
2019-08-26 11:08:36:360 flexisip-debug-PushNotificationClient
firebase PNR 0x55deb1dab300 running, queue_size=0
2019-08-26 11:08:36:361 flexisip-debug-PushNotificationClient
firebase next, queue_size=1
2019-08-26 11:08:36:849 flexisip-debug-PushNotificationClient
firebase PNR 0x55deb1dab300 sent 653/653 data
2019-08-26 11:08:36:849 flexisip-debug-PushNotificationClient
firebase PNR 0x55deb1dab300 waiting for server response
2019-08-26 11:08:36:875 flexisip-debug-PushNotificationClient
firebase PNR 0x55deb1dab300 read 531 data:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Date: Mon, 26 Aug 2019 10:08:36 GMT
Expires: Mon, 26 Aug 2019 10:08:36 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="46,43,39"
Accept-Ranges: none
Vary: Accept-Encoding
Transfer-Encoding: chunked
77
{"multicast_id":8560151445177610161,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}
1 push notification(s) sent, 1 successfully and 0 failed.
job is done, thanks for using ./bin/flexisip_pusher. Bye!
2019-08-26 11:08:37:364 flexisip-message-Unregistering module info
[Transcoder]...
2019-08-26 11:08:37:364 flexisip-message-Unregistering module info
[StatisticsCollector]...
2019-08-26 11:08:37:364 flexisip-message-Unregistering module info
[SanityChecker]...
2019-08-26 11:08:37:364 flexisip-message-Unregistering module info
[Router]...
2019-08-26 11:08:37:364 flexisip-message-Unregistering module info
[Registrar]...
2019-08-26 11:08:37:365 flexisip-message-Unregistering module info
[Presence]...
2019-08-26 11:08:37:365 flexisip-message-Unregistering module info
[Redirect]...
2019-08-26 11:08:37:365 flexisip-message-Unregistering module info
[PushNotification]...
2019-08-26 11:08:37:365 flexisip-message-Unregistering module info
[NatHelper]...
2019-08-26 11:08:37:365 flexisip-message-Unregistering module info
[MediaRelay]...
2019-08-26 11:08:37:365 flexisip-message-Unregistering module info
[LoadBalancer]...
2019-08-26 11:08:37:365 flexisip-message-Unregistering module info
[GatewayAdapter]...
2019-08-26 11:08:37:365 flexisip-message-Unregistering module info
[GarbageIn]...
2019-08-26 11:08:37:365 flexisip-message-Unregistering module info
[Forward]...
2019-08-26 11:08:37:366 flexisip-message-Unregistering module info
[DoSProtection]...
2019-08-26 11:08:37:366 flexisip-message-Unregistering module info
[ContactRouteInserter]...
2019-08-26 11:08:37:366 flexisip-message-Unregistering module info
[Authentication]...
--
Kind regards,
|
Gary
Steinert
Ascend
Design
T:
01743 387378
|
|