[asterisk-commits] russell: trunk r318056 - in /trunk: ./ channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat May 7 18:26:10 CDT 2011
Author: russell
Date: Sat May 7 18:26:05 2011
New Revision: 318056
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=318056
Log:
Merged revisions 318055 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r318055 | russell | 2011-05-07 18:24:18 -0500 (Sat, 07 May 2011) | 7 lines
chan_iax2: Don't overwrite port found with an SRV lookup.
(closes issue #17291)
Reported by: jcovert
Patches:
chan_iax2.c.1.8.3-srvlookup-corrected.patch uploaded by jcovert (license 551)
........
Modified:
trunk/ (props changed)
trunk/channels/chan_iax2.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: trunk/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=318056&r1=318055&r2=318056
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Sat May 7 18:26:05 2011
@@ -4638,7 +4638,9 @@
return -1;
}
ast_sockaddr_to_sin(&sin_tmp, sin);
- sin->sin_port = htons(IAX_DEFAULT_PORTNO);
+ if (sin->sin_port == 0) {
+ sin->sin_port = htons(IAX_DEFAULT_PORTNO);
+ }
/* use global iax prefs for unknown peer/user */
/* But move the calling channel's native codec to the top of the preference list */
memcpy(&ourprefs, &prefs, sizeof(ourprefs));
More information about the asterisk-commits
mailing list