The asterisk service contains the PBX software for the notification system.
The notify service dockerize the notification service API, including the REST-API and the asyncronous call driver.
The redis service dockerize the in-memory key-value store that is used by multiple notify agents to keep the track of call statuses.
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
}
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
Content type
Image
Digest
Size
167 MB
Last updated
over 6 years ago
docker pull dorinelfilip/php:batifer