Skip to content

Commit

Permalink
PBX INVITE TIMER
Browse files Browse the repository at this point in the history
-  Increased the INVITE TIMER by two once we see a SIP 100 Message. This will give the endpoint more time to respond to the invite and it will trigger the secondary server if it doesn't answer - Fixes #195
  • Loading branch information
root committed Jul 31, 2019
1 parent 1406788 commit 7c99508
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kamailio/kamailio51_dsiprouter.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1746,6 +1746,21 @@ onreply_route[MANAGE_REPLY] {
route(NATMANAGE);
}
}

if (status=="100" && allow_source_address(FLT_PBX)) {

# Increase the lifetime of the current INVITE by two times the pbx_invite_timeout
# if the PBX returns 100 trying or 180 ringing. This means that the PBX is at least trying to
# establish the call. So, we will extend the timeout by two.

$var(pbx_invite_timeout) = (int)$sel(cfg_get.server.pbx_invite_timeout);
t_set_max_lifetime($var(pbx_invite_timeout)*2, 0);
xlog("L_DBG","[MANAGE_REPLY"]: ***Increasing timeout by 2***");
}
}
# Manage failure routing cases
Expand Down

0 comments on commit 7c99508

Please sign in to comment.