mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
fix MODAPP-224
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12368 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
57a6fcca47
commit
372f8131c8
@ -182,7 +182,14 @@ static switch_bool_t write_displace_callback(switch_media_bug_t *bug, void *user
|
|||||||
break;
|
break;
|
||||||
case SWITCH_ABC_TYPE_CLOSE:
|
case SWITCH_ABC_TYPE_CLOSE:
|
||||||
if (dh) {
|
if (dh) {
|
||||||
|
switch_core_session_t *session = switch_core_media_bug_get_session(bug);
|
||||||
|
switch_channel_t *channel;
|
||||||
|
|
||||||
switch_core_file_close(&dh->fh);
|
switch_core_file_close(&dh->fh);
|
||||||
|
|
||||||
|
if (session && (channel = switch_core_session_get_channel(session))) {
|
||||||
|
switch_channel_set_private(channel, dh->file, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SWITCH_ABC_TYPE_READ_REPLACE:
|
case SWITCH_ABC_TYPE_READ_REPLACE:
|
||||||
@ -256,7 +263,14 @@ static switch_bool_t read_displace_callback(switch_media_bug_t *bug, void *user_
|
|||||||
break;
|
break;
|
||||||
case SWITCH_ABC_TYPE_CLOSE:
|
case SWITCH_ABC_TYPE_CLOSE:
|
||||||
if (dh) {
|
if (dh) {
|
||||||
|
switch_core_session_t *session = switch_core_media_bug_get_session(bug);
|
||||||
|
switch_channel_t *channel;
|
||||||
|
|
||||||
switch_core_file_close(&dh->fh);
|
switch_core_file_close(&dh->fh);
|
||||||
|
|
||||||
|
if (session && (channel = switch_core_session_get_channel(session))) {
|
||||||
|
switch_channel_set_private(channel, dh->file, NULL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SWITCH_ABC_TYPE_WRITE_REPLACE:
|
case SWITCH_ABC_TYPE_WRITE_REPLACE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user