[asterisk-commits] mnicholson: branch 1.8 r286868 - /branches/1.8/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 15 08:06:00 CDT 2010
Author: mnicholson
Date: Wed Sep 15 08:05:52 2010
New Revision: 286868
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=286868
Log:
Set tohost to the domain specified in the configuration file instead of the IP address of the host we are calling.
This fixes a regression introduced in r274783.
(closes issue #17960)
Reported by: adriavidal
Patches:
sip-tohost-fix1.diff uploaded by mnicholson (license 96)
Tested by: mich, mnicholson, adriavidal
(closes issue #17676)
Reported by: outcast
Patches:
sip-tohost-fix1.diff uploaded by mnicholson (license 96)
Tested by: mnicholson
Modified:
branches/1.8/channels/chan_sip.c
Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=286868&r1=286867&r2=286868
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Wed Sep 15 08:05:52 2010
@@ -26117,9 +26117,8 @@
return NULL;
}
- ast_string_field_set(peer, tohost, peer->dnsmgr ? srvlookup :
- ast_sockaddr_stringify_host(&peer->addr));
-
+ ast_string_field_set(peer, tohost, srvlookup);
+
if (global_dynamic_exclude_static) {
int err = 0;
sip_cfg.contact_ha = ast_append_ha("deny", ast_sockaddr_stringify_addr(&peer->addr),
More information about the asterisk-commits
mailing list