update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10327 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
de495e8b94
commit
4549a90d63
|
@ -414,13 +414,16 @@ SWITCH_STANDARD_APP(socket_function)
|
||||||
if (switch_test_flag(listener, LFLAG_ASYNC)) {
|
if (switch_test_flag(listener, LFLAG_ASYNC)) {
|
||||||
launch_listener_thread(listener);
|
launch_listener_thread(listener);
|
||||||
switch_ivr_park(session, NULL);
|
switch_ivr_park(session, NULL);
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
listener_run(NULL, (void *) listener);
|
listener_run(NULL, (void *) listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (switch_channel_get_state(channel) >= CS_HANGUP) {
|
||||||
while (switch_test_flag(listener, LFLAG_SESSION)) {
|
while (switch_test_flag(listener, LFLAG_SESSION)) {
|
||||||
switch_yield(100000);
|
switch_yield(100000);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1605,6 +1608,11 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
|
||||||
|
|
||||||
switch_assert(listener != NULL);
|
switch_assert(listener != NULL);
|
||||||
|
|
||||||
|
if ((session = listener->session)) {
|
||||||
|
channel = switch_core_session_get_channel(session);
|
||||||
|
switch_core_session_read_lock(session);
|
||||||
|
}
|
||||||
|
|
||||||
if (prefs.acl_count && listener->sa && !switch_strlen_zero(listener->remote_ip)) {
|
if (prefs.acl_count && listener->sa && !switch_strlen_zero(listener->remote_ip)) {
|
||||||
uint32_t x = 0;
|
uint32_t x = 0;
|
||||||
|
|
||||||
|
@ -1625,12 +1633,6 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ((session = listener->session)) {
|
|
||||||
channel = switch_core_session_get_channel(session);
|
|
||||||
switch_core_session_read_lock(session);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (switch_strlen_zero(listener->remote_ip)) {
|
if (switch_strlen_zero(listener->remote_ip)) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Connection Open\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Connection Open\n");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue