1.0.7 • Published 8 years ago

phoneserve v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

phoneserve

easy API implementation for sipgate.io (not official), TypeScript ready

note: this package is at a very early stage, expect this to be beta 2016-06-15

The intention of this package is to easify usage of the awesome sipgate.io API for nodejs.

Status

npm version

Where does this package belong in your IT chain?

You should use this package as required package in your own telephony node package.

Currently supported providers:

  • sipgate.io

SSL

If you want to use SSL don't do it with nodejs, but use nginx with docker for it.

Usage

This package can handle multiple sipgate instances. We highly recommend the use of TypeScript since it supports TpyeScript intellisense.

Terminology:

  • Instance Class: An instance is the main class of phoneserve. You can have multiple instances for different for providers.
  • Destination Class An instance consumes a destination. The destination class is extended by:
    • Voiceapp Class A voiceapp routes between multiple destinaion by evaluating user key input. Later on this may be extended with Speechrecognition.
    • Voicebox Class A voicebox takes a call plays a greeting and then records the call.
    • Rule Class A rule routes between different destinations by running a evaluator function that returns a destination.
    • Group Class A group routes calls to multiple persons (Implementation is not yet finished) and then (if noone picks up) routes it to another destination if noone picks up;
    • Person Class A person is a person. what more to say... can have multiple lines.

In other words a call can hop along from destination to destination as long as the call is active.

import * as phoneserve from "phoneserve";

The key to this package are rules. You can define them programmatically.

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago