Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
AGI/Manager: Prevent multiple NewExten events during AGI application …
Browse files Browse the repository at this point in the history
…changes

AGI applications would trigger NewExten events every time the state of the AGI
application changed. This has historically not been the behavior and this
behavior was introduced with a CDR patch. This patch corrects that.

(closes issue ASTERISK-23390)
Reported by: Benjamin Keith Ford
Review: https://reviewboard.asterisk.org/r/3406/
........

Merged revisions 411868 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@411870 f38db490-d61c-443f-a65b-d21fe96a405b
  • Loading branch information
jrrose committed Apr 7, 2014
1 parent a5e664c commit 4ea0127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/manager_channels.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,8 @@ static struct ast_manager_event_blob *channel_newexten(
return NULL;
}

if (old_snapshot && ast_channel_snapshot_cep_equal(old_snapshot, new_snapshot)
&& !strcmp(old_snapshot->appl, new_snapshot->appl)) {
/* Ignore updates if the CEP is unchanged */
if (old_snapshot && ast_channel_snapshot_cep_equal(old_snapshot, new_snapshot)) {
return NULL;
}

Expand Down

0 comments on commit 4ea0127

Please sign in to comment.