Skip to content

Commit

Permalink
redirect: rename ua_reject to ua_hangupf
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Nov 29, 2024
1 parent 2085267 commit 5349313
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/redirect/redirect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = &params.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",
&params.contact,
expstr,
account_aor(ua_account(ua)),
pl_isset(dp) && *(dp->p)!=';' ? ";" : "",
&params.divparams);

mem_deref(reason);
Expand Down

0 comments on commit 5349313

Please sign in to comment.