Hang up a call with Skype and ActiveS in C# / Visual Basic .NET ActiveX

Hang up an incomming, outgoing or onging Skype call with ActiveS - with code example

Description of the problem: hang up a call with Skype

If you're using ActiveS to control Skype, it's easy. If not, you should check if you can migrate to ActiveS - which is really recommended!

Solution - hang up the call

Assuming that the current Call object is called call, you can hang up a call with just changing the status to prgFinished.

call.Status = SKYPEAPILib.SkypeCallProgress.prgFinished;

You can get this Call object with placing an outgoing call (AccessClass.PlaceCall(string username)), taking a call for a call id (AccessClass.GetCall(int callId)) or walking through the list of calls (AccessClass.GetCallList(), returns a list of Call objects).

See also register incomming Skype calls with ActiveS in C#

Google Adsense