Telecmi provides a complete, configurable, and easy-to-use Click2Call API which built on top of WebRTC.
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();
Connect
Using this syntax you can connect to contacthub cloud
telecmi.startCHUB()
//It will connect you to contacthub cloud
Connect
Using this syntax you can connect to click2call cloud
telecmi.startC2C()
//It will connect you to contacthub cloud
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
};