<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17899">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_sdp_rtp.c: Support keepalive for video streams.<br><br>ASTERISK-28890 #close<br><br>Change-Id: Iad269a8dc36f892ede90fe8ceb3010560c0f70d1<br>---<br>M res/res_pjsip_sdp_rtp.c<br>1 file changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/99/17899/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c</span><br><span>index a5e0b78..e1d1701 100644</span><br><span>--- a/res/res_pjsip_sdp_rtp.c</span><br><span>+++ b/res/res_pjsip_sdp_rtp.c</span><br><span>@@ -2173,7 +2173,7 @@</span><br><span> ast_rtp_instance_activate(session_media->rtp);</span><br><span> </span><br><span> /* audio stream handles music on hold */</span><br><span style="color: hsl(0, 100%, 40%);">- if (media_type != AST_MEDIA_TYPE_AUDIO) {</span><br><span style="color: hsl(120, 100%, 40%);">+ if (media_type != AST_MEDIA_TYPE_AUDIO && media_type != AST_MEDIA_TYPE_VIDEO) {</span><br><span> if ((pjmedia_sdp_neg_was_answer_remote(session->inv_session->neg) == PJ_FALSE)</span><br><span> && (session->inv_session->state == PJSIP_INV_STATE_CONFIRMED)) {</span><br><span> ast_queue_control(session->channel, AST_CONTROL_UPDATE_RTP_PEER);</span><br><span>@@ -2205,7 +2205,8 @@</span><br><span> session_media->encryption = session->endpoint->media.rtp.encryption;</span><br><span> </span><br><span> if (session->endpoint->media.rtp.keepalive > 0 &&</span><br><span style="color: hsl(0, 100%, 40%);">- session_media->type == AST_MEDIA_TYPE_AUDIO) {</span><br><span style="color: hsl(120, 100%, 40%);">+ (session_media->type == AST_MEDIA_TYPE_AUDIO ||</span><br><span style="color: hsl(120, 100%, 40%);">+ session_media->type == AST_MEDIA_TYPE_VIDEO)) {</span><br><span> ast_rtp_instance_set_keepalive(session_media->rtp, session->endpoint->media.rtp.keepalive);</span><br><span> /* Schedule the initial keepalive early in case this is being used to punch holes through</span><br><span> * a NAT. This way there won't be an awkward delay before media starts flowing in some</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17899">change 17899</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/17899"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iad269a8dc36f892ede90fe8ceb3010560c0f70d1 </div>
<div style="display:none"> Gerrit-Change-Number: 17899 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>