<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'>
<font style="font-size: 16pt;" face="Garamond" size="4">Hello,</font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4">I am building FreeSwitch through VS 2010 (not VC++ Express) and I generate FreeSwitchConsole.exe as a console application. No FreeSwitch.exe is generated.</font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4">FreeSwitchConsole runs fine as an application but I need to run the SW as a service.</font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4">I installed Freeswitch as a local service that calls FreeSwitchConsole.exe, and this is the output of "sc qc FreeSWITCH":</font><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><font style="font-size: 16pt;" face="Garamond" size="4">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.</font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4">Or: </font><br>C:\FreeSWITCH>net start freeswitch<br>The service is not responding to the control function.<br><br><font style="font-size: 16pt;" face="Garamond" size="4">Is it because I am trying to start a console application as a service? </font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4">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?</font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4">I tried using winserv (supposed to start console apps as service), with same result:</font><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><font style="font-size: 16pt;" face="Garamond" size="4">What am I missing?</font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4">Thank you.</font><font style="font-size: 16pt;" face="Garamond" size="4"><br></font><font style="font-size: 16pt;" face="Garamond" size="4">A.C.</font><br>                                            </div></body>
</html>