stasis: Update the snapshot after setting the redirect

The previous commit added the caller_rdnis attribute. Make it
avialble during a possible ChanngelHangupRequest.

(cherry picked from commit 56733c73b4)
This commit is contained in:
Holger Hans Peter Freyther
2023-10-21 17:39:50 +08:00
committed by Asterisk Development Team
parent 28f52d35f3
commit 7699af00e1
2 changed files with 79 additions and 0 deletions

View File

@@ -9209,6 +9209,7 @@ void ast_channel_set_redirecting(struct ast_channel *chan, const struct ast_part
ast_channel_lock(chan);
ast_party_redirecting_set(ast_channel_redirecting(chan), redirecting, update);
ast_channel_snapshot_invalidate_segment(chan, AST_CHANNEL_SNAPSHOT_INVALIDATE_CALLER);
ast_channel_publish_snapshot(chan);
ast_channel_unlock(chan);
}