Merged revisions 173967-173968 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r173967 | file | 2009-02-06 13:14:15 -0400 (Fri, 06 Feb 2009) | 4 lines
  
  Some clients do not put the call-id for replaces at the beginning, so support it being anywhere in the string.
  (closes issue #14350)
  Reported by: fhackenberger
........
  r173968 | file | 2009-02-06 13:15:01 -0400 (Fri, 06 Feb 2009) | 2 lines
  
  Remove a debug message I put in by accident.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@173974 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.2
Joshua Colp 17 years ago
parent 647b68ec23
commit 550f7f1e65

@ -12450,9 +12450,7 @@ static int get_refer_info(struct sip_pvt *transferer, struct sip_request *outgoi
} }
/* Check for arguments in the refer_to header */ /* Check for arguments in the refer_to header */
if ((ptr = strchr(refer_to, '?'))) { /* Search for arguments */ if ((ptr = strcasestr(refer_to, "replaces="))) {
*ptr++ = '\0';
if (!strncasecmp(ptr, "REPLACES=", 9)) {
char *to = NULL, *from = NULL; char *to = NULL, *from = NULL;
/* This is an attended transfer */ /* This is an attended transfer */
@ -12493,7 +12491,6 @@ static int get_refer_info(struct sip_pvt *transferer, struct sip_request *outgoi
else else
ast_debug(2, "Attended transfer: Will use Replace-Call-ID : %s F-tag: %s T-tag: %s\n", referdata->replaces_callid, referdata->replaces_callid_fromtag ? referdata->replaces_callid_fromtag : "<none>", referdata->replaces_callid_totag ? referdata->replaces_callid_totag : "<none>" ); ast_debug(2, "Attended transfer: Will use Replace-Call-ID : %s F-tag: %s T-tag: %s\n", referdata->replaces_callid, referdata->replaces_callid_fromtag ? referdata->replaces_callid_fromtag : "<none>", referdata->replaces_callid_totag ? referdata->replaces_callid_totag : "<none>" );
} }
}
if ((ptr = strchr(refer_to, '@'))) { /* Separate domain */ if ((ptr = strchr(refer_to, '@'))) { /* Separate domain */
char *urioption = NULL, *domain; char *urioption = NULL, *domain;

Loading…
Cancel
Save