mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 21:38:34 +00:00
fix issue in monitor_early_media_fail issue
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12271 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
4a520847c2
commit
9556be51ef
17 files changed
+43
-43
No files matched your search
@@ -1234,7 +1234,7 @@ SWITCH_STANDARD_APP(erlang_outbound_function)
|
||||
switch_ivr_park(session, NULL);
|
||||
|
||||
/* keep app thread running for lifetime of session */
|
||||
if (switch_channel_get_state(switch_core_session_get_channel(session)) >= CS_HANGUP) {
|
||||
if (switch_channel_down(switch_core_session_get_channel(session))) {
|
||||
while (switch_test_flag(session_element, LFLAG_SESSION_ALIVE)) {
|
||||
switch_yield(100000);
|
||||
}
|
||||
|
||||
@@ -430,7 +430,7 @@ SWITCH_STANDARD_APP(socket_function)
|
||||
listener_run(NULL, (void *) listener);
|
||||
}
|
||||
|
||||
if (switch_channel_get_state(channel) >= CS_HANGUP) {
|
||||
if (switch_channel_down(channel)) {
|
||||
while (switch_test_flag(listener, LFLAG_SESSION)) {
|
||||
switch_yield(100000);
|
||||
}
|
||||
@@ -1192,7 +1192,7 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
|
||||
}
|
||||
}
|
||||
|
||||
if (channel && switch_channel_get_state(channel) >= CS_HANGUP && !switch_test_flag(listener, LFLAG_HANDLE_DISCO)) {
|
||||
if (channel && switch_channel_down(channel) && !switch_test_flag(listener, LFLAG_HANDLE_DISCO)) {
|
||||
switch_set_flag_locked(listener, LFLAG_HANDLE_DISCO);
|
||||
if (switch_test_flag(listener, LFLAG_LINGER)) {
|
||||
char message[128] = "";
|
||||
|
||||
Reference in new issue
Block a user