Comments (2)
you can use "BroadcastChannel" here to for this exercise.
some snipped code below:
const channel = new BroadcastChannel('app-data');
channel.addEventListener ('message', (event) => {
if (event.data == "hangup"){
// then call hangup event here;
if ($(".progressCall").is(":visible")){
var reject_func = $(".progressCall .rejectButton").attr('onclick');
// then call reject button here
}
}else{
// call dial event here
}
});
from browser-phone.
Or you can just use the web hooks.
var web_hook_on_invite = function(session){
// console.log("web_hook_on_invite", session);
}
var web_hook_on_modify = function(action, session){
// console.log("web_hook_on_modify", action, session);
}
var web_hook_on_terminate = function(session){
// console.log("web_hook_on_terminate", session);
}
from browser-phone.
Related Issues (20)
- No Voice soon after enabling firewall HOT 4
- Notification
- DTMF code not working HOT 1
- popup.html HOT 7
- Send Failed HOT 2
- Call termination HOT 1
- SSL Error HOT 3
- Only Video Call HOT 1
- Event ID HOT 1
- Softphone with browser phone HOT 3
- Browser Phone HOT 2
- Recorded video
- Image
- turn server HOT 2
- call not landing in browser phone HOT 1
- Ringtone HOT 2
- Not getting video during the 1st call HOT 2
- How to Integrate VoIp with Tragofone Softphone HOT 1
- Blank video HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from browser-phone.