Return to LanScape's home page Go back a page...       Active TopicsActive Topics   Display List of Forum MembersMember List   Knowledge Base SearchSearch   HelpHelp  RegisterRegister  LoginLogin

SIP Proxy and Media Proxy - Technical Support
 LanScape Support Forum -> SIP Proxy and Media Proxy - Technical Support
Subject Topic: Running as a Service Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
nshoe18
Intermediate
Intermediate


Joined: May 01 2007
Location: United States
Posts: 15
Posted: May 09 2007 at 6:11pm | IP Logged Quote nshoe18

We have purchased Proxy Server Professional and I am trying to figure out how to set it up as a Service instead of just running as an app as it closes when you logoff of the server. Any direction would be great. Thank you.
Back to Top View nshoe18's Profile Search for other posts by nshoe18
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 09 2007 at 6:41pm | IP Logged Quote support

Hi nshoe18,

Take a look at the help file for the proxy. Look for the "Running the Centrex Proxy Server as a service" section. it will give you an example of how to do this.

Note: To run the SIP and media proxies as a service, you will need the Service Manager Tools located here:

LanScape Service Manager™ Suite

Here is the on-line help file for the service tools that explains it in more detail:

Configuring a process to run as a service


Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
nshoe18
Intermediate
Intermediate


Joined: May 01 2007
Location: United States
Posts: 15
Posted: May 14 2007 at 1:17pm | IP Logged Quote nshoe18

Ok. We purchased the Service Manager and I think I configured everything properly, but when the service manager is running I do not see the proxy server running the application tray nor does it appear to be working properly with our system. If I double click the icon on the desktop for the proxy server all runs as it should. Maybe I am missing something. I have gone through the help file but it seems somewhat generalized.
Back to Top View nshoe18's Profile Search for other posts by nshoe18
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 14 2007 at 5:21pm | IP Logged Quote support

Hi Nik,


<<< You
…when the service manager is running I do not see the proxy server running the application tray…

Support >>>
This is normal. When the proxy runs as a service, the icon in the system tray will not be displayed.


<<< You
…nor does it appear to be working properly with our system.

Support >>>
Then it has to be a configuration issue.


<<< You
If I double click the icon on the desktop for the proxy server all runs as it should.

Support >>>
This is good. You will see why below.


<<< You
I have gone through the help file but it seems somewhat generalized.

Support >>>
Sorry about that. If the documentation needs help, just let us know where it should be improved and we will update it accordingly.


Ok, here are the exact steps I perform when I deploy the Centrex proxy server with the service manager:

1)
Configure the SIP proxy normally using the GUI. Get it configured so it works for your particular deployment.

2)
Save the proxy configuration to an INI file image. We need this when the proxy runs as a service (The proxy will not read its settings from the registry when running as a service). Do this by selecting from the main menu Configure->Backup proxy configuration. A file “save as”” dialog will be displayed so you can save your INI file. A good place to save it to is the same directory that contains the proxy exe program using the name “CentrexProxyService.ini”

3)
Start the service manager console app (LsServiceManagerConsole.exe).

4)
Press the Add button to add the Centrex SIP proxy to the process list.

5)
For the command line, specify the full command line of the proxy along with the –f switch. Something like:
C:\dir where my proxy exe file resides\CentrexProxy.exe -f CentrexProxyService.ini

6)
Let the “working dir” default to whatever it wants. It should be the same as the proxy exe directory.

7)
Check the following:
- Enable this application
- Use named event for process termination
- Restart the application if its process terminates
- Monitor unhandled application exceptions (let all checks in the exception group to their default values)

Optionally check the “Periodically restart this application.

8)
Set these values:

Milliseconds to pause before starting next application = 100
Milliseconds to pause before terminating this application = 10000

9)
Press the OK button.


You should be back at the service manager console main window. Start the service manager service by pressing the “Install Service” button and then the “Start” button.

10)
The service manager service should start. To see if your SIP proxy is running, open task manager (Ctrl + Alt + Del) and then select Alt+T and look for the “CentrexProxy.exe name in the Process tab. You should see it running.

11)
Try to register one of your SIP devices with he proxy.

12)
You should be done.

Repost if you have further problems.


Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
nshoe18
Intermediate
Intermediate


