go in consume media right away

This commit is contained in:
Mathieu Rene 2012-07-25 20:50:18 -04:00
parent ae84538819
commit c6fecc1ee8
1 changed files with 3 additions and 0 deletions

View File

@ -256,6 +256,9 @@ fail:
static switch_status_t channel_on_init(switch_core_session_t *session)
{
switch_channel_t *channel = switch_core_session_get_channel(session);
switch_channel_set_state(channel, CS_CONSUME_MEDIA);
return SWITCH_STATUS_SUCCESS;
}