res_rtp_asterisk: Crash if no candidates received for component
authorKevin Harwell <kharwell@digium.com>
Thu, 9 Oct 2014 21:39:12 +0000 (21:39 +0000)
committerKevin Harwell <kharwell@digium.com>
Thu, 9 Oct 2014 21:39:12 +0000 (21:39 +0000)
commit6fc4df727956f0aea44622979349fa9031aaf61d
tree1da1ee080d6f64a09083035b4ca89aeb4c42c06f
parentc6837c236fd1eca33246e634e90a0526d12efc4b
res_rtp_asterisk: Crash if no candidates received for component

When starting ice if there is not at least one remote ice candidate with an RTP
component asterisk will crash. This is due to an assertion in pjnath as it
expects at least one candidate with an RTP component. Added a check to make
sure at least one candidate contains an RTP component and at least one candidate
has an RTCP component.

ASTERISK-24383 #close
Review: https://reviewboard.asterisk.org/r/4039/
........

Merged revisions 425031 from http://svn.asterisk.org/svn/asterisk/branches/13

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