Skip to content

Commit

Permalink
call,ua: add checks and change warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Dec 6, 2024
1 parent 2c0e052 commit d0402b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -2296,6 +2296,9 @@ int call_accept(struct call *call, struct sipsess_sock *sess_sock,

bool call_sess_cmp(const struct call *call, const struct sip_msg *msg)
{
if (!call || !msg)
return false;

return sipsess_msg_equal(call->sess, msg);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ua.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ int ua_accept(struct ua *ua, const struct sip_msg *msg)
return EINVAL;

if (ua_find_call_msg(ua, msg)) {
warning("ua: call was already accepted\n");
warning("ua: call was already created\n");
return EINVAL;
}

Expand Down

0 comments on commit d0402b3

Please sign in to comment.