mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +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 ........ Merged revisions 429064 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429084 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