Something went wrong. Try again.
Use a Magicjack adapter as an Asterisk endpoint
Something went wrong. Try again.
Files
- Python 100%
README.md
magicjack-asterisk #
This is a script that glues a Magicjack VOIP adapter into an Asterisk stack. It has only been tested with the original Magicjack, with USB ID 06e6:c200.
Installation #
Clone the repo, pip install it. Optionally put 99-magicjack.rules in /etc/udev/rules.d and
sudo udevadm control --reload-rules
sudo udevadm trigger
to make the USB devices accessible to members of the audio group rather than having to run as root. Modify config.ini as necessary and place in either $XDG_CONFIG_HOME/magicjack-asterisk/config.ini or /etc/magicjack-asterisk/config.ini.
Asterisk configuration #
Something like the following config is required, but update ports yourself.
ari.conf #
enabled = yes
[magicjack]
type = user
read_only = no
password_format = crypt
password = $6$something
http.conf #
enabled = yes
bindaddr = 127.0.0.1
bindport = 8088
websocket_client.conf #
[magicjack]
type=client
uri=ws://127.0.0.1:8089
extensions.conf #
You'll need to define an extension with something like:
exten => 6002,1,NoOp(Calling MagicJack on 6002)
same => n,Stasis(magicjack)
same => n,Hangup()