channels/chan_sip: Respect outboundproxy setting when sending qualify requests
authorMatthew Jordan <mjordan@digium.com>
Fri, 17 Oct 2014 13:11:07 +0000 (13:11 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 17 Oct 2014 13:11:07 +0000 (13:11 +0000)
commit86eea19c8f6027b6f8095c531f088c9a523e4744
tree919a4c021adbe4c2602976ca4ad3ac864db44a2d
parent7144c739e97aca9e69b2067238deeedeafbc478f
channels/chan_sip: Respect outboundproxy setting when sending qualify requests

The outboundproxy setting is currently ignored when sending OPTIONS requests
as a result of the qualify setting. This means that if an Asterisk server is
unable to send the packet directly to a peer, it is unable to qualify any
non-inbound registered peer (e.g. a peer SIP Trunk).

This patch grabs the outboundproxy information for a peer when a qualify
attempt is being constructed and, if it finds the information, uses it
when sending the OPTIONS request.

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

ASTERISK-24063 #close
Reported by: Damian Ivereigh
patches:
  outboundproxy-dai.patch uploaded by Damian Ivereigh (License 6632)
........

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

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

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

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

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