Skip to content

murugancmi/click2call

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Telecm: Click2Call API

Telecmi provides a complete, configurable, and easy-to-use Click2Call API which built on top of WebRTC.

Setup

Include the library

<script src="https://app.telecmi.com/1.0/telecmi-sdk.min.js"></script>

Create Telecmi Object
Following syntax used to initialize telecmi object

var telecmi = new Telecmi(); 

ContactHUB cloud connections

Connect

Using this syntax you can connect to contacthub cloud

telecmi.startCHUB()
//It will connect you to contacthub cloud

Click2Call cloud connections

Connect

Using this syntax you can connect to click2call cloud

telecmi.startC2C()
//It will connect you to contacthub cloud

Internet calls

Call

Using this syntax you can make outbound calls to your application

  telecmi.call('your internetno');
  //Inetnetno is nothing but your APP ID

Hangup

Using this syntax you can hangup your call

  telecmi.hangup();
  //Its hangup your call

Mute/Unmute

Using this syntax you can mute and unmute your mic

  telecmi.mic();
  //When you call this method first time it will mute mic ,if you call second timr it will unmute you mmic

DTMF

Using this syntax you can send dtmf tone to your Application

  telecmi.key('1');
  //You can pass dtmf tone to your contacthub/click2call APP,DTMF only used to connect with ivr

Logout

Using this syntax you can logout from session

  telecmi.logout();

Status

Using this callback you can get all the event in your call.

  telecmi.onStatus=function(data){
  //Data is JSON it contain event and status
  };

About

TeleCMI Provides a complete Set of API for click2call . By using this API, develop a custom applications as desired.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published