mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 22:30:28 +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:
committed by
Friendly Automation
parent
8db9a02962
commit
de838c241b
@@ -587,6 +587,9 @@ void *ast_channel_tech_pvt(const struct ast_channel *chan)
|
||||
void ast_channel_tech_pvt_set(struct ast_channel *chan, void *value)
|
||||
{
|
||||
chan->tech_pvt = value;
|
||||
if (value != NULL) {
|
||||
ast_channel_snapshot_invalidate_segment(chan, AST_CHANNEL_SNAPSHOT_INVALIDATE_BASE);
|
||||
}
|
||||
}
|
||||
void *ast_channel_timingdata(const struct ast_channel *chan)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user