mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Add support change gatekeeper mode or ip per ooh323 reload command
(issue ASTERISK-19298) Reported by: Dmitry Melekhov Patches: change_gk_on_reload-1.patch (License #5415) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user