Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/authenticationsproutlet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ void AuthenticationSproutletTsx::create_challenge(pjsip_digest_credential* crede
// We've failed to store the nonce in memcached, so we have no hope of
// successfully authenticating any repsonse to a 401 Unauthorized. Send
// a 500 Server Internal Error instead.
TRC_DEBUG("Failed to store nonce in memcached");
TRC_ERROR("Failed to store nonce in memcached, for impi %s", impi.c_str());
rsp->line.status.code = PJSIP_SC_INTERNAL_SERVER_ERROR;
rsp->line.status.reason = *pjsip_get_status_text(PJSIP_SC_INTERNAL_SERVER_ERROR);

Expand Down
3 changes: 2 additions & 1 deletion src/registrarsproutlet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ void RegistrarSproutletTsx::process_register_request(pjsip_msg *req)
// Failed to connect to the local store. Reject the register with a 500
// response.
// LCOV_EXCL_START - the can't fail to connect to the store we use for UT
TRC_ERROR("Failed to connect to local store, private_id= %s", private_id.c_str());
st_code = PJSIP_SC_INTERNAL_SERVER_ERROR;

SAS::Event event(trail(), SASEvent::REGISTER_FAILED_REGSTORE, 0);
Expand Down Expand Up @@ -604,7 +605,7 @@ void RegistrarSproutletTsx::process_register_request(pjsip_msg *req)
if (gen_hdr == NULL)
{
// LCOV_EXCL_START - can't see how this could ever happen
TRC_ERROR("Failed to add RFC 5626 headers");
TRC_ERROR("Failed to add RFC 5626 headers to reply");

SAS::Event event(trail(), SASEvent::REGISTER_FAILED_5636, 0);
event.add_var_param(public_id);
Expand Down
1 change: 1 addition & 0 deletions src/subscriptionsproutlet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ void SubscriptionSproutletTsx::process_subscription_request(pjsip_msg* req)
{
// Failed to connect to the local store. Reject the subscribe with a 500
// response.
TRC_ERROR("Failed to connect to local store for SUBSCRIBE, aor=%s", aor.c_str());
st_code = PJSIP_SC_INTERNAL_SERVER_ERROR;

// Build and send the reply.
Expand Down
2 changes: 1 addition & 1 deletion src/thread_dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ bool process_queue_element()
if ((rdata->msg_info.msg->type == PJSIP_REQUEST_MSG) &&
(rdata->msg_info.msg->line.req.method.id != PJSIP_ACK_METHOD))
{
TRC_DEBUG("Returning 500 response following exception");
TRC_ERROR("Returning 500 response following exception");
reject_with_retry_header(rdata, PJSIP_SC_INTERNAL_SERVER_ERROR);
}

Expand Down