>>I have been Googling this for a week now and have yet to find an example of how to place a Skype call using C#. Does anyone have an experience with this?
>
>Haven't downloaded it but did you see this :http://www.codeproject.com/KB/cs/skypecontrolapicsharp.aspx
Yes, I already looked at it. It uses Windows Messaging. There is a COM wrapper produced by Skype called Skype4COM that I have. So far I have this:
public class SkypeAPI
{
public void MakeCall()
{
SKYPE4COMLib.Skype skype = new SKYPE4COMLib.Skype();
if(! skype.Client.IsRunning)
{
skype.Client.Start(false, true);
}
skype.Attach(7, true);
Call call = null;
try
{
call = skype.PlaceCall("Office", null, null, null);
}
catch(Exception e)
{
throw e;
}
string CallFailureReason = skype.Convert.CallFailureReasonToText(call.FailureReason);
MessageBox.Show(CallFailureReason);
if (call.Status != TCallStatus.clsFailed)
{
call.Finish();
}
}
}
CallFailureReason is coming back as "User is offline" or "Misc error". There is very little documentation that I can find, so I'm sort of stuck here.
There are some C# examples here,
https://developer.skype.com/Docs/Skype4COM/Example, but none that place a call.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people