make things work right in windows

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@155 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2005-12-15 00:45:38 +00:00
parent 6630e372c0
commit ced29c144d
5 changed files with 34 additions and 21 deletions

View File

@@ -1060,12 +1060,14 @@ SWITCH_DECLARE(switch_channel *) switch_core_session_get_channel(switch_core_ses
static void switch_core_standard_on_init(switch_core_session *session)
{
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Standard INIT\n");
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Standard INIT %s\n", switch_channel_get_name(session->channel));
}
static void switch_core_standard_on_hangup(switch_core_session *session)
{
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Standard HANGUP\n");
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Standard HANGUP %s\n", switch_channel_get_name(session->channel));
}
static void switch_core_standard_on_ring(switch_core_session *session)
@@ -1074,6 +1076,8 @@ static void switch_core_standard_on_ring(switch_core_session *session)
switch_caller_profile *caller_profile;
switch_caller_extension *extension;
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Standard RING %s\n", switch_channel_get_name(session->channel));
if (!(caller_profile = switch_channel_get_caller_profile(session->channel))) {
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Can't get profile!\n");
switch_channel_set_state(session->channel, CS_HANGUP);
@@ -1087,9 +1091,7 @@ static void switch_core_standard_on_ring(switch_core_session *session)
}
}
}
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Standard RING\n");
}
}
static void switch_core_standard_on_execute(switch_core_session *session)
{