Sankha Sumadhura
Sankha Sumadhura

Reputation: 95

How to use skype API in C# .net web development

I try to make a skype call using SKYPE4COMLib library but its worked only for once

            Call call = skype.PlaceCall(username);
            do
            {
                System.Threading.Thread.Sleep(1);
            } while (call.Status != TCallStatus.clsInProgress);
            call.StartVideoSend();

At the second try id didn't work. And also I try to make a skype call using skype button

<script type="text/javascript" src="https://secure.skypeassets.com/i/scom/js/skype-uri.js"></script>
<div id="SkypeButton_Call_skypename_1">
 <script type="text/javascript">
     Skype.ui({
         "name": "call",
         "element": "SkypeButton_Call_skypename_1",
         "participants": ["skypename"]
     });
 </script>

</div>

It works well.But It opens original skype software and make calls. I need to add a widget into my asp.net MVC web page and then make skype calls within my web page and capture some details(call start time,end time,record call) and store them in my database.Is there any way to do that. I didn't got any valuable solution for this.

Thank You

Upvotes: 4

Views: 4152

Answers (1)

Alexander
Alexander

Reputation: 2477

The Skype URIs do not work "inside" your web application. All they do is call the installed Skype software. Skype cannot do any callbacks to your website, and it is not designed to do so.

Which, in turn, doesn't make this a C# question, but rather a JavaScript issue:

The Skype Web SDK will enable you to do more of what you want, but it is only in "Preview" state and for "Skype for Business".

Upvotes: 2

Related Questions