[SR-Users] detect failed socket

Péter Barabás Peter.Barabas at minerva-soft.com
Mon Aug 29 13:41:37 CEST 2016


Hi,

any idea for the problem below?

Thanks.

Peter

From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Péter Barabás
Sent: Thursday, August 18, 2016 3:55 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
Subject: [SR-Users] detect failed socket

Hello,

I want to refine the instant message handling in our application. It works really fine in most cases. I use the msilo module to store offline messages if the user is not registered with sending PUSH notification.
But, there is a situation when I have problems:
When I send a message to a user whose phone is in airplane mode. In this case his location record exists but the communication on the socket is not possible and the client timed out the request.

Is it possible to check the socket towards the receiver user at the moment when the message arrives at Kamailio? I think if I would check that if the socket is not fine, I could send the message to the msilo directly and the client would not have wait for timeout to resend.

Thanks.

Peter


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160829/d68f0ad5/attachment.html>


More information about the sr-users mailing list