Keeping register sip session

Discuss any topic about Brekeke PBX.

Moderator: Brekeke Support Team

Post Reply
SarunyuP
Posts: 19
Joined: Wed Oct 24, 2018 9:07 pm
Location: Thailand

Keeping register sip session

Post by SarunyuP »

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

2. Java version:
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, 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'd like to know. It is possible to keep register session before it expire.
Because I have a case, if user launch app and register with push token to brekeke pbx and after that a user isn't back to app to re-register for a long time until it expire from server then there is someone call to that user.

Thank you.
Best Regards
=============================
Sarunyu Prasert(Boy)
Entronica Company
=============================
janP
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by janP »

Which SIP phone client are you using?
Does it send REGISTER over UDP? or TCP? or TLS?


> It is possible to keep register session before it expire.

What does "register session" mean? registration record?
SarunyuP
Posts: 19
Joined: Wed Oct 24, 2018 9:07 pm
Location: Thailand

Post by SarunyuP »

- I'm using linphone app on iphone.
- It send register over UDP.
- Yes, Registration record.

I want a behavior like line application, Even a user A doesn't open an app for a lone time user B is still calling to user A.
Best Regards
=============================
Sarunyu Prasert(Boy)
Entronica Company
=============================
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

> Even a user A doesn't open an app for a lone time user B is still calling to user A.

You don't have to worry about it...

Once an app sent REGISTER with a device token correctly, Brekeke SIP Server stores the device record separately from the registration database.
You can see stored device record at [Push Notification]->[Devices] page.
It means the SIP Server can send a push notification even if the registration record is expired.

Most of SIP client app including Linphone will send REGISTER triggered by a push notification. so you can keep calling to user-A even if he/she doesn't open an app for long time.
SarunyuP
Posts: 19
Joined: Wed Oct 24, 2018 9:07 pm
Location: Thailand

Post by SarunyuP »

OK, It seem i have to change my dial plan because i create dial plan following the brekeke guide and it check user that you want to send push must already register to brekeke. I'll try


Thank you.
Best Regards
=============================
Sarunyu Prasert(Boy)
Entronica Company
=============================
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Sample DialPlan rule will meet the requirement.
http://wiki.brekeke.com/wiki/PushNotifi ... comingCall

$pn.user() check whether the username is registered in the Push Notification database not Register Database.
http://wiki.brekeke.com/wiki/DialPlan-Matching-pn-user

And "$wait4reg" waits new REGISTER if the previous registration record has been expired.
Post Reply