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);

}

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: