Jon Farmer
Jon Farmer

Reputation: 326

C# call a Tel: or Call: URI

I have an application on my PC that responds to Tel: and Call URI calls.

How do I make such a call from a C# application.

All the searching I have done has failed to provide an answer.

Upvotes: 1

Views: 2869

Answers (1)

SDP190
SDP190

Reputation: 336

Try this:

string url = "http://www.google.com";
System.Diagnostics.Process.Start(url);

The above example would start the end users default browser and navigate to google's home page, since the browser is registered to handle the "http" uri-schema, in your case however:

string url = "callto:12345";
System.Diagnostics.Process.Start(url); // should start your app.

the app which is registered (in the client's environment) to handle the "callto" ("tel:","call:", etc.) uri schema, should then take over.

Upvotes: 2

Related Questions