Skip to content

Commit

Permalink
ua: ua_event for DnD rejected call
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Mar 27, 2024
1 parent 2263b90 commit 4eba13d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ua.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,10 @@ void sipsess_conn_handler(const struct sip_msg *msg, void *arg)
if (uag_dnd()) {
(void)sip_treply(NULL, uag_sip(), msg,
480,"Temporarily Unavailable");

hdr = sip_msg_hdr(msg, SIP_HDR_CONTACT);
ua_event(ua, UA_EVENT_CALL_CLOSED, call,
"DnD: Rejected Contact: %r", hdr ? &hdr->val : NULL);
return;
}

Expand Down

0 comments on commit 4eba13d

Please sign in to comment.