]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Prevent resetting of NATted realtime peer address on reload.
authorMark Michelson <mmichelson@digium.com>
Mon, 29 Oct 2012 21:23:25 +0000 (21:23 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 29 Oct 2012 21:23:25 +0000 (21:23 +0000)
commitd51cc2781213d1474cdfc2fd18bfe617572b9fb0
treed9ce201576e1ceda5e4c9913af541ef4594aa1cb
parent48f0d85bd11e2bee04ed1829ec00a7ea60839df1
Prevent resetting of NATted realtime peer address on reload.

If a "sip reload" is issued for a SIP peer, then his
IP address will be cleared, thus resulting in forgetting the
public IP address. Asterisk will then attempt to route SIP
traffic to the private IP address.

The fix here is to make "sip reload" ignore realtime peers
when "host = dynamic" is spotted. Realtime peers can now only
have their IP address reset if they have gone from being not
dynamic to being dynamic.

(closes issue ASTERISK-18203)
reported by daren ferreira

(closes issue ASTERISK-20572)
reported by JoshE
Patches:
fix_nat_realtime.diff uploaded by JoshE (license #6075)
........

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

Merged revisions 375417 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@375437 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c