Skip to content

Commit

Permalink
Consider session-expires failure only on 408 or 481 response
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Feb 4, 2025
1 parent ed2d6c3 commit 2c7e3ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sip-dialog-controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1684,8 +1684,9 @@ namespace drachtio {
assert(0) ;
}
if( findRIPByOrq( orq, rip ) ) {
const int code = sip->sip_status->st_status ;

if( sip->sip_status->st_status != 200 ) {
if( code == 408 || code == 481 ) {
DR_LOG(log_info) << "SipDialogController::processResponseToRefreshingReinvite: reinvite failed (status="
<< sip->sip_status->st_status << ") - clearing dialog";
notifyTerminateStaleDialog( dlg );
Expand Down

0 comments on commit 2c7e3ad

Please sign in to comment.