[Freeswitch-users] Running FreeSwitch as Windows Service

Adelia C. hexade at hotmail.com
Fri Oct 21 05:43:16 MSD 2011


Thank you, this worked.

> From: peter.olsson at visionutveckling.se
> To: freeswitch-users at lists.freeswitch.org
> Date: Wed, 19 Oct 2011 19:26:07 +0200
> Subject: Re: [Freeswitch-users] Running FreeSwitch as Windows Service
> 
> Remove the service again, and the execute FreeSwitchConsole.exe -install. And try again
> 
> /Peter
> 
> ----- Reply message -----
> Från: "Adelia C." <hexade at hotmail.com>
> Datum: ons, okt 19, 2011 18:49
> Rubrik: [Freeswitch-users] Running FreeSwitch as Windows Service
> Till: "freeswitch-users at lists.freeswitch.org" <freeswitch-users at lists.freeswitch.org>
> 
> Hello,
> 
> I am building FreeSwitch through VS 2010 (not VC++ Express) and I generate FreeSwitchConsole.exe as a console application. No FreeSwitch.exe is generated.
> 
> FreeSwitchConsole runs fine as an application but I need to run the SW as a service.
> 
> I installed Freeswitch as a local service that calls FreeSwitchConsole.exe, and this is the output of "sc qc FreeSWITCH":
> 
> C:\FreeSWITCH>sc qc FreeSWITCH
> [SC] QueryServiceConfig SUCCESS
> 
> SERVICE_NAME: FreeSWITCH
>         TYPE               : 10  WIN32_OWN_PROCESS
>         START_TYPE         : 2   AUTO_START
>         ERROR_CONTROL      : 1   NORMAL
>         BINARY_PATH_NAME   : C:\FreeSWITCH\FreeSwitchConsole.exe
>         LOAD_ORDER_GROUP   :
>         TAG                : 0
>         DISPLAY_NAME       : FreeSWITCH
>         DEPENDENCIES       :
>         SERVICE_START_NAME : LocalSystem
> 
> 
> 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.
> 
> Or:
> C:\FreeSWITCH>net start freeswitch
> The service is not responding to the control function.
> 
> Is it because I am trying to start a console application as a service?
> 
> 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?
> 
> I tried using winserv (supposed to start console apps as service), with same result:
> C:\FreeSWITCH>..\tools\winserv\winserv start FreeSwitch
> ERROR 1053: The service did not respond to the start or control request in a timely fashion.
> 
> What am I missing?
> 
> Thank you.
> A.C.
> !DSPAM:4e9efdb732761275568181!
> 
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111020/3246ee59/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list