linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] flexisip pushnotifications not working


From: KGarifullin
Subject: Re: [Linphone-developers] flexisip pushnotifications not working
Date: Thu, 3 Mar 2016 11:10:29 +0200


Hi !

Yes , certificate valid . Pusher (which is in the installation flexisip) sends notifications - all its ok.


[module::PushNotification]



# Indicate whether the module is activated.
#  Default value: false
enabled=true

# A request/response enters module if the boolean filter evaluates
# to true. Ex: from.uri.domain contains 'sip.linphone.org', from.uri.domain
# in 'a.org b.org c.org', (to.uri.domain in 'a.org b.org c.org')
# && (user-agent == 'Linphone v2')
#  Default value:
filter=

# Number of second to wait before sending a push notification to
# device(if <=0 then disabled)
#  Default value: 5
timeout=3

# Maximum number of notifications queued for each client
#  Default value: 10
max-queue-size=10

# Enable push notification for apple devices
#  Default value: true
apple=true

# Path to directory where to find Apple Push Notification service
# certificates. They should bear the appid of the application, suffixed
# by the release mode and .pem extension. For example: org.linphone.dev.pem
# org.linphone.prod.pem com.somephone.dev.pem etc... The files should
# be .pem format, and made of certificate followed by private key.
#  Default value: /etc/flexisip/apn
apple-certificate-dir=/etc/flexisip/apn

# Enable push notification for android devices
#  Default value: true
google=true

# List of couples projectId:ApiKey for each android project that
# supports push notifications
#  Default value:
google-projects-api-keys=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

# Enable push notification for windows phone 8 devices
#  Default value: true
windowsphone=true

# Set the badge value to 0 for apple push
#  Default value: false
no-badge=false

# Instead of having Flexisip sending the push notification directly
# to the Google/Apple/Microsoft push servers, send an http request
# to an http server with all required information encoded in URL,
# to which the actual sending of the push notification is delegated.
# The following arguments can be substitued in the http request
# uri, with the following values:
#  - $type : apple, google, wp
#  - $event : call, message
#  - $from-name : the display name in the from header
#  - $from-uri : the sip uri of the from header
#  - $from-tag : the tag of the from header
#  - $call-id : the call-id of the INVITE or MESSAGE request
#  - $to-uri : the sip uri of the to header
#  - $api-key : the api key to use (google only)
#  - $msgid : the message id to put in the notification
#  - $sound : the sound file to play with the notification
#
 The content of the text message is put in the body of the http
# request as text/plain, if any.
#  Example: http://192.168.0.2/$type/$event?from-uri=$from-uri&tag=$from-tag&callid=$callid&to=$to-uri
#  Default value:
external-push-uri=http://xx.xx.xx.xx/$type/$event?from-uri=$from-uri&tag=$from-tag&callid=$callid&to=$to-uri

# Method for reaching external-push-uri, typically GET or POST
#  Default value: GET
external-push-method=GET




if I'm not mistaken error - "Connection Refused" - is  BOOST error . Also i try different installation of flexisip( even recompile source code flexisip in ubuntu) and get the same error

what is "generic" or "not generic " push notification and how do I choose them?


Konstantin Garifullin



Guillaume <address@hidden>
Sent by: address@hidden

03.03.2016 10:31

Please respond to
address@hidden

To
address@hidden
cc
Subject
Re: [Linphone-developers] flexisip pushnotifications not working





Hi,

Are you sure that the certificate for the push is valid? Did you try connecting to the server using the openssl command line?

Also, what is your flexisip.conf push notification setup ? (you can redact sensible information)
It looks like you are using a generic push notification, which might not be what you actually want..

Guillaume Bienkowski
address@hidden



Le 2 mars 2016 à 18:00, address@hidden a écrit :


Hi


flexisip +linphone-iphone and linphone-android client   - all working fine, except pushnotification....


pusher working - all ok , push messege sending


new Contact: is emitted in REGISTERs  - ok


but pushnotification in flexisip still not working...



Mar 02 17:29:06 sip.xxxxxxxxx.xx  flexisip[17177]: PushNotificationClient generic next, queue_size=1

Mar 02 17:29:06  sip.xxxxxxxxx.xx flexisip[17177]: PushNotificationClient generic PNR 0x2188708 resolved

Mar 02 17:29:06  sip.xxxxxxxxx.xx flexisip[17177]: PushNotificationClient generic PNR 0x2188708 connect failed: Connection refused

Mar 02 17:29:06  sip.xxxxxxxxx.xx flexisip[17177]: PushNotificationClient generic PNR 0x2188708 disconnected

Mar 02 17:29:06  sip.xxxxxxxxx.xx flexisip[17177]: PNR 0x2188708: error Error

Mar 02 17:29:06  sip.xxxxxxxxx.xx flexisip[17177]: Notifying call context...

Mar 02 17:29:06  sip.xxxxxxxxx.xx flexisip[17177]: Early fail due to all push requests having failed

Mar 02 17:29:06  sip.xxxxxxxxx.xx flexisip[17177]: PushNotificationClient generic next, queue_size=0




Please help ....
_______________________________________________
Linphone-developers mailing list

address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

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