summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2009-04-14 13:14:21 +0000
committerJoshua Colp <jcolp@digium.com>2009-04-14 13:14:21 +0000
commit84fd750c1050df0a135d5ff23e01e971f42d446d (patch)
tree1b1a0d196f5df8f2bfdeabcd39620dbb84c74bd0
parenta74fda63fd66d9e579779dc96bc0a05d77636591 (diff)
Fix a bug with the change I made yesterday to outbound proxy support.
Per discussion with oej on IRC we need the actual IP address, not the outbound proxy IP address, in the sa field. This change matches the already existing code for all other uses of the outbound proxy setting. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@188247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2eb5d38d0..dbbdbcf1a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5002,11 +5002,7 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer, struct sockadd
/* Get the outbound proxy information */
ref_proxy(dialog, obproxy_get(dialog, NULL));
- if (dialog->outboundproxy) {
- /* If we have an outbound proxy, don't bother with DNS resolution at all, but set the port */
- portno = port ? atoi(port) : (dialog->socket.type & SIP_TRANSPORT_TLS) ? STANDARD_TLS_PORT : STANDARD_SIP_PORT;
- memcpy(&dialog->sa.sin_addr, &dialog->outboundproxy->ip.sin_addr, sizeof(dialog->sa.sin_addr));
- } else if (sin) {
+ if (sin) {
/* This address should be updated using dnsmgr */
memcpy(&dialog->sa.sin_addr, &sin->sin_addr, sizeof(dialog->sa.sin_addr));
if (!sin->sin_port) {