From 1e969376b36e6669d160e336c18db06bf53fa68a Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 21 Jul 2008 05:05:36 +0000 Subject: [PATCH] fix windows running as a service (FSCORE-159) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9115 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch.c b/src/switch.c index 6109fa0ab4..9a6f8cfa84 100644 --- a/src/switch.c +++ b/src/switch.c @@ -179,6 +179,8 @@ void WINAPI service_main(DWORD numArgs, char **args) /* update the service status */ SetServiceStatus(hStatus, &status); + switch_core_set_globals(); + /* attempt to initialize freeswitch and load modules */ if (switch_core_init_and_modload(flags, SWITCH_FALSE, &err) != SWITCH_STATUS_SUCCESS) { /* freeswitch did not start sucessfully */