From: Jonathan Rose Date: Thu, 8 Mar 2012 16:39:36 +0000 (+0000) Subject: Make transfer not ignore port information with SIP. X-Git-Tag: 1.8.10.1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e2e2bf05929cd900bc5d5b35615cedf1fabe37a;p=thirdparty%2Fasterisk.git Make transfer not ignore port information with SIP. Attempting to transfer with SIP to an address like 1XXXXX@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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@358643 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e3e133bd5f..6c9c6dddde 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -29397,9 +29397,9 @@ static int sip_sipredirect(struct sip_pvt *p, const char *dest) 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;