Skip to content
Snippets Groups Projects
Commit 6e139adc authored by Olle Johansson's avatar Olle Johansson
Browse files

Small fix in outbound proxy support.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 32495f91
No related merge requests found
......@@ -2939,6 +2939,8 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer)
return res;
}
 
ast_string_field_set(dialog, tohost, peername);
/* Get the outbound proxy information */
dialog->outboundproxy = obproxy_get(dialog, NULL);
 
......@@ -2968,7 +2970,6 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer)
ast_log(LOG_WARNING, "No such host: %s\n", peername);
return -1;
}
ast_string_field_set(dialog, tohost, peername);
memcpy(&dialog->sa.sin_addr, hp->h_addr, sizeof(dialog->sa.sin_addr));
dialog->sa.sin_port = htons(portno);
dialog->recv = dialog->sa;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment