Skip to content

Commit

Permalink
etc/kamailio.cfg: do not relay to foreign network if auth is not enabled
Browse files Browse the repository at this point in the history
- anyone can use a local account and flood external systems

(cherry picked from commit 41f41d6)
  • Loading branch information
miconda committed Apr 22, 2018
1 parent 95db716 commit 3e7d1a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etc/kamailio.cfg
Expand Up @@ -750,6 +750,14 @@ route[AUTH] {
exit;
}

#!else

# authentication not enabled - do not relay at all to foreign networks
if(uri!=myself) {
sl_send_reply("403","Not relaying");
exit;
}

#!endif
return;
}
Expand Down

0 comments on commit 3e7d1a9

Please sign in to comment.