Merged revisions 314017 via svnmerge from
authorDavid Vossel <dvossel@digium.com>
Mon, 18 Apr 2011 13:42:51 +0000 (13:42 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 18 Apr 2011 13:42:51 +0000 (13:42 +0000)
commit4b4549106bd1c6d699468c5d9863ffde7ba590d1
tree2922b8393827d1cd34fd1ddb703fb8d26cb49c50
parent6b01eb3324f8ffcaba3c9c4cc30c8c5de60bd413
Merged revisions 314017 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r314017 | dvossel | 2011-04-18 08:41:06 -0500 (Mon, 18 Apr 2011) | 17 lines

  sip codec negotiation of dynamic rtp payloads error fix

  This patch fixes how chan_sip handles dynamic rtp payload types
  it does not understand.  At the moment if a dynamic payload's mime
  type does not match one we understand, the payload does not get
  removed from our payload table.  As a result of this, the payload
  is set to whatever dynamic codec we use internally for that payload
  number on outgoing INVITES.  This is incorrect.

  This patch fixes this by properly checking the rtpmap set function's
  return code to make sure it was found.  The function can return both
  -1 and -2 depending on the source of the mismatch.  We were just
  checking -1 explicitly.

  Review: https://reviewboard.asterisk.org/r/1169/
........

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