mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +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
George Joseph
parent
91fc57f56b
commit
357510cec3
@@ -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