Skip to content

Commit

Permalink
Add missing error code in SIP plugin (fixes #2830)
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Dec 7, 2021
1 parent 35704b1 commit d38e579
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/janus_sip.c
Original file line number Diff line number Diff line change
Expand Up @@ -3891,6 +3891,7 @@ static void *janus_sip_handler(void *data) {
/* Update an existing call */
if(!(session->status == janus_sip_call_status_incall_reinvited || session->status == janus_sip_call_status_incall)) {
JANUS_LOG(LOG_ERR, "Wrong state (not in a call? status=%s)\n", janus_sip_call_status_string(session->status));
error_code = JANUS_SIP_ERROR_WRONG_STATE;
g_snprintf(error_cause, 512, "Wrong state (not in a call?)");
goto error;
}
Expand Down

0 comments on commit d38e579

Please sign in to comment.