mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 11:06:31 +00:00
ari: expose channel driver's unique id to ARI channel resource
This change exposes the channel driver's unique id (i.e. the Call-ID for chan_sip/chan_pjsip based channels) to ARI channel resources as `protocol_id`. ASTERISK-30027 Reported by: Moritz Fain Tested by: Moritz Fain Change-Id: I7cc6e7a9d29efe74bc27811d788dac20fe559b87
This commit is contained in:
@@ -273,7 +273,7 @@ AST_TEST_DEFINE(channel_snapshot_json)
|
||||
ast_test_validate(test, NULL != snapshot);
|
||||
|
||||
actual = ast_channel_snapshot_to_json(snapshot, NULL);
|
||||
expected = ast_json_pack("{ s: s, s: s, s: s, s: s,"
|
||||
expected = ast_json_pack("{ s: s, s: s, s: s, s: s, s: s,"
|
||||
" s: { s: s, s: s, s: i, s: s, s: s },"
|
||||
" s: { s: s, s: s },"
|
||||
" s: { s: s, s: s },"
|
||||
@@ -284,6 +284,7 @@ AST_TEST_DEFINE(channel_snapshot_json)
|
||||
"state", "Down",
|
||||
"accountcode", "acctcode",
|
||||
"id", ast_channel_uniqueid(chan),
|
||||
"protocol_id", "",
|
||||
"dialplan",
|
||||
"context", "context",
|
||||
"exten", "exten",
|
||||
|
Reference in New Issue
Block a user