]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix Crash Caused By One-way Audio With auto_* NAT Settings Fix
authorMichael L. Young <elgueromexicano@gmail.com>
Mon, 13 May 2013 21:05:38 +0000 (21:05 +0000)
committerMichael L. Young <elgueromexicano@gmail.com>
Mon, 13 May 2013 21:05:38 +0000 (21:05 +0000)
commiteec46f56f4fd174f9273e892eb1506af5a27ff63
tree335d8bb91ab29b819b1b17eeb5f36f7f1b9da555
parent6b5b35b7569c46fca441de67b1ab25abb527b98c
Fix Crash Caused By One-way Audio With auto_* NAT Settings Fix

The prior code committed, r385473, failed to take into consideration that not
all outgoing calls will be to a peer.  My fault.

This patch does the following:

* Check if there is a related peer involved.  If there is, check and set NAT
  settings according to the peer's settings.

* Fix a problem with realtime peers.  If the global setting has auto_force_rport
  set and we issued a "sip reload" while a peer is still registered, the peer's
  flags for NAT are reset to off.  When this happens, we were always setting the
  contact address of the peer to that of the full contact info that we had.

(closes issue ASTERISK-21374)
Reported by: jmls
Tested by: Michael L. Young
Patches:
   asterisk-21374-fix-crash-and-rt-peers.diff by Michael L. Young (license 5026)

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

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