[asterisk-commits] kmoore: branch group/media_formats-reviewed-trunk r418365 - /team/group/media...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 11 07:47:17 CDT 2014


Author: kmoore
Date: Fri Jul 11 07:47:03 2014
New Revision: 418365

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=418365
Log:
media formats: Set native formats for chan_pjsip

During the media rework, setting of nativeformats for chan_pjsip
channels was removed for inbound channels. This prevents chan_pjsip
channels from dialing other channels due to having (nothing) as their
native format capability. It's hard to transcode from (something) to
(nothing). This tweak gives chan_pjsip channels back their native
formats on creation.

ASTERISK-23960
Review: https://reviewboard.asterisk.org/r/3742/

Modified:
    team/group/media_formats-reviewed-trunk/channels/chan_pjsip.c

Modified: team/group/media_formats-reviewed-trunk/channels/chan_pjsip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats-reviewed-trunk/channels/chan_pjsip.c?view=diff&rev=418365&r1=418364&r2=418365
==============================================================================
--- team/group/media_formats-reviewed-trunk/channels/chan_pjsip.c (original)
+++ team/group/media_formats-reviewed-trunk/channels/chan_pjsip.c Fri Jul 11 07:47:03 2014
@@ -404,6 +404,7 @@
 		ast_format_cap_append_from_cap(caps, session->req_caps, AST_MEDIA_TYPE_UNKNOWN);
 	}
 
+	ast_channel_nativeformats_set(chan, caps);
 	fmt = ast_format_cap_get_format(caps, 0);
 	ast_channel_set_writeformat(chan, fmt);
 	ast_channel_set_rawwriteformat(chan, fmt);




More information about the asterisk-commits mailing list