mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
main/json.c: Added app_name, app_data to channel type
It was difficult to check the channel's current application and parameters using ARI for current channels. Added app_name, app_data items to show the current application information. ASTERISK-28343 Change-Id: Ia48972b3850e5099deab0faeaaf51223a1f2f38c
This commit is contained in:
@@ -990,8 +990,9 @@ struct ast_json *ast_channel_snapshot_to_json(
|
||||
snapshot->connected_name, snapshot->connected_number),
|
||||
"accountcode", snapshot->accountcode,
|
||||
/* Third line */
|
||||
"dialplan", ast_json_dialplan_cep(
|
||||
snapshot->context, snapshot->exten, snapshot->priority),
|
||||
"dialplan", ast_json_dialplan_cep_app(
|
||||
snapshot->context, snapshot->exten, snapshot->priority,
|
||||
snapshot->appl, snapshot->data),
|
||||
"creationtime", ast_json_timeval(snapshot->creationtime, NULL),
|
||||
"language", snapshot->language);
|
||||
|
||||
|
Reference in New Issue
Block a user