From ca2fcf9b9fd55cd0b1b000ad2684481edc48f2de Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 9 Mar 2009 19:48:17 +0000 Subject: [PATCH] dont fire presence event for the reporting state git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12542 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index 010f42d739..d993382b91 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -968,7 +968,7 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_running_state( switch_channel_clear_flag(channel, CF_TAGGED); - if (channel->state >= CS_ROUTING) { + if (channel->state >= CS_ROUTING && channel->state <= CS_HANGUP) { switch_channel_presence(channel, "unknown", (char *) state_names[state], NULL); }