PJSIP: Fix address for ACK in NAT situations
authorKinsey Moore <kmoore@digium.com>
Fri, 31 Jan 2014 15:08:49 +0000 (15:08 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 31 Jan 2014 15:08:49 +0000 (15:08 +0000)
commitd5431ed358d8e661bdb0ca7608636059f8679af8
tree3878ea295caed099606cc5db4f45f521c9ee2502
parente8eb6a9e30afb3dcffe6a0c1821ffc8b0fe380c6
PJSIP: Fix address for ACK in NAT situations

In NAT scenarios where a call is placed to a Grandstream phone,
res_pjsip will sometimes send the ACK to a 200 OK to the private
address of the device behind the NAT instead of the address of the NAT
device. This corrects that behavior by rewriting the address in the
Contact header in the incoming 200 OK and the dialog's target address
if necessary (since it has already been rewritten to the incorrect
private address).

(closes issue ASTERISK-23106)
Review: https://reviewboard.asterisk.org/r/3168/
Reported by: Matt Jordan
........

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

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