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 committed 2005-12-15 00:45:38 +00:00
1 parent 6630e372c0
commit ced29c144d
5 files changed
+34 -21

No files matched your search

+1 -2
View File
@@ -161,9 +161,7 @@ static void audio_bridge_function(switch_core_session *session, char *data)
caller_channel = switch_core_session_get_channel(session);
assert(caller_channel != NULL);
switch_channel_answer(caller_channel);
strncpy(chan_type, data, sizeof(chan_type));
if ((chan_data = strchr(chan_type, '/'))) {
@@ -226,6 +224,7 @@ static void audio_bridge_function(switch_core_session *session, char *data)
}
if (switch_channel_test_flag(peer_channel, CF_ANSWERED)) {
switch_channel_answer(caller_channel);
switch_core_session_launch_thread(session, audio_bridge_thread, (void *) &other_audio_thread);
audio_bridge_thread(NULL, (void *) &this_audio_thread);
switch_channel_hangup(peer_channel);