[Asterisk-code-review] chan pjsip: send indication for a video refresh for h264 (asterisk[13])
Kevin Harwell
asteriskteam at digium.com
Thu Jun 29 15:27:27 CDT 2017
Kevin Harwell has uploaded this change for review. ( https://gerrit.asterisk.org/5937
Change subject: chan_pjsip: send indication for a video refresh for h264
......................................................................
chan_pjsip: send indication for a video refresh for h264
When needed chan_pjsip was sending a video refresh request for vp8, but not
h264. When using h264 this would sometimes cause the video to be absent. A
request is now sent for h264 as well.
ASTERISK-27098 #close
Change-Id: If96c4fe319442bf58c68f0dbbd25dae2f7b509b9
---
M channels/chan_pjsip.c
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/37/5937/1
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index d1691b8..e613355 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -1377,10 +1377,12 @@
/* FIXME: Only use this for VP8. Additional work would have to be done to
* fully support other video codecs */
- if (ast_format_cap_iscompatible_format(ast_channel_nativeformats(ast), ast_format_vp8) != AST_FORMAT_CMP_NOT_EQUAL) {
+ if (ast_format_cap_iscompatible_format(ast_channel_nativeformats(ast), ast_format_vp8) != AST_FORMAT_CMP_NOT_EQUAL ||
+ ast_format_cap_iscompatible_format(ast_channel_nativeformats(ast), ast_format_h264) != AST_FORMAT_CMP_NOT_EQUAL) {
/* FIXME Fake RTP write, this will be sent as an RTCP packet. Ideally the
* RTP engine would provide a way to externally write/schedule RTCP
* packets */
+
struct ast_frame fr;
fr.frametype = AST_FRAME_CONTROL;
fr.subclass.integer = AST_CONTROL_VIDUPDATE;
--
To view, visit https://gerrit.asterisk.org/5937
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: If96c4fe319442bf58c68f0dbbd25dae2f7b509b9
Gerrit-Change-Number: 5937
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170629/c5d072cb/attachment-0001.html>
More information about the asterisk-code-review
mailing list