<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Thank you, this worked.<br><br><div>> From: peter.olsson@visionutveckling.se<br>> To: freeswitch-users@lists.freeswitch.org<br>> Date: Wed, 19 Oct 2011 19:26:07 +0200<br>> Subject: Re: [Freeswitch-users] Running FreeSwitch as Windows Service<br>> <br>> Remove the service again, and the execute FreeSwitchConsole.exe -install. And try again<br>> <br>> /Peter<br>> <br>> ----- Reply message -----<br>> Från: "Adelia C." <hexade@hotmail.com><br>> Datum: ons, okt 19, 2011 18:49<br>> Rubrik: [Freeswitch-users] Running FreeSwitch as Windows Service<br>> Till: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org><br>> <br>> Hello,<br>> <br>> I am building FreeSwitch through VS 2010 (not VC++ Express) and I generate FreeSwitchConsole.exe as a console application. No FreeSwitch.exe is generated.<br>> <br>> FreeSwitchConsole runs fine as an application but I need to run the SW as a service.<br>> <br>> I installed Freeswitch as a local service that calls FreeSwitchConsole.exe, and this is the output of "sc qc FreeSWITCH":<br>> <br>> C:\FreeSWITCH>sc qc FreeSWITCH<br>> [SC] QueryServiceConfig SUCCESS<br>> <br>> SERVICE_NAME: FreeSWITCH<br>> TYPE : 10 WIN32_OWN_PROCESS<br>> START_TYPE : 2 AUTO_START<br>> ERROR_CONTROL : 1 NORMAL<br>> BINARY_PATH_NAME : C:\FreeSWITCH\FreeSwitchConsole.exe<br>> LOAD_ORDER_GROUP :<br>> TAG : 0<br>> DISPLAY_NAME : FreeSWITCH<br>> DEPENDENCIES :<br>> SERVICE_START_NAME : LocalSystem<br>> <br>> <br>> Trying to start FreeSwitch as a service results in Error 1053 Timeout - Event Viewer is : Timeout (30000 milliseconds) waiting for the FreeSWITCH service to connect.<br>> <br>> Or:<br>> C:\FreeSWITCH>net start freeswitch<br>> The service is not responding to the control function.<br>> <br>> Is it because I am trying to start a console application as a service?<br>> <br>> Do I need to have a FreeSwitch.exe and if so, how do I build it? Do I need to create a Windows Service wrapper project?<br>> <br>> I tried using winserv (supposed to start console apps as service), with same result:<br>> C:\FreeSWITCH>..\tools\winserv\winserv start FreeSwitch<br>> ERROR 1053: The service did not respond to the start or control request in a timely fashion.<br>> <br>> What am I missing?<br>> <br>> Thank you.<br>> A.C.<br>> !DSPAM:4e9efdb732761275568181!<br>> <br>> <br>> FreeSWITCH-users mailing list<br>> FreeSWITCH-users@lists.freeswitch.org<br>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>> http://www.freeswitch.org<br></div>                                            </div></body>
</html>