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:
sungtae kim
2019-03-22 00:09:14 +01:00
parent 4f0b8c3ed3
commit d5a318f148
8 changed files with 91 additions and 13 deletions

View File

@@ -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);