Thank you it worked.

 

From: Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Sent: Friday, December 22, 2017 2:24 AM
To: Pranathi Venkatayogi <pvenkatayogi@cyracom.com>; Kamailio (SER) - Users Mailing List <sr-users@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 -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com