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

micro-app-phone-dialer

v1.0.7

Published

Simple phone-dialer for cisco phones

Downloads

12

Readme

micro-app-phone-dialer

Simple phone dialer for cisco phones

sample phone-dialer page

Usage

After installation modify ../lib/config.json to match your configuration

You need to:

1.Change "your phone IP" to be the IP address of your phone.

2.Add entries in "dialOptions" in order to match the numbers you want to dial

Each entry in dialOption can either be an entry to dial a phone number or an entry to send a key on the phone when the button is pressed. For entries thare are to dial they have the the following fields:

  • title - title that will show up in the button to dial the number
  • line - the line to be used when dialing the number
  • dial - the number that will be dialed (ex 1-555-555-5555)
  • afterdial - the digits that will be send once the number is dialed. Most often you will need a delay before sending the digits. You can add commas and a delay of 1 second will be added for each comma. For example if you need to dial a conference number followed by a moderator pin you could use somethin like ",,,,,1234567#,,,,,,*123456#"

For entries that are to send a key to the phone they have the following fields:

  • title - title that will show up in the button for the key
  • key - name of the key that should be sent to the phone

The list of available keys is as documented in: cisco programming guide

3.Optionally modify serverPort which is the port on which the server for the micro app will be listening

  1. Optionally add "basicAuth": "XXXX"

where XXXX is the encoded basicAuth token that you want to be sent to the phone in an Authorization header. Some phones seem to require this to accept connections.

an example the configuration file that comes with the install is:

#Running

To run the phone-dialer, add node.js to your path (currently requires 4.x or better) and then run:

From the directory in which the micro-app-phone-dialer was installed.

Once the server is started. Point your browser at the host/port for the server. If you have configured your browswer to allow javascript to close the current page the original window will be closed and one with the correct size of the phone-dialer will be created.

To dial any of the configured entries, simply click the button for that entry.

To dial additional digits, type those digits into the input box and hit the SEND button beside the input box.

#Example

The following is the page shown for my configuration:

sample phone-dialer page

Phones tested

  • Cisco SPA504G

#Key Depdencies

micro-app-framework

As a micro-app the phone-dialer depends on the micro-app-framework:

See the documentation on the micro-app-framework for more information on general configurtion options that are availble (ex using tls, authentication, serverPort, etc)

node-cti

Used to send commands to the phone

TODO

  • Add more documentation
  • Better support for multiple lines
  • nicer page layout