enamchuk That's rock
- First of all find what version of asterisk you are running, on console type: rasterisk -x "core show version"
If your version is lower than version 11.21-0 update the asterisk with the command: yum update
- install the driver for dongle , the link that i provide is for 64bits and for version of asterisk 11.25-0rev34:
rpm -ivh http://download.kingtelecom.com.br/download/chan_dongle-asterisk-11.25-0-rev34.x86_64.rpm
that command, makes the download from the source and install it.
- Enter inside of the CLI of the asterisk, with the command: rasterisk
set verbose mode with command: core set verbose 3
Execute the command: module unload chan_dongle.so
and then: module load chan_dongle.so
- Run: yum install usb_modeswitch -y
If you see the following error message in your Asterisk perform the following steps.
Chan_dongle.c: unable to open / dev / ttyUSB1: Permission denied
Run: vim /etc/udev/rules.d/92-dongle.rules and add the content below.
KERNEL == "ttyUSB *", MODE = "0666", OWNER = "asterisk", GROUP = "uucp"
Save the file.
Restart the server
When plugging in the first time modem make sure it's recognized in / dev, most modems
Recognize 3 ttyUSB, to verify that your modem recognized correctly execute.
Run: ls -la / dev / ttyUSB *
Enter now into the asterisk CLI and run the command: module reload chan_dongle.so
To check if the modens have been recognized type: dongle show devices
you see information about yor firmware, imei, operator, imsi, etc
for now you need to edite the file in /etc/asterisk/dongle.conf, and change the imei of your dongle and the imsi
Setup a new custom trunk for your dongle under Connectivity → Trunks → Add Custom Trunk and set these values:
Trunk Name: to-my-cellphone
Outbound CallerID: Your SIM card number with country code (with a plus sign at the beginning)
Custom Dial String: dongle/dongle0/$OUTNUM$
set a outbound route withe a name, a dial patern and Trunk Sequence for Matched Routes
I hope this help you.