mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-21 17:12:24 +00:00
Fix one place where the chanspy datastore isn't removed from a channel.
(issue #12243, reported by atis, patch by me) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@109763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -612,8 +612,10 @@ static int common_exec(struct ast_channel *chan, const struct ast_flags *flags,
|
||||
res = ast_streamfile(chan, peer_name, chan->language);
|
||||
if (!res)
|
||||
res = ast_waitstream(chan, "");
|
||||
if (res)
|
||||
if (res) {
|
||||
chanspy_ds_free(peer_chanspy_ds);
|
||||
break;
|
||||
}
|
||||
} else
|
||||
res = ast_say_character_str(chan, peer_name, "", chan->language);
|
||||
if ((num = atoi(ptr)))
|
||||
|
||||
Reference in New Issue
Block a user