mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
app_chanspy: Spyee information missing in ChanSpyStop AMI Event
The documentation in the wiki says there should be spyee-channel
information elements in the ChanSpyStop AMI event.
https://wiki.asterisk.org/wiki/x/Xc5uAg
However, this is not the case in Asterisk <= 16.10.0 Version. We're
using these Spyee* arguments since Asterisk 11.x, so these arguments
vanished in Asterisk 12 or higher.
For maximum compatibility, we still send the ChanSpyStop event even if
we are not able to find any 'Spyee' information.
ASTERISK-28883 #close
Change-Id: I81ce397a3fd614c094d043ffe5b1b1d76188835f
This commit is contained in:
committed by
Friendly Automation
parent
a47e6965b3
commit
0a23296834
@@ -845,13 +845,13 @@ static int channel_spy(struct ast_channel *chan, struct ast_autochan *spyee_auto
|
||||
ast_audiohook_unlock(&csth.spy_audiohook);
|
||||
ast_audiohook_destroy(&csth.spy_audiohook);
|
||||
|
||||
ast_verb(2, "Done Spying on channel %s\n", name);
|
||||
publish_chanspy_message(chan, spyee_autochan->chan, 0);
|
||||
|
||||
if (spyee_bridge_autochan) {
|
||||
ast_autochan_destroy(spyee_bridge_autochan);
|
||||
}
|
||||
|
||||
ast_verb(2, "Done Spying on channel %s\n", name);
|
||||
publish_chanspy_message(chan, NULL, 0);
|
||||
|
||||
return running;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user