call a number using skype in a webpage
Asked Answered
G

6

10

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.

Gird answered 24/3, 2009 at 19:13 Comment(0)
M
8

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.

Mallemuck answered 24/3, 2009 at 19:23 Comment(1)
I think the URL has changed since MS took over. msdn.microsoft.com/en-us/library/office/…Ijssel
B
10

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

Barber answered 24/3, 2009 at 19:24 Comment(3)
i think the URL has changed since MS took over. msdn.microsoft.com/en-us/library/office/…Ijssel
I just tried this method and it worked for me. It wasn't working for me when I was using http:// in front of skypeRaja
Very useful answer, and @Ijssel , TX for the link correction.. it will help a rookie coder (like ME) learn about skype calls from webpage. TYPedanticism
M
8

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.

Mallemuck answered 24/3, 2009 at 19:23 Comment(1)
I think the URL has changed since MS took over. msdn.microsoft.com/en-us/library/office/…Ijssel
T
7
<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.

Touchandgo answered 22/1, 2012 at 17:41 Comment(0)
A
1

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

Awhirl answered 24/3, 2009 at 19:17 Comment(0)
L
1

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

        }
Lunulate answered 5/12, 2013 at 2:49 Comment(0)
B
0

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.

Baluchistan answered 24/3, 2009 at 19:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.