FS-3304 --resolve attended transfers, it fails to parse the Replaces when encoded

This commit is contained in:
Jeff Lenk 2011-07-08 22:48:11 -05:00
parent bbbd67ba08
commit d9bbf12963
1 changed files with 3 additions and 4 deletions

View File

@ -6033,12 +6033,11 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
rep = switch_core_session_strdup(session, rep + 9);
if ((p = strchr(rep, ';'))) {
*p = '\0';
}
if ((buf = switch_core_session_alloc(session, strlen(rep) + 1))) {
rep = url_unescape(buf, (const char *) rep);
if ((p = strchr(rep, ';'))) {
*p = '\0';
}
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Replaces: [%s]\n", rep);
} else {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Memory Error!\n");