The Push Notification on PBX are not works.

Discuss any topic about Brekeke PBX.

Moderator: Brekeke Support Team

Post Reply
punthape
Posts: 2
Joined: Thu Mar 29, 2018 1:06 am

The Push Notification on PBX are not works.

Post by punthape »

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
Niloc
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by Niloc »

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?
SarunyuP
Posts: 19
Joined: Wed Oct 24, 2018 9:07 pm
Location: Thailand

Post by SarunyuP »

- 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.
Niloc
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by Niloc »

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

Also enable detailed logs at [Diagnostics]->[Debug Logs] and see what happened.
SarunyuP
Posts: 19
Joined: Wed Oct 24, 2018 9:07 pm
Location: Thailand

Post by SarunyuP »

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/1bOBKB7 ... sp=sharing
Niloc
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by Niloc »

PN log looks no problem.

Check the SIP Server's log (sv.xxx.log) to see whether there is an error message.
SarunyuP
Posts: 19
Joined: Wed Oct 24, 2018 9:07 pm
Location: Thailand

Post by SarunyuP »

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/18c4UMv ... sp=sharing
Niloc
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by Niloc »

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.
SarunyuP
Posts: 19
Joined: Wed Oct 24, 2018 9:07 pm
Location: Thailand

Post by SarunyuP »

I install java 10 and it work. I can send push to my device! Thank you so much. You save my time :D :D :D
Best Regards
=============================
Sarunyu Prasert(Boy)
Entronica Company
=============================
Niloc
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by Niloc »

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.
SarunyuP
Posts: 19
Joined: Wed Oct 24, 2018 9:07 pm
Location: Thailand

Post by SarunyuP »

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
=============================
Niloc
Posts: 70
Joined: Tue Sep 19, 2017 9:49 pm
Location: NL

Post by Niloc »

I see.

Enjoy,
Post Reply