Skip to content

Commit

Permalink
fix inverted logic for pusher timeouts
Browse files Browse the repository at this point in the history
(cherry picked from commit 45f788a)
  • Loading branch information
lazedo committed Nov 25, 2024
1 parent c093589 commit 40b3b16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kamailio/pusher-role.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ route[PUSHER_SETUP_TIMERS]
$xavp(push_timers[0]=>t2) = $(sel(cfg_get.kazoo.pusher_push_no_response_timer){s.int});
$xavp(push_timers[0]=>t3) = $(sel(cfg_get.kazoo.pusher_invite_no_response_timer){s.int});

if ($hdr(X-KAZOO-PUSHER-Initial-Invite-Timeout) == $null) {
if ($hdr(X-KAZOO-PUSHER-Initial-Invite-Timeout) != $null) {
$xavp(push_timers[0]=>t1) = $(hdr(X-KAZOO-PUSHER-Initial-Invite-Timeout){s.int});
}

if ($hdr(X-KAZOO-PUSHER-Push-Timeout) == $null) {
if ($hdr(X-KAZOO-PUSHER-Push-Timeout) != $null) {
$xavp(push_timers[0]=>t2) = $(hdr(X-KAZOO-PUSHER-Push-Timeout){s.int});
}

if ($hdr(X-KAZOO-PUSHER-Invite-Timeout) == $null) {
if ($hdr(X-KAZOO-PUSHER-Invite-Timeout) != $null) {
$xavp(push_timers[0]=>t3) = $(hdr(X-KAZOO-PUSHER-Invite-Timeout){s.int});
}

Expand Down

0 comments on commit 40b3b16

Please sign in to comment.