Help - Search - Members - Calendar
Full Version: Launching calls from a service?
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
ThatRickGuy
Hi Guys,
I'm working on an application that monitors an IVR system's up time. I figured what better solution than sticking Skype on a box with a service that calls into the IVR runs some voice recognition and logs the results. Well, it's all working except for the service part. I can run the application as a windows desktop app and it runs just fine. But if I attempt to run it as a service I get a wait timeout error. The stack points to: SKYPE4COMLib.SkypeClass.get_CurrentUserStatus() but the line that actually threw the error is: If Not oSkype.Client.IsRunning Then oSkype.Client.Start(True, True)

Thoughts?

-Rick
TheUberOverlord
QUOTE(ThatRickGuy @ Thu Jun 14 2007, 16:57) [snapback]406498[/snapback]

Hi Guys,
I'm working on an application that monitors an IVR system's up time. I figured what better solution than sticking Skype on a box with a service that calls into the IVR runs some voice recognition and logs the results. Well, it's all working except for the service part. I can run the application as a windows desktop app and it runs just fine. But if I attempt to run it as a service I get a wait timeout error. The stack points to: SKYPE4COMLib.SkypeClass.get_CurrentUserStatus() but the line that actually threw the error is: If Not oSkype.Client.IsRunning Then oSkype.Client.Start(True, True)

Thoughts?

-Rick


Is BOTH the Skype client and your software running as a windows service?
ThatRickGuy
QUOTE(TheUberOverlord @ Fri Jun 15 2007, 00:06) [snapback]406524[/snapback]

Is BOTH the Skype client and your software running as a windows service?


Interesting, I wasn't aware that there was a service option for Skype, I'll have to run through the install package again and see if I missed that option. Thanks!

-Rick
TheUberOverlord
QUOTE(ThatRickGuy @ Fri Jun 15 2007, 09:21) [snapback]406752[/snapback]

Interesting, I wasn't aware that there was a service option for Skype, I'll have to run through the install package again and see if I missed that option. Thanks!

-Rick


There is not, but...there are ways to make it a service.

More here:

http://testing.onlytherightanswers.com/mod...icle&sid=46

ThatRickGuy
QUOTE(TheUberOverlord @ Fri Jun 15 2007, 17:19) [snapback]406808[/snapback]

There is not, but...there are ways to make it a service.

More here:

http://testing.onlytherightanswers.com/mod...icle&sid=46


Hey thanks! That got Skype up and running as a service, but I am still getting that timeout error. It looks like the code is still trying to create a new client instead of using the one that is already running. Any idea on how to get a reference to the existing client?

-Rick
ThatRickGuy
Bah, simple fix, I forgot to set my service to interact with the desktop. Once I made sure both my service and the Skype service had that option checked, it worked!

Thanks again!

-Rick
TheUberOverlord
QUOTE(ThatRickGuy @ Fri Jun 15 2007, 14:42) [snapback]406878[/snapback]

Bah, simple fix, I forgot to set my service to interact with the desktop. Once I made sure both my service and the Skype service had that option checked, it worked!

Thanks again!

-Rick


;-)

You are very welcome.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.