Pages Menu
TwitterRssFacebook

Posted by on Jun 9, 2015 in Skype for Business® (Lync®) | 1 comment

Learn Skype Web SDK Day 29 : Joining a Conference Anonymously

Learn Skype Web SDK Day 29 : Joining a Conference Anonymously

This is one post in a series of more than 30, devoted to helping you get up to speed quickly with the new Skype Web SDK. Each lesson comes with source code (in GitHub) and a working demo page so you can see what it does. Check out the full list of posts on the Skype Web SDK page.


View Demo

It’s all very well that you can log in as a Skype for Business user using the Skype Web API, and for lots of scenarios that makes sense. However for a lot of people the Skype Web API is exciting because it enables your customers who don’t have Skype for Business to communicate with you online.

The tricky problem here has always been that customers don’t have Skype for Business accounts in your company. The traditional workaround is the Web Access portal, which allows people without credentials to join meetings anonymously:

5d6f39bc-9273-46c6-aa9b-4df39e2073dc

This functionality is also possible in Skype Web API. You can “sign in” as an anonymous user, simply by providing a display name and the URI of the conference you wish to join. So, the traditional SignIn method, which usually takes as its parameters username and password, instead takes just ‘name’ and ‘meeting’ parameters:

[code language=”javascript”]
var client;
//instantiate client object using Skype4B Bootstrapper
client.signInManager.signIn({
name: $(‘#displayName’).val(),
meeting: $(‘#meetingURI’).val()
}).then(function () {
//log in worked!
alert(‘Logged in!’);
}, function (error) {
//Something went wrong.
alert(error);
});
[/code]

The Conference URI which you pass must be the actual Conference SIP address, in the format: sip:[email protected];gruu;opaque=app:conf:focus:id:Q740UACR

The sign in process is exactly the same, and returns a promise on succeessful signin (or unsuccesful error).

Once you’ve signed in, you won’t be joined into the meeting automatically. You still need to join the meeting exactly the same as if you’d signed in as a regular user.

In the example code you can join a meeting anonymously and send messages. You should use this with the previous blog post on creating a conference so that you can set up a conference and know the conference URI. Here’s what I do:

– Create a conference, inviting two users using the Skype for Business client.
– Open the participant list in Skype for Business client, verify there are 3 users.
– In a new browser window, join the conference anonymously.
– In the Skype for Business client, verify that a new Guest user has joined.

[code language=”javascript”]


Conversation State:




    [/code]

    Demo Online

    You can try this code out against your own Skype for Business environment by going to the demo page. From here you can also download the code from GitHub if you want to host it locally, or take it and use it in your next project.

    Disclaimer: This is sample code, intended to inform and educate. It is not production-ready and is lacking key components such as error handling. You use it entirely at your own risk. You should fully understand the effects, limitations and risks of the code before executing, and understand the implications of any set-up steps. By using these code examples you are using the Skype Web SDK, so you should read the Skype Software License Terms to which you are agreeing.

    Good to Know

    1 Comment

    Post a Reply

    Your email address will not be published. Required fields are marked *

    This site uses cookies to help make this website better. By continuing to use this site we’ll assume you’re OK with that (implied consent).