diff options
author | Mark Michelson <mmichelson@digium.com> | 2014-12-08 15:49:24 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2014-12-08 15:49:24 +0000 |
commit | 93b1df3bf6c6832053fc7444cd07640c273cb1df (patch) | |
tree | 53276d6b4595f86f337f95420acf1bd94bdb27cd /main/stasis_channels.c | |
parent | 55c9a46abdec10fec5210622b4508ee5e7791a65 (diff) |
Add new AMI and ARI events for connected line changes on a channel.
The AMI event is called NewConnectedLine and the ARI event is called
ChannelConnectedLine.
ASTERISK-24554 #close
Reported by Matt Jordan
Review: https://reviewboard.asterisk.org/r/4231
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@429064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/stasis_channels.c')
-rw-r--r-- | main/stasis_channels.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/main/stasis_channels.c b/main/stasis_channels.c index cc5a9f587..816efdb45 100644 --- a/main/stasis_channels.c +++ b/main/stasis_channels.c @@ -938,6 +938,16 @@ int ast_channel_snapshot_caller_id_equal( strcmp(old_snapshot->caller_name, new_snapshot->caller_name) == 0; } +int ast_channel_snapshot_connected_line_equal( + const struct ast_channel_snapshot *old_snapshot, + const struct ast_channel_snapshot *new_snapshot) +{ + ast_assert(old_snapshot != NULL); + ast_assert(new_snapshot != NULL); + return strcmp(old_snapshot->connected_number, new_snapshot->connected_number) == 0 && + strcmp(old_snapshot->connected_name, new_snapshot->connected_name) == 0; +} + static struct ast_json *channel_blob_to_json( struct stasis_message *message, const char *type, |