aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 13:19:13 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-14 13:19:13 +0000
commitf1e5a918578ce13fa17b9cf6b0d6dc544bfba67d (patch)
tree470ac4666a519da5cb4cfacf2a93183b5eb83441
parenta79c86fae0ef6b25334432595aac0909345df0ac (diff)
Merged revisions 188247 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r188247 | file | 2009-04-14 10:14:21 -0300 (Tue, 14 Apr 2009) | 7 lines 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. Upon further inspection this should make the behaviour of all other uses of the outbound proxy in the code. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@188259 f38db490-d61c-443f-a65b-d21fe96a405b
-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 5dc33c2b9..d3648a7b7 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4889,11 +4889,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) {