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
This commit is contained in:
Mark Michelson
2014-12-08 15:49:24 +00:00
parent 55c9a46abd
commit 93b1df3bf6
9 changed files with 203 additions and 2 deletions

View File

@@ -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,