Sign inSign up

dorinelfilip/php

By dorinelfilip

Updated over 6 years ago

Image
0

172

dorinelfilip/php repository overview

Docker-Builds

Components

asterisk

The asterisk service contains the PBX software for the notification system.

notify

The notify service dockerize the notification service API, including the REST-API and the asyncronous call driver.

redis

The redis service dockerize the in-memory key-value store that is used by multiple notify agents to keep the track of call statuses.

API call examples:

Call origination

The following API call triggers 0371781562 extension to be called (via clickphone SIP peer) and the tt-monkeys sound to be played:

curl --request POST \
  --url http://HOST:PORT/originate \
  --header 'content-type: application/json' \
  --data ' {"extension": "0371781562",
 "file": "tt-monkeys",
	"sip_provider": "clickphone"
 }'

A possible output can be:

{
	"file": "tt-monkeys",
	"id": "9661c3bd-76ab-41cc-82c6-2c8d52cdab64",
	"status": "initiated",
	"status_code": 1,
	"timestamp": 1512100857.165942
}
Call status checking

The API call for checking the status for the call in the previous example should be:

curl --request GET \
  --url http://HOST:PORT/call/9661c3bd-76ab-41cc-82c6-2c8d52cdab64

Tag summary

Content type

Image

Digest

Size

167 MB

Last updated

over 6 years ago

docker pull dorinelfilip/php:batifer