Brekeke Forum Index » Brekeke PBX Forum

Post new topic   Reply to topic
The Push Notification on PBX are not works.
Author Message
punthape
Brekeke Newbie


Joined: 29 Mar 2018
Posts: 2

PostPosted: Wed Oct 24, 2018 12:03 am    Post subject: The Push Notification on PBX are not works. Reply with quote

1. Brekeke Product Name and Version:
Brekeke PBX, Version 3.8.6.4, Pro
WebRTC, Push Notification

2. Java version:
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

3. OS type and the version:
Red Hat Enterprise Linux Server release 6.6 (Santiago)
2.6.32-504.el6.x86_64

4. UA (phone), gateway or other hardware/software involved:
-

5. Your problem:
I got a problem with using push notification feature on Brekeke PBX. I config a project following a guide (Quickstart Guide PushNotification) to use a push notification. The feature is working fine with sending a test message or sample dial plan to notify incoming call but about 15 minutes later. I can't send a test message and a dial plan no longer works. I have to restart a Brekeke to make it works again and then after that the problem is the same. I also tested a push notification using another push notification app (Pusher) and my application works fine to show a notification. Could you help me to solve this problem or any suggestions would be appreciated.

Thank you
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Wed Oct 24, 2018 10:31 am    Post subject: Reply with quote

Which Push Notification / SIP client are you using with Brekeke PBX?
Are you using an evaluation edition of Brekeke PBX?
Can you see any calls at [Active Sessions] page while you are having the issue?
Back to top
View user's profile
SarunyuP
Brekeke Member


Joined: 24 Oct 2018
Posts: 19
Location: Thailand

PostPosted: Wed Oct 24, 2018 9:19 pm    Post subject: Reply with quote

- We use our application base on linphone library.
- We purchase a Brekeke PBX v3 with Push Notification Option.
- We don't see any calls because we can't even send a push notification sample message to application.
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Wed Oct 24, 2018 9:46 pm    Post subject: Reply with quote

Any logs at [Logs]->[Push Notification logs]?

Also enable detailed logs at [Diagnostics]->[Debug Logs] and see what happened.
Back to top
View user's profile
SarunyuP
Brekeke Member


Joined: 24 Oct 2018
Posts: 19
Location: Thailand

PostPosted: Wed Oct 24, 2018 10:18 pm    Post subject: Reply with quote

Yes. We already enabled detail logs in [Diagnostics] -> [Debug Logs] ->

[PBX log settings] -> [Categories] -> [PBX Log,Listener,Invite,Register]
And in
[SIP Server log settings] -> [Categories] -> [Listener,Dial Plan,SIP Session,Registrar,Push Notification]

And there are logs in [SIP SERVER] -> [Logs] -> [Push Notification logs]
It looks like this.
https://drive.google.com/file/d/1bOBKB7t9Y9KE6tfSynRM5m0Q5XVtX2xB/view?usp=sharing
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Wed Oct 24, 2018 11:10 pm    Post subject: Reply with quote

PN log looks no problem.

Check the SIP Server's log (sv.xxx.log) to see whether there is an error message.
Back to top
View user's profile
SarunyuP
Brekeke Member


Joined: 24 Oct 2018
Posts: 19
Location: Thailand

PostPosted: Thu Oct 25, 2018 2:26 am    Post subject: Reply with quote

There is no error message in sv log when sending a push notification sample message.
Here is a sv log if you would like to help me check it.
https://drive.google.com/file/d/18c4UMvArJnKa4CJSwrky81jJGzrXX4Uu/view?usp=sharing
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Thu Oct 25, 2018 10:44 am    Post subject: Reply with quote

As you can find in the log, the connection timeout happened.
I think your router doesn't keep the connection more than 15 min.

I remember someone had the same problem and solved it by replacing the router.

There are two solutions.

* Replace the router with another which can keep a connection.
-OR-
* Replace Java 8 with Java 10.
With Java 10, Brekeke SIP Server uses APNS's HTTP/2 API. So the connection timeout issue will not happen.
Back to top
View user's profile
SarunyuP
Brekeke Member


Joined: 24 Oct 2018
Posts: 19
Location: Thailand

PostPosted: Mon Oct 29, 2018 9:23 pm    Post subject: Reply with quote

I install java 10 and it work. I can send push to my device! Thank you so much. You save my time Very Happy Very Happy Very Happy
_________________
Best Regards
=============================
Sarunyu Prasert(Boy)
Entronica Company
=============================
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Tue Oct 30, 2018 8:05 am    Post subject: Reply with quote

so you didn't replace the router??

I know some router don't keep a persistent TCP connection what APNS' Binary Provider API requests.

With Java 10, Brekeke SIP Server uses APNS's HTTP/2 provider API.
Back to top
View user's profile
SarunyuP
Brekeke Member


Joined: 24 Oct 2018
Posts: 19
Location: Thailand

PostPosted: Fri Nov 02, 2018 1:35 am    Post subject: Reply with quote

No, I didn't replace a router.
I share my internet 4G from my phone to develop push feature. Because a router at my office block a SIP and Push notification even i contact a call center to allow it.

_________________
Best Regards
=============================
Sarunyu Prasert(Boy)
Entronica Company
=============================
Back to top
View user's profile
Niloc
Brekeke Talented


Joined: 19 Sep 2017
Posts: 70
Location: NL

PostPosted: Fri Nov 02, 2018 9:53 am    Post subject: Reply with quote

I see.

Enjoy,
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke PBX Forum All times are GMT - 7 Hours
Page 1 of 1