<div dir="ltr"><div dir="ltr">On Fri, Dec 27, 2019 at 12:02 PM David P <<a href="mailto:davidswalkabout@gmail.com">davidswalkabout@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><br>I'm looking for a way of detecting in my dialplan when a peer becomes non-responsive after answering. It seems that Asterisk knows when the peer becomes non-responsive because it logs "Remote UNIX connection disconnected" around the same time, and it seems that<br>if there is no following "Remote UNIX connection" within a short time, then the peer can be considered non-responsive. Is there a way to configure a handler for this state?<br> <br>We use v14.7.6 and we dial the peer this way:<br><br> same => n,Set(CHANNEL(hangup_handler_push)=${CONTEXT},handleHangupByCaller,1(args))<br> same => n,Dial(${AddressToReachPeer},2,b(${CONTEXT}^afterDialingPeerLogIpOfCb^1(${UUID}^${StartEpoch})))<br> same => n,Goto(handle${DIALSTATUS},1)</div></blockquote><div><br></div><div>The referenced message is not related to the call at all. It occurs when an "asterisk -r" console disconnects. As for hanging up a call when the remote goes away that depends on the channel driver. For SIP both chan_sip and chan_pjsip provide session timers which use SIP messages to determine if the call is no longer valid, or RTP timeout which hangs up the call if media is not flowing for a period of time. These are configured in the respective channel driver configuration file. </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>