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

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 22 09:23:51 CET 2017


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171222/e5eb88d5/attachment.html>


More information about the sr-users mailing list