[asterisk-dev] [Code Review] 3786: media formats: Fix direct media codecs in PJSIP.

Joshua Colp reviewboard at asterisk.org
Mon Jul 14 17:46:00 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3786/
-----------------------------------------------------------

Review request for Asterisk Developers.


Repository: Asterisk


Description
-------

When doing direct media the res_pjsip_sdp_rtp module negotiates using only the media type of the specific stream. There is a function present which removes formats of all other types. This incorrectly removes all formats by accidentally using AST_MEDIA_TYPE_UNKNOWN. The patch fixes this so it does not.


Diffs
-----

  /team/group/media_formats-reviewed-trunk/res/res_pjsip_sdp_rtp.c 418612 

Diff: https://reviewboard.asterisk.org/r/3786/diff/


Testing
-------

Setup a call with a direct media bridge and confirmed no errors on console and media going direct. Without this patch an error would come up complaining about no compatible codecs.


Thanks,

Joshua Colp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140714/b4debef4/attachment.html>


More information about the asterisk-dev mailing list