chan_sip: Set Quality of Service for video rtp instance
authorJonathan Rose <jrose@digium.com>
Tue, 25 Sep 2012 16:45:02 +0000 (16:45 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 25 Sep 2012 16:45:02 +0000 (16:45 +0000)
(closes issue ASTERISK-20201)
Reported by: ddkprog
Patches:
    chan_sip.c.diff uploaded by ddkprog (license 6008)
........

Merged revisions 373617 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 373631 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 373632 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373634 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 75154cb..511df06 100644 (file)
@@ -5584,6 +5584,7 @@ static int dialog_initialize_rtp(struct sip_pvt *dialog)
                ast_rtp_instance_set_keepalive(dialog->vrtp, dialog->rtpkeepalive);
 
                ast_rtp_instance_set_prop(dialog->vrtp, AST_RTP_PROPERTY_RTCP, 1);
+               ast_rtp_instance_set_qos(dialog->vrtp, global_tos_video, global_cos_video, "SIP VIDEO");
        }
 
        if (ast_test_flag(&dialog->flags[1], SIP_PAGE2_TEXTSUPPORT)) {