Skip to content

Commit

Permalink
ENGDESK-28545: Fix 500 error response for 100rel 3PCC calls (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
baloeng authored Feb 21, 2024
1 parent dde9398 commit c2d37f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libsofia-sip-ua/nua/nua_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,9 @@ int nua_invite_server_respond(nua_server_request_t *sr, tagi_t const *tags)
/* This is a re-INVITE without SDP - do not try to send offer in 200 */;
else
/* Generate offer */
if (soa_generate_offer(nh->nh_soa, nh->nh_prefs->nhp_always_regenerate_offer, NULL) < 0)
if (sr->sr_status == 180)
/* This is 180 Ringing - do not generate offer */;
else if (soa_generate_offer(nh->nh_soa, nh->nh_prefs->nhp_always_regenerate_offer, NULL) < 0)
sr->sr_status = soa_error_as_sip_response(nh->nh_soa, &sr->sr_phrase);
else
offer = 1;
Expand Down

0 comments on commit c2d37f1

Please sign in to comment.