Skip to content
/ potoo Public

Tool that communicates with VoIP ecosystem and particularly well with Wazo

License

Notifications You must be signed in to change notification settings

benasse/potoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Potoo

What is it ?

Potoo is a special bird that communicates with VoIP ecosystem and particularly well with Wazo.

The main objective of this project is to quickly (and perhaps badly) provide solutions to missing functionalities in a given ecosystem.

Its best documentation is its source code but some example of use could be found bellow.

Install potoo on Wazo engine

  1. apt install -y wazo-plugind-cli
  2. Edit the file /etc/potoo/config.ini with the networks allowed to access to the application, by filling the network_whitelist field.
  3. wazo-plugind-cli -c 'install git https://github.com/benasse/potoo'

By default the service is stopped, it has to be started with systemctl start potoo. It will run for 4 hours and then automatically stop.

Some interfaces

Visualise queue from asterisk cli

http://myhost:8001/queue?queue=myqueue
http://myhost:8001/queue_pretty?queue=myqueue # less information for less technical people
http://myhost:8001/queue

Originate a call with a GET http

http://myhost:8001/originate/v1?dest_exten=1234&dest_context=my-dest-context&src_exten=777&src_context=my-src-context
http://myhost:8001/originate/v1?dest_exten=1234

Sample url

http://myhost:8001/hello_ansible # lanch a example playbook
http://myhost:8001/hello_ansible_form # lanch a exampe playbook loading variable from a form

Update system informations

http://myhost:8001/update_system_info # form that permit to change system informations that are not availiable on admin interfaces

Setup developement environement

  1. apt-get install python3-venv
  2. git clone https://github.com/benasse/potoo.git
  3. cd potoo
  4. python3 -m venv potoo/venv
  5. source potoo/venv/bin/activate
  6. pip install -r requirements.txt
  7. python app.py

Unstall potoo on Wazo engine

wazo-plugind-cli -c 'uninstall sparrow/potoo'

About

Tool that communicates with VoIP ecosystem and particularly well with Wazo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published