diff options
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r-- | addons/chan_ooh323.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index ebdbfa17c..59fc0bcd7 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -2571,12 +2571,27 @@ static struct ooh323_peer *build_peer(const char *name, struct ast_variable *v, static int ooh323_do_reload(void) { + extern OOH323EndPoint gH323ep; + if (gH323Debug) { ast_verb(0, "--- ooh323_do_reload\n"); } + /* Gatekeeper */ + if (gH323ep.gkClient) { + ooGkClientDestroy(); + } + reload_config(1); + /* Gatekeeper */ + if (gRasGkMode == RasUseSpecificGatekeeper || + gRasGkMode == RasDiscoverGatekeeper) { + ooGkClientInit(gRasGkMode, (gRasGkMode == RasUseSpecificGatekeeper) ? + gGatekeeper : 0, 0); + ooGkClientStart(gH323ep.gkClient); + } + if (gH323Debug) { ast_verb(0, "+++ ooh323_do_reload\n"); } |