rtp_engine: Dynamic payload change in rtp mapping not supported
authorKevin Harwell <kharwell@digium.com>
Fri, 21 Feb 2014 18:37:24 +0000 (18:37 +0000)
committerKevin Harwell <kharwell@digium.com>
Fri, 21 Feb 2014 18:37:24 +0000 (18:37 +0000)
commit73709e22ef96dd97231497610c1c636c7e3663c4
treebbbd7e06dae70cd5ce8ea5bc02dc731a62e0dbbe
parent9e6407c07b30fd7e4c9cb4564fc4a8f4e33955e1
rtp_engine: Dynamic payload change in rtp mapping not supported

Asterisk didn't support the dynamic payload change in rtp mapping in the 200
OK response.

Scenario:
Asterisk sends the INVITE proposing alaw and telephone-event, it proposes
rtpmap:101 for telephone-event.  Peer responds with 2xx, it answers with
alaw and telephone-event also, but it proposes a different rtpmap number
(rtpmap:103) for telephone-event.

Expected Behaviour:
Asterisk should honour the rtpmapping in the response and send DTMF packets
using 103 as payload type for DTMF.

Actual Behaviour: Asterisk sends DTMF packets using payload type 101.

With this patch asterisk now supports changes that can occur in the rtp mapping
in the response.

(closes issue ASTERISK-23279)
Reported by: NITESH BANSAL
Review: https://reviewboard.asterisk.org/r/3225/
Patches:
     dynamic_payload_change.patch uploaded by nbansal (license 6418)
........

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

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

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