rtp_engine: improved handling of get_rtp_info failure
authorScott Griepentrog <sgriepentrog@digium.com>
Tue, 28 Jan 2014 16:43:25 +0000 (16:43 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Tue, 28 Jan 2014 16:43:25 +0000 (16:43 +0000)
commit601692a7e4cdb9e9b9ee128d66d7b36e632184be
treede1273ef1fad0f0eb88f79c4c56476c367abc987
parentaff9e1f5835032c0c809d3897550e973bb01a71d
rtp_engine: improved handling of get_rtp_info failure

In ast_rtp_instance_make_compatible(), after a failure of
channel tech call get_rtp_info() to return peer_instance,
the null pointer would be passed to ao2_ref, producing an
error that looked like a refernce counting problem but is
not.  This patch corrects that and adds helpful LOG_ERROR
messages to indicate which failure path occurred.

(issue AST-1276)
Review: https://reviewboard.asterisk.org/r/3156/
........

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

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

Merged revisions 406723 from http://svn.asterisk.org/svn/asterisk/branches/12

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