Fred
Fred

Reputation: 1234

call a number using skype in a webpage

I am trying to add a link or button to the webpage so that the user can call a number directly if the skype is installed. it seems the link is like

skyp:....?call....

but cannot find any sample or documents. thanks for your help.

Upvotes: 10

Views: 31049

Answers (6)

Juan
Juan

Reputation: 1382

This has change, now you have to create a javascript function to create a button in order to make a call from the browser.

You can have a function like this and send the number you want to call.

You will need the js url from skype for this to work. Please visit skype sdk documentation for this url, this can change.

 function CreateSkypeButton(id, number) {

            Skype.ui({
                name: "call",
                element: "call_",
                participants: ["+1" + number],
                imageSize: 24,
                imageColor: "blue"
            });

        }

Upvotes: 1

Gerald Combs
Gerald Combs

Reputation: 1412

Skype has a description of their URIs on their developer site:

http://dev.skype.com/skype-uri

How well these work is entirely up to your browser and OS.

Upvotes: 8

vmarquez
vmarquez

Reputation: 1377

This is the format for the link:

<a href="skype:echo123?call">Click</a> (make a call to echo123)

It will work provided the visitor have Skype installed.

You can find all the options and an alternative javascript to redirect the user to download skype is he/she does not have Skype installed.

http://dev.skype.com/skype-uri

Upvotes: 10

Haider Abbas
Haider Abbas

Reputation: 133

<a href="skype:+CountryCodePhoneNumber?call">Click</a> 

(make a call to any PHONE NUMBER)

Please note that the Country Code is required. Without it call option will not show. If your database has numbers without country code, you can add the country code as +1 in your script. Skype will then give you the option to change country code before calling so you can change to required country if need be.

Upvotes: 7

Sascha
Sascha

Reputation: 10347

Skype is a client program. You may have two options: Write an url handler that calls Skype and use that url. Somewhat like my-skype://.

There's a plugin (at least for IE) too. You would need to make sure, your numbers are recognizable (in the correct format).

Upvotes: 1

Shoban
Shoban

Reputation: 23016

If Skype and its web toolbar is installed it automatically detects phone numbers in web pages and adds a menu to near the phone number. So I dont think you should do anything do enable it in your web page.

Upvotes: 0

Related Questions