mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +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:
@@ -1281,8 +1281,9 @@ struct ast_json *ast_channel_snapshot_to_json(
|
||||
snapshot->connected->name, snapshot->connected->number),
|
||||
"accountcode", snapshot->base->accountcode,
|
||||
/* Third line */
|
||||
"dialplan", ast_json_dialplan_cep(
|
||||
snapshot->dialplan->context, snapshot->dialplan->exten, snapshot->dialplan->priority),
|
||||
"dialplan", ast_json_dialplan_cep_app(
|
||||
snapshot->dialplan->context, snapshot->dialplan->exten, snapshot->dialplan->priority,
|
||||
snapshot->dialplan->appl, snapshot->dialplan->data),
|
||||
"creationtime", ast_json_timeval(snapshot->base->creationtime, NULL),
|
||||
"language", snapshot->base->language);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user