mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2757 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
beb40aaa20
commit
980d2d8aeb
2 files changed
+20
-3
No files matched your search
+10
-1
@@ -1809,7 +1809,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
||||
peer_channels[i] = NULL;
|
||||
peer_sessions[i] = NULL;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
switch_core_session_read_lock(peer_sessions[i]);
|
||||
pool = NULL;
|
||||
|
||||
peer_channels[i] = switch_core_session_get_channel(peer_sessions[i]);
|
||||
@@ -1986,6 +1988,13 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
|
||||
switch_core_codec_destroy(&write_codec);
|
||||
}
|
||||
|
||||
for (i = 0; i < argc; i++) {
|
||||
if (!peer_channels[i]) {
|
||||
continue;
|
||||
}
|
||||
switch_core_session_rwunlock(peer_sessions[i]);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user