propagate reload_config() from app to usr to action handler

This commit is contained in:
Harald Welte 2011-04-14 17:46:53 +02:00
parent 99e92c2426
commit 3607d36bd8
2 changed files with 5 additions and 1 deletions

View File

@ -14,4 +14,5 @@ stop(_State) ->
reload_config() ->
osmo_util:reload_config(),
mgw_nat_usr:reload_config(),
map_masq:config_update().

View File

@ -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