mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
FS-3304 --resolve attended transfers, it fails to parse the Replaces when encoded
This commit is contained in:
parent
bbbd67ba08
commit
d9bbf12963
@ -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);
|
rep = switch_core_session_strdup(session, rep + 9);
|
||||||
|
|
||||||
if ((p = strchr(rep, ';'))) {
|
|
||||||
*p = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((buf = switch_core_session_alloc(session, strlen(rep) + 1))) {
|
if ((buf = switch_core_session_alloc(session, strlen(rep) + 1))) {
|
||||||
rep = url_unescape(buf, (const char *) rep);
|
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);
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Replaces: [%s]\n", rep);
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Memory Error!\n");
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Memory Error!\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user