aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgw_nat_usr.erl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-04-14 17:46:53 +0200
committerHarald Welte <laforge@gnumonks.org>2011-04-14 17:46:53 +0200
commit3607d36bd83fa33f3c769e5fd448a9536c6e6b28 (patch)
tree9c932587097e21856b9d24eab3e987ba454aa901 /src/mgw_nat_usr.erl
parent99e92c24265b15e2d09dbd56908ec45e07ca5dc1 (diff)
propagate reload_config() from app to usr to action handler
Diffstat (limited to 'src/mgw_nat_usr.erl')
-rw-r--r--src/mgw_nat_usr.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mgw_nat_usr.erl b/src/mgw_nat_usr.erl
index 8f1f68f..14bcd7c 100644
--- a/src/mgw_nat_usr.erl
+++ b/src/mgw_nat_usr.erl
@@ -23,7 +23,8 @@
-behavior(gen_server).
--export([start_link/1, stop/0, sccp_masq_reset/0, sccp_masq_dump/0]).
+-export([start_link/1, stop/0, sccp_masq_reset/0, sccp_masq_dump/0,
+ reload_config/0]).
-export([init/1, handle_cast/2, handle_info/2, terminate/2]).
@@ -39,6 +40,8 @@ sccp_masq_reset() ->
sccp_masq_dump() ->
gen_server:cast(?MODULE, sccp_masq_dump).
+reload_config() ->
+ gen_server:cast(?MODULE, reload_config).
%% Callback functions of the OTP behavior