Skip to content

Commit

Permalink
ping all subscriptions (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo authored and k-anderson committed Feb 7, 2017
1 parent 1323817 commit 0d4b0c7
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions kamailio/presence-role.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,9 @@ route[PRESENCE_NAT]
{
if (client_nat_test("3")) {
fix_contact();
nat_keepalive();
force_rport();
}
}

route[PRESENCE_CHECK_NAT]
{
#!ifdef REGISTRAR_ROLE
$xavp(regcfg=>match_received) = $su;
xlog("L_INFO", "$ci|check|checking if $fU is registered\n");
if(registered("location", "$rz:$fU", 2, 1)) {
## is registered, keep alive handled in registrar
route(NAT_TEST_AND_CORRECT);
return;
} else {
route(PRESENCE_NAT);
}
#!else
route(PRESENCE_NAT);
#!endif

nat_keepalive();
force_rport();
}

####### Presence Logic ########
Expand All @@ -77,7 +59,7 @@ route[HANDLE_SUBSCRIBE]
if (is_method("SUBSCRIBE")) {

#!ifdef NAT_TRAVERSAL_ROLE
route(PRESENCE_CHECK_NAT);
route(PRESENCE_NAT);
#!endif

if ($tU == $null) {
Expand Down

0 comments on commit 0d4b0c7

Please sign in to comment.