[SR-Users] How to send "bye" to caller when callee abruptly terminates (Connection reset by peer)

Pranathi Venkatayogi pvenkatayogi at cyracom.com
Tue Dec 26 19:17:23 CET 2017


Thank you it worked.

From: Daniel-Constantin Mierla [mailto:miconda at gmail.com]
Sent: Friday, December 22, 2017 2:24 AM
To: Pranathi Venkatayogi <pvenkatayogi at cyracom.com>; Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: How to send "bye" to caller when callee abruptly terminates (Connection reset by peer)


Hello,

you can use htable module to store the association between connection id (iirc, the var $conid) and dialog attributes (call id, from/to tag). The values in the hash table are available in the event route.

Cheers,
Daniel

On 21.12.17 20:53, Pranathi Venkatayogi wrote:
Hi,
  Currently when callee abruptly closes the connection (TCP RST), Kamailio does not send “BYE” to the caller. Caller is left to believe that he is talking to the callee.
  What is best way to solve this?

  I have attempted using tcpops module to track connection RSTs and then send $dlg_bye in event_route[tcp:reset] .
  In the event_route, I can access only these - $conid , $Ri , $Rp , $si , $sp and $proto variable and do not know how to get to the dlg this connection belongs.

  Questions: How do I load the dialog associated with this conid? Is there a way to enumerate all dialogs?

Thanks in advance,
Pranathi.





--

Daniel-Constantin Mierla

www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>

Kamailio Advanced Training - www.asipto.com<http://www.asipto.com>

Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171226/562e6712/attachment.html>


More information about the sr-users mailing list