[asterisk-commits] oej: branch 1.6.2 r215929 - in /branches/1.6.2: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 3 09:21:33 CDT 2009
Author: oej
Date: Thu Sep 3 09:21:27 2009
New Revision: 215929
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=215929
Log:
Merged revisions 215891 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r215891 | oej | 2009-09-03 15:02:41 +0200 (Tor, 03 Sep 2009) | 10 lines
Add known internal IP address when autodomain=yes
(closes issue #14573)
Reported by: pj
Patches:
sip-internip-autodomain1.diff uploaded by mnicholson (license 96)
modified by oej
Tested by: pj
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/channels/chan_sip.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=215929&r1=215928&r2=215929
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Thu Sep 3 09:21:27 2009
@@ -24413,10 +24413,14 @@
char temp[MAXHOSTNAMELEN];
/* First our default IP address */
- if (bindaddr.sin_addr.s_addr)
+ if (bindaddr.sin_addr.s_addr) {
add_sip_domain(ast_inet_ntoa(bindaddr.sin_addr), SIP_DOMAIN_AUTO, NULL);
- else
+ } else if (internip.sin_addr.s_addr) {
+ /* Our internal IP address, if configured */
+ add_sip_domain(ast_inet_ntoa(internip.sin_addr), SIP_DOMAIN_AUTO, NULL);
+ } else {
ast_log(LOG_NOTICE, "Can't add wildcard IP address to domain list, please add IP address to domain manually.\n");
+ }
/* If TCP is running on a different IP than UDP, then add it too */
if (sip_tcp_desc.local_address.sin_addr.s_addr && !inaddrcmp(&bindaddr, &sip_tcp_desc.local_address))
More information about the asterisk-commits
mailing list