1

I got the following code to create a button on my webpage to start a Skypecall:

<!DOCTYPE html>
<html>
<script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script>
<div id="SkypeButton_Call_dhruv_1">
    <script type="text/javascript">
        Skype.ui({
          "name": "call",
          "element": "SkypeButton_Call_dhruv_1",
          "participants": ["echo123"],
          "imageSize": 32
        });
      </script>
</div>
</html>

Every time I click the button an error message appears which forwards to the skype download page. Error message:

enter image description here

I've installed the latest version of Skype for Business.

How do I get this to work with Skype for Business?

mabu
  • 286
  • 8
  • 26
  • 1
    I wouldn't be surprised if the Skype URIs don't work with the business version - it's really just a rebadged Lync. – Joe Clay Oct 27 '16 at 09:27
  • 1
    In fact yep - here's the ones you should be using: http://stackoverflow.com/questions/33542036/skype-for-business-uri-instead-of-skype – Joe Clay Oct 27 '16 at 09:30
  • @JoeClay does that also work with call id's / phone numbers? Example: +410123456789 – mabu Oct 27 '16 at 13:23
  • I solved this myself. See my answer bellow. – mabu Nov 21 '16 at 10:11
  • 1
    Nice one! Hopefully that answer will help anyone who runs into the same problem you did. – Joe Clay Nov 21 '16 at 10:17

1 Answers1

1

I tried some stuff. The best way would be what Joe Clay commented above. But I still got the problem that I couldn't make calls to classical phone numbers like +0123456789.

After some research I found out that I simply could use tel:.

<a href="tel:+0123456789">Call</a>

This makes Skype4Business to ask if you want to call the given number. Notice that Skype for Business must be your default application to deal with tel: links. You can change that by searching for "default programs" on your computer.

I hope this also helps some other people.

mabu
  • 286
  • 8
  • 26