[asterisk-commits] jrose: branch 1.8 r358643 - /branches/1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 8 10:39:41 CST 2012


Author: jrose
Date: Thu Mar  8 10:39:36 2012
New Revision: 358643

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=358643
Log:
Make transfer not ignore port information with SIP.

Attempting to transfer with SIP to an address like 1XXXXX at ip.ad.re.ss:5061 would fail
because port would be cut from the host string and ignored. This simply keeps chan_sip
from cutting off the port number during these kinds of transfers.

(closes issue ASTERISK-19321)
Reported by: Federico Alves
Review: https://reviewboard.asterisk.org/r/1790/diff/#index_header

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=358643&r1=358642&r2=358643
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Thu Mar  8 10:39:36 2012
@@ -29397,9 +29397,9 @@
 	char *extension, *domain;
 
 	cdest = ast_strdupa(dest);
-	
+
 	extension = strsep(&cdest, "@");
-	domain = strsep(&cdest, ":");
+	domain = cdest;
 	if (ast_strlen_zero(extension)) {
 		ast_log(LOG_ERROR, "Missing mandatory argument: extension\n");
 		return 0;




More information about the asterisk-commits mailing list