summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2014-04-07 16:15:34 +0000
committerJonathan Rose <jrose@digium.com>2014-04-07 16:15:34 +0000
commitc0a812e1432aa0aeb5d913230df5ca3e1a09bdc1 (patch)
treec13783ea53bc31dee158be284c7daf1b19631c7e
parent76d5c4ed43781a2d2075b2f0f498f59225794824 (diff)
AGI/Manager: Prevent multiple NewExten events during AGI application 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: https://origsvn.digium.com/svn/asterisk/trunk@411870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/manager_channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/manager_channels.c b/main/manager_channels.c
index 3fdcc9654..e61f790a6 100644
--- a/main/manager_channels.c
+++ b/main/manager_channels.c
@@ -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;
}