Joined: May 01 2007
Location: United States
Posts: 15
Posted: May 15 2007 at 10:07am | IP Logged Quote nshoe18

I have followed your instructions and when I hit start for the service I do not see the process running and if I look in the log I see the following:
05/15/2007 08:06:58    Starting process "C:\Program Files\LanScape\Centrex Proxy Server Professional\CentrexProxy.exe -f CentrexProxyService.ini -ExitEvent B11CCE76-0D7D-4CEB-AB45-9B835D1A20E0-1701450297 -nogui"
05/15/2007 08:06:59    Process Monitor started.
Back to Top View nshoe18's Profile Search for other posts by nshoe18
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 15 2007 at 10:28am | IP Logged Quote support

Nik,

Your log shows that the CentrexProxy.exe process is running and being monitored for faults. If there was a start error, the log would show it.

When you say “I do not see the process running”, where are you looking?

Run task manager and look for the CentrexProxy.exe process to be running using the “Processes” Tab.

The CentrexProxy.exe process will not be shown in the “Applications” tab.

We would like to get you set up today so let’s keep working.

What Operating system are you using?


Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
nshoe18
Intermediate
Intermediate


Joined: May 01 2007
Location: United States
Posts: 15
Posted: May 16 2007 at 7:22am | IP Logged Quote nshoe18

When I look in Task Manager I do not see the Proxy Server Process running. Also for troubleshooting purposes I check the box to make the UI come up when the service starts and it never oepns. Also, in the log I posted what does the -ExitEvent ..... mean?
Back to Top View nshoe18's Profile Search for other posts by nshoe18
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 16 2007 at 8:11am | IP Logged Quote support

Nik,

We’ve got to be missing something really simple. Setting this up should take 2 minutes.


<<< You
Also for troubleshooting purposes I check the box to make the UI come up when the service starts and it never oepns.

Support >>>
You are correct. If you select the GUI to be displayed for test purposes, it should.


The “–ExitEvent XXX-YYY-ZZZ” command line parameters tells the proxy to monitor a system wide named event. The named event is used so that the service manager service can tell the proxy when to shutdown/terminate. Seeing it on the command line is normal if you enable the “Use named event for process termination” in the service manager process list settings.

Please post the complete log from the service manager to this forum thread. The log file is called “LsServiceManager.log”. There must be something in the log that shows a process start error. We need to see that.

As an alternative, you may want to give us temporary remote access to the machine so that we can configure it from here. We can access your machine using PcAnywhere or RealVNC, your choice.


Support
Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 
nshoe18
Intermediate
Intermediate


Joined: May 01 2007
Location: United States
Posts: 15
Posted: May 16 2007 at 8:46am | IP Logged Quote nshoe18

I am trying to post the log but having some problems.

I will try again. There is an area where it was up and running and then it was restarting a large number of times.
Back to Top View nshoe18's Profile Search for other posts by nshoe18
 
nshoe18
Intermediate
Intermediate


Joined: May 01 2007
Location: United States
Posts: 15
Posted: May 16 2007 at 8:46am | IP Logged Quote nshoe18

