mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 06:04:20 +00:00
fix att xfer to an app
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15122 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
5b6d1cd33c
commit
539bccffe1
4 files changed
+30
-10
No files matched your search
@@ -3267,18 +3267,14 @@ SWITCH_STANDARD_API(uuid_setvar_multi_function)
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#define EXISTS_SYNTAX "<uuid> <var>"
|
||||
#define EXISTS_SYNTAX "<uuid>"
|
||||
SWITCH_STANDARD_API(uuid_exists_function)
|
||||
{
|
||||
int exists = 0;
|
||||
|
||||
if (cmd) {
|
||||
switch_core_session_t *psession = NULL;
|
||||
if ((psession = switch_core_session_locate(cmd))) {
|
||||
switch_core_session_rwunlock(psession);
|
||||
exists = 1;
|
||||
}
|
||||
}
|
||||
switch_bool_t exists = SWITCH_FALSE;
|
||||
|
||||
if (cmd) {
|
||||
exists = switch_ivr_uuid_exists(cmd);
|
||||
}
|
||||
|
||||
stream->write_function(stream, "%s", exists ? "true" : "false");
|
||||
|
||||
|
||||
@@ -4247,6 +4247,14 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
|
||||
br_a = switch_channel_get_variable(channel_a, SWITCH_SIGNAL_BOND_VARIABLE);
|
||||
br_b = switch_channel_get_variable(channel_b, SWITCH_SIGNAL_BOND_VARIABLE);
|
||||
|
||||
if (!switch_ivr_uuid_exists(br_a)) {
|
||||
br_a = NULL;
|
||||
}
|
||||
|
||||
if (!switch_ivr_uuid_exists(br_b)) {
|
||||
br_b = NULL;
|
||||
}
|
||||
|
||||
if (switch_channel_test_flag(channel_b, CF_ORIGINATOR)) {
|
||||
switch_core_session_t *a_session;
|
||||
|
||||
|
||||
Reference in new issue
Block a user