Direct Media calls within private network sometimes get one way audio
authorKevin Harwell <kharwell@digium.com>
Tue, 9 Dec 2014 20:03:22 +0000 (20:03 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 9 Dec 2014 20:03:22 +0000 (20:03 +0000)
commitc17cef1c383e34128cb8e3b3bdd573bad72caf75
treeaef28a09f1ad12ac64fb07f71aaf9d0a60cff879
parent7844266e2183b018690a0b54c0b72c47419d75fe
Direct Media calls within private network sometimes get one way audio

When endpoints with direct_media enabled, behind a firewall (Asterisk on a
separate network) and were bridged sometimes Asterisk would send the ip
address of the firewall in the sdp to one of the phones in the reinvite
resulting in one way audio. When sending the reinvite Asterisk will retrieve
the media address from the associated rtp instance, but if frames were being
read this can be overwritten with another address (in this case the
firewall's).  This patch ensures that Asterisk uses the original device
address when using direct media.

ASTERISK-24563
Reported by: Steve Pitts
Review: https://reviewboard.asterisk.org/r/4216/
........

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

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

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