473,395 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How can I manage my Voip Phone calls (HangUp) through an API in JavaScript

I would like to connect Softphones with each other.

I would like to check what phone calls are being in progress in the system, more precisely, between the actual phones.
If it is possible, I would like a solution for the case when any of the participants calls the other, I -as a third participant (as an owner)- will receive a notification immediately about the call and its datas.

It would be even better if I had more control in the actions, for example, I would like to interrupt or hang up the call in particular cases.
I found a really good solution for this (http://www.ozekiphone. com/popup-window-during-a-call-1150.html), but I can't step further.
It works until it is written, when I connect two softphones (Bria) to the system, and I call from one of them the other one, then it shows the popup that I have written based on the example.

But how can I solve that, if I want to hang up or interrupt the call, for example, by the action of pressing a button?
Based on the example, I get until this part (The other codes are unvaried in comparison to the downloaded "full example code"). The Popup is shown, but I don't know how could I hang up the call.

Expand|Select|Wrap|Line Numbers
  1.     function showPopUp(caller, callee, direction, state){
  2.         if ($("#NoficationPopup").length > 0){
  3.             /*update the GUI labels*/
  4.         }
  5.         else 
  6.             $('<div id="NoficationPopup" title=\"' + direction + '\">' +
  7.                     '<div align=left>' +
  8.                         '<label id="lbCaller">Caller: '+caller+'</label> <BR />'  +
  9.                         '<label id="lbCallee">Callee: '+callee+'</label> <BR />' +
  10.                         '<label id="lbDirection">Direction: '+direction+'</label> <BR />' +
  11.                         '<label id="lbState">State: '+state+'</label> <BR />' +
  12.                     '</div> ' +
  13.               '</div>')
  14.               .dialog({
  15.                     resizable: false, minWidth: 250, minHeight: 100,
  16.                     /*NEW PART*/
  17.                     buttons: {
  18.                         HangUp: function () {
  19.                             alert("HangUp the line");
  20.                             /*How can I really hung up the line*/
  21.                         }
  22.                     },
  23.                     /*NEW PART END*/
  24.                     close: function () {
  25.                         $(this).dialog("destroy").remove();
  26.                 }});
  27.     }
  28.  
I would be glad to receive any help or idea in connection with this
Oct 22 '13 #1
0 1385

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: andrew | last post by:
Voicent AutoReminder has a simple HTTP interface for making automatic phone calls. This means you can easily write a script or program to integrate your database and a smart autodialer program. ...
0
by: Juan Pedro Gonzalez | last post by:
Hi, Could any one provide some source code, links, or whatever on how I could dial a phone from within .NET (Any lenguage) in order to dial someones phone number and maintain a conversation over...
2
by: Jens | last post by:
Hi! I am looking for some pre-made classes for software VoIP phones, that I can used in my home-software. Can somo one help me? Jens
0
by: teju | last post by:
Hi, Iam writing an application which sends a sms alert and an email whenver the database server is down.Iam successfull in acheiving the output for the above .But now i want to make a phone call...
1
by: jadeite100 | last post by:
Hi: I am using IE 6 SP2. My resize attribute does not work <body onresize="test1();">. When I resize my window, the resize event doesnot get call. I have a jsp page with an iFrame called...
0
by: =?Utf-8?B?Z2xlbmRh?= | last post by:
Please excuse my ignorance, I'm computer illiterate. I'm trying to make calls from my PC using a phone line. I'd like to be able to call my Contacts or Business Contacts from Outlook 2003 and from...
0
by: mdwhite76 | last post by:
I'd like to create an application in C# that does the following: *allows user to call in using a land line *user inputs a series of keys *based on the keys inputted, the application responds...
0
by: Bubbs | last post by:
Hi, I want to develop a java app that can make pc to phone calls. I am aware of the JTAPI and have experience in using jmf. The thing is im not too sure as to how to begin this project. I have a...
3
by: gabielmatos | last post by:
It's possible to connect a phone line to the modem and use these line to make phone calls. I'm using C# on a windows based. advanced thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.