[asterisk-commits] file: branch 1.6.1 r164662 - in /branches/1.6.1: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 16 09:47:10 CST 2008


Author: file
Date: Tue Dec 16 09:47:10 2008
New Revision: 164662

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164662
Log:
Merged revisions 164659 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164659 | file | 2008-12-16 11:44:28 -0400 (Tue, 16 Dec 2008) | 4 lines
  
  When using externhost make sure the port gets set to the bindaddr port if one was not specified in the externhost value itself.
  (closes issue #13634)
  Reported by: performer
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/channels/chan_sip.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/channels/chan_sip.c?view=diff&rev=164662&r1=164661&r2=164662
==============================================================================
--- branches/1.6.1/channels/chan_sip.c (original)
+++ branches/1.6.1/channels/chan_sip.c Tue Dec 16 09:47:10 2008
@@ -21908,6 +21908,9 @@
 			if (ast_parse_arg(externhost, PARSE_INADDR, &externip))
 				ast_log(LOG_WARNING, "Invalid address for externhost keyword: %s\n", externhost);
 			externexpire = time(NULL);
+			/* If no port was specified use the value of bindport */
+			if (!externip.sin_port)
+				externip.sin_port = bindaddr.sin_port;
 		} else if (!strcasecmp(v->name, "externrefresh")) {
 			if (sscanf(v->value, "%d", &externrefresh) != 1) {
 				ast_log(LOG_WARNING, "Invalid externrefresh value '%s', must be an integer >0 at line %d\n", v->value, v->lineno);




More information about the asterisk-commits mailing list