From 534931329ea26fc9bec834a3b77ea2a4be42d3e1 Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Fri, 29 Nov 2024 09:25:40 +0100 Subject: [PATCH] redirect: rename ua_reject to ua_hangupf --- modules/redirect/redirect.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/redirect/redirect.c b/modules/redirect/redirect.c index 86ef0fe..05064a3 100644 --- a/modules/redirect/redirect.c +++ b/modules/redirect/redirect.c @@ -354,15 +354,16 @@ static int cmd_call_redir(struct re_printf *pf, void *arg) if (err) return err; - re_hprintf(pf, "redirect: reject call %s\n", call_id(call)); - ua_reject(ua, call, scode, reason, + struct pl *dp = ¶ms.divparams; + ua_hangupf(ua, call, scode, reason, "Contact: <%r>%s\r\n" - "Diversion: <%s>%r\r\n" + "Diversion: <%s>%s%r\r\n" "Content-Length: 0\r\n\r\n", ¶ms.contact, expstr, account_aor(ua_account(ua)), + pl_isset(dp) && *(dp->p)!=';' ? ";" : "", ¶ms.divparams); mem_deref(reason);