summaryrefslogtreecommitdiff
path: root/channels/chan_h323.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_h323.c')
-rw-r--r--channels/chan_h323.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index 6da113ddb..a1dd3723a 100644
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -2831,6 +2831,12 @@ static int reload_config(int is_reload)
ucfg = ast_config_load("users.conf", config_flags);
}
+ if (is_reload) {
+ delete_users();
+ delete_aliases();
+ prune_peers();
+ }
+
/* fire up the H.323 Endpoint */
if (!h323_end_point_exist()) {
h323_end_point_create();
@@ -3085,9 +3091,6 @@ static int h323_reload(int fd, int argc, char *argv[])
static int h323_do_reload(void)
{
- delete_users();
- delete_aliases();
- prune_peers();
reload_config(1);
return 0;
}