05/15/2007 08:19:27    Starting process "C:\Program Files\LanScape\Centrex Proxy Server Professional\CentrexProxy.exe -f CentrexProxyService.ini -ExitEvent 75B33509-653E-42FD-80F5-E7AAD1430D2B-1702199047 -nogui"
05/15/2007 08:19:28    Process Monitor started.
05/15/2007 08:24:24    Process Monitor stopped.
05/15/2007 08:24:24    Stopping process "C:\Program Files\LanScape\Centrex Proxy Server Professional\CentrexProxy.exe -f CentrexProxyService.ini"
05/15/2007 08:24:24    Setting process terminate event 75B33509-653E-42FD-80F5-E7AAD1430D2B-1702199047
05/15/2007 08:24:24    ************* LanScape Service Control Manager Stop (May 15 08:24:24) *************
05/15/2007 08:24:27    ************* LanScape Service Control Manager Start (May 15 08:24:27) *************
05/15/2007 08:24:27    C:\Program Files\LanScape\Service Manager Suite\LsServiceManager.exe
05/15/2007 08:24:27    C:\Program Files\LanScape\Service Manager Suite\LsServiceManager.ini
05/15/2007 08:24:27    C:\Program Files\LanScape\Service Manager Suite\LsServiceManager.log
05/15/2007 08:24:27    Service Name: "LanScape Service Manager"
05/15/2007 08:24:27    Starting process "C:\Program Files\LanScape\Centrex Proxy Server Professional\CentrexProxy.exe -f CentrexProxyService.ini -ExitEvent 8E2C14BE-00D8-43DF-9B7F-8F8C05B9DF02-1702498657 -nogui"
05/15/2007 08:24:27    Process Monitor started.
05/15/2007 08:26:22    Process Monitor stopped.
05/15/2007 08:26:22    Stopping process "C:\Program Files\LanScape\Centrex Proxy Server Professional\CentrexProxy.exe -f CentrexProxyService.ini"
05/15/2007 08:26:22    Setting process terminate event 8E2C14BE-00D8-43DF-9B7F-8F8C05B9DF02-1702498657
05/15/2007 08:26:22    ************* LanScape Service Control Manager Stop (May 15 08:26:22) *************
05/16/2007 05:25:57    ************* LanScape Service Control Manager Start (May 16 05:25:57) *************
05/16/2007 05:25:57    C:\Program Files\LanScape\Service Manager Suite\LsServiceManager.exe
05/16/2007 05:25:57    C:\Program Files\LanScape\Service Manager Suite\LsServiceManager.ini
05/16/2007 05:25:57    C:\Program Files\LanScape\Service Manager Suite\LsServiceManager.log
05/16/2007 05:25:57    Service Name: "LanScape Service Manager"
05/16/2007 05:25:57    Starting process "C:\Program Files\LanScape\Centrex Proxy Server Professional\CentrexProxy.exe -f CentrexProxyService.ini -ExitEvent B4F8F7E3-DFEF-4225-8FE6-3B6FACF3E132-1778187391 -nogui"
05/16/2007 05:25:58    Process Monitor started.
05/16/2007 05:27:08    Process Monitor stopped.
05/16/2007 05:27:08    Stopping process "C:\Program Files\LanScape\Centrex Proxy Server Professional\CentrexProxy.exe -f CentrexProxyService.ini"
05/16/2007 05:27:08    Setting process terminate event B4F8F7E3-DFEF-4225-8FE6-3B6FACF3E132-1778187391
05/16/2007 05:27:08    ************* LanScape Service Control Manager Stop (May 16 05:27:08) *************
05/16/2007 05:27:13    ************* LanScape Service Control Manager Start (May 16 05:27:13) *************
05/16/2007 05:27:13    C:\Program Files\LanScape\Service Manager Suite\LsServiceManager.exe
05/16/2007 05:27:13    C:\Program Files\LanScape\Service Manager Suite\LsServiceManager.ini
05/16/2007 05:27:13    C:\Program Files\LanScape\Service Manager Suite\LsServiceManager.log
05/16/2007 05:27:13    Service Name: "LanScape Service Manager"
05/16/2007 05:27:13    Starting process "C:\Program Files\LanScape\Centrex Proxy Server Professional\CentrexProxy.exe -f CentrexProxyService.ini -ExitEvent 1BCBF61D-A58A-4DEF-AFB1-4979726B39C9-1778263110"
05/16/2007 05:27:14    Process Monitor started.
05/16/2007 05:27:47    Process Monitor stopped.
05/16/2007 05:27:47    Stopping process "C:\Program Files\LanScape\Centrex Proxy Server Professional\CentrexProxy.exe -f CentrexProxyService.ini"
05/16/2007 05:27:47    Setting process terminate event 1BCBF61D-A58A-4DEF-AFB1-4979726B39C9-1778263110
05/16/2007 05:27:47    ************* LanScape Service Control Manager Stop (May 16 05:27:47) *************
Back to Top View nshoe18's Profile Search for other posts by nshoe18
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: May 16 2007 at 9:30am | IP Logged Quote support

Nik,

Your log looks absolutely normal. I assume you stopped the service manager 33 seconds after you started it - right?

Your proxy process must be running.

Support

Back to Top View support's Profile Search for other posts by support Visit support's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum






Contact LanScape Hear what the Lawyers have to say How youm may use this site Read your privacy rights