mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Use compatible names for event extra data for various CEL backends.
* Change eventextra to extra in cel_psql.c and cel_odbc.c. * Change EventExtra to Extra in cel_manager.c. (issue ASTERISK-17190) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@350571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -92,7 +92,7 @@ static void manager_log(const struct ast_event *event, void *userdata) | ||||
| 		"Userfield: %s\r\n" | ||||
| 		"Peer: %s\r\n" | ||||
| 		"PeerAccount: %s\r\n" | ||||
| 		"EventExtra: %s\r\n", | ||||
| 		"Extra: %s\r\n", | ||||
| 		record.event_name, | ||||
| 		record.account_code, | ||||
| 		record.caller_id_num, | ||||
|   | ||||
| @@ -438,7 +438,7 @@ static void odbc_log(const struct ast_event *event, void *userdata) | ||||
| 					ast_copy_string(colbuf, record.peer, sizeof(colbuf)); | ||||
| 				} else if (strcmp(entry->celname, "amaflags") == 0) { | ||||
| 					snprintf(colbuf, sizeof(colbuf), "%d", record.amaflag); | ||||
| 				} else if (strcmp(entry->celname, "eventextra") == 0) { | ||||
| 				} else if (strcmp(entry->celname, "extra") == 0) { | ||||
| 					ast_copy_string(colbuf, record.extra, sizeof(colbuf)); | ||||
| 				} else { | ||||
| 					colbuf[0] = 0; | ||||
|   | ||||
| @@ -234,7 +234,7 @@ static void pgsql_log(const struct ast_event *event, void *userdata) | ||||
| 					value = record.user_field; | ||||
| 				} else if (strcmp(cur->name, "peer") == 0) { | ||||
| 					value = record.peer; | ||||
| 				} else if (strcmp(cur->name, "eventextra") == 0) { | ||||
| 				} else if (strcmp(cur->name, "extra") == 0) { | ||||
| 					value = record.extra; | ||||
| 				} else { | ||||
| 					value = NULL; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user