mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user