npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

telecmi-agent-livefeed

v1.3.0

Published

TeleCMI agent live call feed javascript sdk for browser and NodeJS

Downloads

9

Readme

TeleCMI Agent Call Feed

Javascript agent live call feed SDK for india Virtual number and toll free number from TeleCMI cloud platform.

Documents

Install

npm

npm install telecmi-agent-livefeed

yarn

yarn add telecmi-agent-livefeed

Add to your page

<script src="dist/telecmi-agent-livefeed.min.js"></script>

Get Started

Create Telecmi Object

var telecmi = new TeleCMI(); 

Method

Register Using our Agent Login API you can get agent token. Using agent token you can create live call feed connection using following method.

telecmi.start('token')

Connect Callback

onConnect This callback will trigger once live call feed connection will try to establish with our TeleCMI platform.

Connect .

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

Example

  telecmi.onConnect=function(data){
  if(data.status=='connected'){
   //Live call feed ready start subscribe 
       telecmi.subscribeCalls();
     }else if(data.status=='error')
     {
        // Invalid token please check your token
     }
 };

List of response

Status | Description |:-------------:|:-------------:| connected | Live call feed connection established | error | Invalid token need to check token |

Set Agent status

Online

Make agent status online

  telecmi.setOnline();

Break

Make agent status break/Away

  telecmi.setBreak();

Dialer

Make agent status dialer

  telecmi.setDialer();

Subscribe

Call Events Subscribe incomming calls live feed

  telecmi.subscribeCalls();

Call Back .

  telecmi.onCalls=function(data){
  //Data is JSON it contain customer number,group id,time and call uuid
  };

Example

  telecmi.onCalls=function(data){
   console.log(data.from) //customer number
   console.log(data.agent) //Agent Id
   console.log(data.time) //Incomming call time
   console.log(data.status) // incomming call status is it answered or still ringing
 };

List of Response

| action | agent | group | from | id | inetno | leguid | name | uuid | state | |-------------------------------------------------------------------------------------------------------------------------------- |---------- |------------------------ |----------------- |----------- |------------- |----------------------- |---------------------------- |----------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | It's define channel property "ch-c" = channel create ."ch-s" = channel state change like early,answer. "ch-d" = channel deleted | Agent id | Call receiving team id | customer number | record is | Your app id | customer channel uuid | customer name if you saved | agent call uuid | call status is it answered or ringing 'early' = Call ringing to agent 'answer' = Call answered by agent 'bridged' = Call established between customer and agent 'hangup' = Call disconnected |