mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +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:
@@ -274,7 +274,7 @@ AST_TEST_DEFINE(channel_snapshot_json)
|
||||
|
||||
actual = ast_channel_snapshot_to_json(snapshot, NULL);
|
||||
expected = ast_json_pack("{ s: s, s: s, s: s, s: s,"
|
||||
" s: { s: s, s: s, s: i },"
|
||||
" s: { s: s, s: s, s: i, s: s, s: s },"
|
||||
" s: { s: s, s: s },"
|
||||
" s: { s: s, s: s },"
|
||||
" s: s"
|
||||
@@ -288,6 +288,8 @@ AST_TEST_DEFINE(channel_snapshot_json)
|
||||
"context", "context",
|
||||
"exten", "exten",
|
||||
"priority", 1,
|
||||
"app_name", "",
|
||||
"app_data", "",
|
||||
"caller",
|
||||
"name", "cid_name",
|
||||
"number", "cid_num",
|
||||
|
Reference in New Issue
Block a user