<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Joshua,</p>
<p><br>
</p>
<p>Looking at traces, there are packets being sent with length 4. These show as PSH, ACK in a Wireshark. However, in TLS I don't see any such packets which I believe is the cause of the TLS connection is being closed. </p>
<p><br>
</p>
<p>Can you confirm if Asterisk does send these packets on TLS transports?</p>
<p><br>
</p>
<p>Kind regards,</p>
<p><br>
Ross</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> asterisk-dev-bounces@lists.digium.com <asterisk-dev-bounces@lists.digium.com> on behalf of Joshua Colp <jcolp@digium.com><br>
<b>Sent:</b> 09 November 2016 17:48<br>
<b>To:</b> asterisk-dev@lists.digium.com<br>
<b>Subject:</b> Re: [asterisk-dev] Chan_pjsip keep_alive_interval</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On Wed, Nov 9, 2016, at 01:25 PM, Ross Beer wrote:<br>
> Hi,<br>
> <br>
> <br>
> I'm investigating an issue where TLS connections close with a 'RST' after<br>
> a random period of time.<br>
> <br>
> <br>
> I can see that PJSIP sets 'PJSIP_TRANSPORT_IDLE_TIME=600', with the<br>
> option in pjsip.conf 'keep_alive_internal' set, does this set both<br>
> 'PJSIP_TCP_KEEP_ALIVE_INTERVAL' and 'PJSIP_TLS_KEEP_ALIVE_INTERVAL'?<br>
<br>
The keep_alive_interval option doesn't set those in PJSIP. It controls<br>
the interval at which code in Asterisk (not PJSIP) will send a<br>
keepalive. There is no expectation that a response is received, as it<br>
does not generate a SIP request itself. It allows runtime control<br>
instead of compile time control.<br>
<br>
> <br>
> <br>
> Does a keep-alive packet actually reset 'PJSIP_TRANSPORT_IDLE_TIME' if a<br>
> response is received? If no response received, how many attempts are made<br>
> before asterisk disconnects the session?<br>
<br>
It does not reset the timer locally. Its purpose is to ensure the remote<br>
side does not disconnect us for being idle. If we received a message<br>
then our local idle timer would be reset.<br>
<br>
-- <br>
Joshua Colp<br>
Digium, Inc. | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="http://www.digium.com" id="LPlnk367181" previewremoved="true">
www.digium.com</a> & <a href="http://www.asterisk.org" id="LPlnk783561" previewremoved="true">
www.asterisk.org</a>
<div id="LPBorder_GT_14787154562640.4498460163584277" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14787154562620.3692711822395769" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14787154562630.1220730578446938" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14787154562630.720241791305472"></div>
<div id="LPTitle_14787154562630.6868058410451847" style="top: 0px; color: rgb(47, 144, 196); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14787154562630.7767700923106551" href="http://www.asterisk.org/" target="_blank" style="text-decoration: none;">Asterisk custom communications - PBX, VoIP gateways, IVRs ...</a></div>
<div id="LPMetadata_14787154562630.85813804321566" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.asterisk.org</div>
<div id="LPDescription_14787154562640.40028109178839255" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Asterisk: an open source framework that lets you build communications applications for IP PBX, VoIP gateways, conference servers and custom phone apps</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div id="LPBorder_GT_14787154557550.2334810868987811" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14787154557510.5857329766779091" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="ImageCell_14787154557520.25417214602534366" colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;">
<div id="LPImageContainer_14787154557520.324027408750982" style="background-color: rgb(255, 255, 255); height: 75px; position: relative; margin: auto; display: table; width: 120px;">
<a id="LPImageAnchor_14787154557530.2522150500884288" href="http://www.digium.com/" target="_blank" style="display: table-cell; text-align: center;"><img aria-label="Preview image with link selected. Double-tap to open the link." id="LPThumbnailImageID_14787154557530.650289388541001" style="display: inline-block; max-width: 250px; max-height: 250px; height: 75px; width: 120px; border-width: 0px; vertical-align: bottom;" width="120" height="75" src="https://www.digium.com/sites/digium/themes/digium/logo.png"></a></div>
</td>
<td id="TextCell_14787154557530.4775427698615542" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14787154557530.11584481059277185"></div>
<div id="LPTitle_14787154557530.4564221957871688" style="top: 0px; color: rgb(47, 144, 196); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14787154557540.7453277888282925" href="http://www.digium.com/" target="_blank" style="text-decoration: none;">Business Phone Systems | Unified Communications | Digium</a></div>
<div id="LPMetadata_14787154557540.2847025418239437" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.digium.com</div>
<div id="LPDescription_14787154557540.19780013605085944" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Digium offers full Unified Communications solutions with on-premises and hosted business phone systems, IP phones, and Asterisk hardware.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" id="LPlnk46920" previewremoved="true">
http://www.api-digital.com</a> --
<div id="LPBorder_GT_14787155150950.6320443655787629" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14787155150920.5911214942956118" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14787155150940.3609201164043989" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14787155150940.02778474905989592"></div>
<div id="LPTitle_14787155150940.5665084310509241" style="top: 0px; color: rgb(47, 144, 196); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14787155150940.7071730986578122" href="http://www.api-digital.com/" target="_blank" style="text-decoration: none;">api digital - problem solved.</a></div>
<div id="LPMetadata_14787155150950.38913842861752124" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.api-digital.com</div>
<div id="LPDescription_14787155150950.059619829402729696" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
API Digital Website</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" id="LPlnk121492" previewremoved="true">
http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div>
</span></font></div>
</div>
</body>
</html>