If a port is specified when dialing a peer then use it.

(closes issue #14626)
Reported by: acunningham


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@180799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Joshua Colp 18 years ago
parent d375364194
commit c6837adabc

@ -4175,6 +4175,11 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer, int newdialog)
}
res = create_addr_from_peer(dialog, peer);
unref_peer(peer);
if (!ast_strlen_zero(port)) {
if ((portno = atoi(port))) {
dialog->sa.sin_port = dialog->recv.sin_port = htons(portno);
}
}
return res;
}

Loading…
Cancel
Save