fix pesteredo's bug

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8413 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-05-15 15:57:29 +00:00
parent 328c72742b
commit 1285e6338e
2 changed files with 3 additions and 1 deletions

View File

@@ -776,6 +776,8 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_running_state(
channel->state_flags = 0;
}
switch_clear_flag(channel, CF_TAGGED);
if (channel->state >= CS_ROUTING) {
switch_clear_flag(channel, CF_TRANSFER);
switch_channel_presence(channel, "unknown", (char *) state_names[state]);