Open brianjmurrell opened 5 years ago
OMG,How did you managed to send push notification ??
I have some hackery around Asterisk that sends pushes. It consists of an AGI script and some asterisk configuration (i.e. AMI at least) that I probably don't remember the entirety of.
At this point in time, it's left to the reader to figure out how to make it all work. PRs with some instructions if you figure it out are welcome. Maybe one day I will get some time to document the entire set up.
Do you have your own build of Linphone?Without this, you will not be able to push notifications. 20.07.2023, 19:01, "Brian J. Murrell" @.>: I have some hackery around Asterisk that sends pushes. It consists of an AGI script and some asterisk configuration (i.e. AMI at least) that I probably don't remember the entirety of.At this point in time, it's left to the reader to figure out how to make it all work. PRs with some instructions if you figure it out are welcome. Maybe one day I will get some time to document the entire set up.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>
@SafeSoft-tlt Yes, of course. As you say, you need to build your own Linphone to bake in your own FCS account number.
I take advantage of having my own build of Linphone to do other things also such as enable the Google Cloud backup feature for the app as well as a number of other small hacks.
This is what I found in my archive. It's hard for me to remember what I was doing there. There is even a source on GitHub. Look for my name and there will be a link. The code is old.Message ID: @.***>
[global]debug=truelog-level=debugsyslog-level=debuguser-errors-logs=truedump-corefiles=trueauto-respawn=truealiases=localhost
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
I've got a flexisip installation here proxying an Asterisk instance with a Linphone feature/release-4.1 client enabled for push.
If I make a call to the linphone client after it registers to the proxy and is still running on the phone everything works fine.
However if I terminate the linphone client (recall, enabled for push, so this should work fine), when flexisip receives the INVITE from Asterisk to forward to linphone, it sends a push notification to the firebase server and then immediately tries to send an INVITE to linphone. That INVITE is of course refused because linphone has not had enough time to start and REGISTER in response to the push, but flexisip then immediately responds to asterisk with a 503 response.
Shouldn't there be some waiting and retrying going on here to allow linphone to be woken and REGISTER rather than immediately sending a 503 to the PBX?
Here's the flexisip log.