Sometimes you just don’t need Complex. Skype Dialing

All I wanted to do was send a string to Skype and have it dial a phone number.

Search engines continuously gave me 500 lines of code solutions, mostly made by someone called Overlord where the comments about how you shouldn’t use his code was 4 to 5 times as long as the actual code itself.

SkypeForComLib
Skype Kit
C#
Dial a telephone number.

This is a very simple solution that gets rid of the prefix ([Skype:]) problems as well.

No this would not be a good enterprise solution, but for just dialing a telephone number from any app using your Skype account it does what others seem to require 100’s of lines of code to do.

public static void MakeUSSkypeCall(string areaCodePlusNumber)
{
var skypeUri = String.Format(“skype:+1{0}?call”, areaCodePlusNumber);
Process.Start(“”C:\Program Files (x86)\Internet Explorer\iexplore.exe””, skypeUri);

}

Share on Facebook

Leave a Reply

Your email address will not be published.