summaryrefslogtreecommitdiff
path: root/main/udptl.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-03-26 18:39:06 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-03-26 18:39:06 +0000
commitef4eff9a9bcce416c25c089c4f86fd0b78d79028 (patch)
treee3b98ea87c1f245716b009b4b7173c660297f04e /main/udptl.c
parentcaf7b47b69d29e669aca53634bbcfbf74d23de1d (diff)
Add the "config reload <conffile>" command, which allows you to tell Asterisk
to reload any file that references a given configuration file. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@111012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/udptl.c')
-rw-r--r--main/udptl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/udptl.c b/main/udptl.c
index 2f0e1fb97..7dea4d89f 100644
--- a/main/udptl.c
+++ b/main/udptl.c
@@ -1224,7 +1224,7 @@ static void __ast_udptl_reload(int reload)
const char *s;
struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
- if ((cfg = ast_config_load("udptl.conf", config_flags)) == CONFIG_STATUS_FILEUNCHANGED)
+ if ((cfg = ast_config_load2("udptl.conf", "udptl", config_flags)) == CONFIG_STATUS_FILEUNCHANGED)
return;
udptlstart = 4500;
@@ -1297,9 +1297,10 @@ static void __ast_udptl_reload(int reload)
ast_verb(2, "UDPTL allocating from port range %d -> %d\n", udptlstart, udptlend);
}
-void ast_udptl_reload(void)
+int ast_udptl_reload(void)
{
__ast_udptl_reload(1);
+ return 0;
}
void ast_udptl_init(void)