mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-27 21:54:16 +00:00
move channel_create event to init state to allow more info to be gathered
This commit is contained in:
1 parent
bc7cb400c0
commit
5db3a9b071
2 files changed
+10
-10
No files matched your search
@@ -358,7 +358,16 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session)
|
||||
|
||||
break;
|
||||
case CS_INIT: /* Basic setup tasks */
|
||||
STATE_MACRO(init, "INIT");
|
||||
{
|
||||
switch_event_t *event;
|
||||
|
||||
STATE_MACRO(init, "INIT");
|
||||
|
||||
if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_CREATE) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_channel_event_set_data(session->channel, event);
|
||||
switch_event_fire(&event);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case CS_ROUTING: /* Look for a dialplan and find something to do */
|
||||
STATE_MACRO(routing, "ROUTING");
|
||||
|
||||
Reference in new issue
Block a user