AstCall
Originate calls using Asterisk Manager Interface.
Installation
Run:
$ gem install ast_call
Usage
Configure ast_call
in one of the following files (only the first one found is read):
$HOME/.config/ast-call/config.yml
/usr/local/etc/ast-call.yml
/etc/ast-call.yml
Use the following snippet as a starter:
manager:
host: 127.0.0.1
port: 5038
login:
username: john
secret: password
originate:
channel: SIP/100
context: internal
priority: 1
callerid: ast-call
Originating calls is now as easy as:
$ ast-call '*1'
Browser Integration
Register the tel:
protocol by creating a Desktop Entry Specification file (e.g. /usr/share/applications/ast-call.desktop
) containing:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/usr/local/bin/ast-call %u
Name=Call
Name[fr]=Appeler
Comment=Call people
Comment[fr]=Passer des appels téléphoniques
Categories=Application;Network;
MimeType=x-scheme-handler/tel;
Then run update-desktop-database
.
Contributing
- Fork it ( https://github.com/sante-link/ast_call/fork )
- 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 a new Pull Request