Opensips-Pi-REST
A Restful API to expose Opensips::Pi provisioning services to the web.
Installation
$ gem install opensips-pi-rest
Usage
$ opensips-pi-rest start|stop
Configuration
To configure the opensips-pi gem and customize bin path and/or logger impl, just create a ruby script as follows:
Opensips::Pi.bin = "PATH/TO/opensipsctl"
Opensips::Pi.logger = ACustomLogger.class
Then, you should run opensips-pi-rest binary with a environment variable as follows:
$ CONFIG=path/to/custom_config.rb opensips-pi-rest start
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
This project is released under the MIT License. See LICENSE.txt for more information.