flexisip-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Flexisip-developers] not sending firebase push notification


From: Sylvain Berfini
Subject: Re: [Flexisip-developers] not sending firebase push notification
Date: Thu, 25 Jul 2019 08:02:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi,

If you don't cate for the user-agent filter remove it as it is wrong.

From your logs, here is the user-agent of your device:

LinphoneAndroid/4.1.1-debug (FRD-L04) LinphoneSDK/4.2 (tags/4.2^0) (belle-sip/1.6.3)
Cheers,

Le 24/07/2019 à 15:54, Brian J. Murrell a écrit :
I have flexisip set up a proxy for my Asterisk server and generally
speaking calls seem to work fine.  I can call my linphone mobile phone
from an extension and linphone rings and answers and audio is heard in
both directions.

But linphone only rings if it is "awake".  If the phone goes to sleep
linphone won't ring.

I have the push module configured in my flexisip.conf as follows:

[module::PushNotification]
enabled=true
filter=user-agent == 'LinphoneAndroid/4.1.1-debug'
timeout=1
max-queue-size=100
time-to-live=2592000
apple=false
apple-certificate-dir=/etc/flexisip/apn
google=false
google-projects-api-keys=
firebase=true
firebase-projects-api-keys=[redacted]:[redacted]
windowsphone=false
windowsphone-package-sid=
windowsphone-application-secret=
no-badge=false
external-push-uri=
external-push-method=GET

With my project app id and key.  Those values are correct as I can see
push notifications coming to the phone using flexisip_pusher.

FWIW, adding the filter=user-agent was just a stab in the dark.  I
don't really care to filter which devices get pushes as the only thing
that will be registering to flexisip will be mobile phones which will
all want push.

A log of a call being made to a linphone client, through flexisip from
Asterisk can be found at:

http://brian.interlinx.bc.ca/flexisip-no-push.log

I don't see anything in there indicating that flexisip is sending a
push.

Cheers,
b.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]