]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
put running_state in the channel event rather than the state so presence events refle...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Nov 2012 20:13:05 +0000 (14:13 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Nov 2012 20:13:05 +0000 (14:13 -0600)
src/switch_channel.c

index 5ccca55184255ebc9b10a246a6389867a93fed24..9e40829f823a608fe1f86dbaf713108ab0637d11 100644 (file)
@@ -2254,7 +2254,7 @@ SWITCH_DECLARE(void) switch_channel_event_set_basic_data(switch_channel_t *chann
                originatee_caller_profile = caller_profile->originatee_caller_profile;
        }
 
-       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Channel-State", switch_channel_state_name(channel->state));
+       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Channel-State", switch_channel_state_name(channel->running_state));
        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Channel-Call-State", switch_channel_callstate2str(channel->callstate));
        switch_snprintf(state_num, sizeof(state_num), "%d", channel->state);
        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Channel-State-Number", state_num);