1.0.22 • Published 4 years ago

altek-call-app v1.0.22

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Foobar

Calling app for altek

Installation

npm install altek-call-app

Usage

import AppCall from "altek-call-app";

const companyName = 'cnu'
const myNumber = '888'

const app = new AppCall() 

Init

app.init(companyName,myNumber)

Calling

const number = '+1 999 999 9999' 
app.call(number)

Decline

app.decline()

Pressing a button on the dial

app.sendDigits(number)

Mute microphone

app.mute(true)            // disable microphone
app.mute(false)           // enable microphone
app.mute(!app.isMuted())

Microphone status

 app.isMuted()

Handlers

setIsConnect        // Toggles connection states
connectHandler      // Calls a function when connected to a call
disconnectHandler   // Calls a function when disconnected
incomingHandler     // Calls a function on an incoming call     => From
acceptHandler       // Calls a function when accepted call      => From
callingHandler      // Calls a function when outgoing call      => To
missedCallHandler   // Calls the function if you missed a call  => From

const incomingHandler = (From) => {
 console.log(From)
}

const app = new AppCall({incomingHandler})
1.0.19

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago