Skip to content
Snippets Groups Projects
Commit 587cb230 authored by Jonathan Rose's avatar Jonathan Rose
Browse files

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
........

Merged revisions 358643 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 358644 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 2969b004
No related branches found
No related tags found
No related merge requests found
......@@ -30584,9 +30584,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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment