Brekeke Forum Index » Brekeke PBX Forum

Post new topic   Reply to topic
Keeping register sip session
Author Message
SarunyuP
Brekeke Member


Joined: 24 Oct 2018
Posts: 19
Location: Thailand

PostPosted: Wed Dec 12, 2018 3:46 am    Post subject: Keeping register sip session Reply with quote

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
=============================
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Wed Dec 12, 2018 7:07 pm    Post subject: Reply with quote

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?
Back to top
View user's profile
SarunyuP
Brekeke Member


Joined: 24 Oct 2018
Posts: 19
Location: Thailand

PostPosted: Thu Dec 13, 2018 1:16 am    Post subject: Reply with quote

- 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
=============================
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 286
Location: Japan

PostPosted: Thu Dec 13, 2018 5:57 pm    Post subject: Reply with quote

> 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.
Back to top
View user's profile
SarunyuP
Brekeke Member


Joined: 24 Oct 2018
Posts: 19
Location: Thailand

PostPosted: Sun Dec 16, 2018 9:41 pm    Post subject: Reply with quote

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
=============================
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 286
Location: Japan

PostPosted: Sun Dec 16, 2018 10:23 pm    Post subject: Reply with quote

Sample DialPlan rule will meet the requirement.
http://wiki.brekeke.com/wiki/PushNotification-Sample-DialPlan-NotifyIncomingCall

$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.
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