There was an error while loading. Please reload this page.
1 parent b910d13 commit 832cb9aCopy full SHA for 832cb9a
2 files changed
src/addons/cc
src/proxy/proxy_call/sip_session.rs
@@ -3643,6 +3643,16 @@ impl SipSession {
3643
}
3644
3645
// Race the forked INVITEs – first 200 OK wins
3646
+ // Fire on_call_ringing hooks now that callees are ringing.
3647
+ // Use the first target's AOR for agent identity.
3648
+ if !self.server.session_hooks.is_empty() && !targets.is_empty() {
3649
+ self.meta.routed_callee = Some(targets[0].aor.to_string());
3650
+ let ctx = self.session_hook_ctx();
3651
+ for hook in self.server.session_hooks.iter() {
3652
+ hook.on_call_ringing(&ctx).await;
3653
+ }
3654
3655
+
3656
let mut failures = 0u32;
3657
let mut last_error = into_callee_err(
3658
&StatusCode::TemporarilyUnavailable,
0 commit comments