Skip to content

Commit

Permalink
PBX INVITE TIMER
Browse files Browse the repository at this point in the history
- Changed the logic so that INVITE messages from PBX's that receive a SIP 100 message will be assigned a different INVITE timer timeout - Fixes #195
  • Loading branch information
mackhendricks committed Aug 1, 2019
1 parent 7c99508 commit 91b0844
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions kamailio/kamailio51_dsiprouter.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ server.pbx_max_local_digits = 5 desc "Maximum digits for local pbx extensions"
server.lcr_min_prefix_digits = 3 desc "Minimum digits for LCR prefix matching"
# PBX INVITE Timeout (msecs) to support having a Primary and Secondary PBX
server.pbx_invite_timeout = 32000 desc "PBX INVITE timeout to support having a Primary and Secondary PBX"
server.pbx_invite_timeout = 32000 desc "The default PBX INVITE timeout"
# PBX INVITE Timeout (msecs) if a SIP 100 message is received
server.pbx_invite_timeout_aftertry = 52000 desc "PBX INVITE timeout value if a SIP 100 message is received"
####### Modules Section ########
Expand Down Expand Up @@ -1753,9 +1756,9 @@ onreply_route[MANAGE_REPLY] {
# 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***");
$var(pbx_invite_timeout) = (int)$sel(cfg_get.server.pbx_invite_timeout_aftertry);
t_set_max_lifetime($var(pbx_invite_timeout), 0);
xlog("L_DBG","[MANAGE_REPLY]: ***Setting the Invite Timeout if a SIP 100 Trying is received***");


}
Expand Down

0 comments on commit 91b0844

Please sign in to comment.