FS-2913
This commit is contained in:
parent
b2a3bbff9b
commit
3a645dee60
|
@ -5060,9 +5060,20 @@ static int recover_callback(void *pArg, int argc, char **argv, char **columnName
|
||||||
const char *port = switch_channel_get_variable(channel, SWITCH_LOCAL_MEDIA_PORT_VARIABLE);
|
const char *port = switch_channel_get_variable(channel, SWITCH_LOCAL_MEDIA_PORT_VARIABLE);
|
||||||
const char *r_ip = switch_channel_get_variable(channel, SWITCH_REMOTE_MEDIA_IP_VARIABLE);
|
const char *r_ip = switch_channel_get_variable(channel, SWITCH_REMOTE_MEDIA_IP_VARIABLE);
|
||||||
const char *r_port = switch_channel_get_variable(channel, SWITCH_REMOTE_MEDIA_PORT_VARIABLE);
|
const char *r_port = switch_channel_get_variable(channel, SWITCH_REMOTE_MEDIA_PORT_VARIABLE);
|
||||||
|
const char *use_uuid;
|
||||||
|
|
||||||
sofia_set_flag(tech_pvt, TFLAG_RECOVERING);
|
sofia_set_flag(tech_pvt, TFLAG_RECOVERING);
|
||||||
|
|
||||||
|
if ((use_uuid = switch_channel_get_variable(channel, "origination_uuid"))) {
|
||||||
|
if (switch_core_session_set_uuid(session, use_uuid) == SWITCH_STATUS_SUCCESS) {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s set UUID=%s\n", switch_channel_get_name(channel),
|
||||||
|
use_uuid);
|
||||||
|
} else {
|
||||||
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_CRIT, "%s set UUID=%s FAILED\n",
|
||||||
|
switch_channel_get_name(channel), use_uuid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!switch_channel_test_flag(channel, CF_PROXY_MODE) && ip && port) {
|
if (!switch_channel_test_flag(channel, CF_PROXY_MODE) && ip && port) {
|
||||||
const char *tmp;
|
const char *tmp;
|
||||||
tech_pvt->iananame = tech_pvt->rm_encoding = (char *) switch_channel_get_variable(channel, "sip_use_codec_name");
|
tech_pvt->iananame = tech_pvt->rm_encoding = (char *) switch_channel_get_variable(channel, "sip_use_codec_name");
|
||||||
|
|
Loading…
Reference in New Issue