diff --git res/res_pjsip_sdp_rtp.c res/res_pjsip_sdp_rtp.c index c5a673a..982022d 100644 --- res/res_pjsip_sdp_rtp.c +++ res/res_pjsip_sdp_rtp.c @@ -1443,7 +1443,7 @@ static int apply_negotiated_sdp_stream(struct ast_sip_session *session, struct a ast_rtp_instance_activate(session_media->rtp); /* audio stream handles music on hold */ - if (media_type != AST_MEDIA_TYPE_AUDIO) { + if (media_type != AST_MEDIA_TYPE_AUDIO && media_type != AST_MEDIA_TYPE_VIDEO) { if ((pjmedia_sdp_neg_was_answer_remote(session->inv_session->neg) == PJ_FALSE) && (session->inv_session->state == PJSIP_INV_STATE_CONFIRMED)) { ast_queue_control(session->channel, AST_CONTROL_UPDATE_RTP_PEER); @@ -1476,7 +1476,8 @@ static int apply_negotiated_sdp_stream(struct ast_sip_session *session, struct a session_media->encryption = session->endpoint->media.rtp.encryption; if (session->endpoint->media.rtp.keepalive > 0 && - stream_to_media_type(session_media->stream_type) == AST_MEDIA_TYPE_AUDIO) { + (stream_to_media_type(session_media->stream_type) == AST_MEDIA_TYPE_AUDIO || + stream_to_media_type(session_media->stream_type) == AST_MEDIA_TYPE_VIDEO)) { ast_rtp_instance_set_keepalive(session_media->rtp, session->endpoint->media.rtp.keepalive); /* Schedule the initial keepalive early in case this is being used to punch holes through * a NAT. This way there won't be an awkward delay before media starts flowing in some