From: Anthony Minessale Date: Mon, 9 Mar 2009 19:48:17 +0000 (+0000) Subject: dont fire presence event for the reporting state X-Git-Tag: v1.0.4~1580 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca2fcf9b9fd55cd0b1b000ad2684481edc48f2de;p=thirdparty%2Ffreeswitch.git dont fire presence event for the reporting state git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12542 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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); }