[commit] r9257 - freeswitch/trunk/src/mod/applications/mod_commands
Author: anthm Date: Tue Aug 12 11:16:33 2008 New Revision: 9257 Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Log: set flag to avoid race on transfer -both Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c (original) +++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Tue Aug 12 11:16:33 2008 @@ -881,6 +881,9 @@ } } else if (!strcasecmp(arg, "both")) { if (uuid && (other_session = switch_core_session_locate(uuid))) { + switch_channel_t *other_channel = switch_core_session_get_channel(other_session); + switch_channel_set_flag(other_channel, CF_TRANSFER); + switch_channel_set_flag(channel, CF_TRANSFER); switch_ivr_session_transfer(other_session, dest, dp, context); switch_core_session_rwunlock(other_session); }
participants (1)
-
Freeswitch SVN