Encrypt: Hello and thank you for your answer.
I managed to make smsools and chan_dongle work together correctly finally something like two months ago.
I had forgotten that I had posted a question here in fact! x)
To make both (smstools & chan_dongle) work at the same time it is simple in fact.
I have 3 interfaces on my modem: /dev/ttyUSB0, /dev/ttyUSB1 and /dev/ttyUSB2.
- On the one hand, I configured chan_dongle to use /dev/ttyUSB1 and /dev/ttyUSB2, corresponding respectively to the voice and data channels.
- On the other hand, I configured smstools to use /dev/ttyUSB0 which was therefore free interface.
As a result, since smstools & chan_dongle are using different interfaces, there is no conflict between them!
Encrypt
|
Encrypt: Hello guys o/
I am relatively new in the VoIP / GSM world since I have set an asterisk server on my Raspberry Pi about 4 months ago thanks to awesome videos from the VoIP guys: https://www.youtube.com/watch?v=jMQfSsO1da4&list=PLnzEbgyK52Gu9fdVDHburrsG3KBIntXFK
I am now studying in England and to avoid paying roaming fees when using my mobile phone number, I have installed the SIM card in a 3G USB Dongle, connected to my Raspberry Pi and to asterisk.
It works like a charm, I am able to call and be called using a softphone on my computer.
However, sending and receiving SMS doesn't work quite well with chan_dongle, so I decided to install smstools to do this job.
As you probably imagine, there is quite a conflict between the two pieces of software: it seems that smstools is trying to initialize the modem (or I don't know what), when chan_dongle has already done so.
So, when smstools is runnng, I get a lot of these messages in the log file of asterisk:
[Jan 10 12:10:09] ERROR[3879] at_response.c: [dongle0] Received unexpected 'OK'
Also, having a look at the logs of smstools, I have:
2016-01-10 12:07:06,3, GSM1: Modem is not ready to answer commands (Timeouts: 0)
As you probably imagine, smstools fails to send SMS messages / receive SMS since it looks that it doesn't consider the modem as initialized.
Here is the basic (relevant) configuration that I had set for smstools:
[GSM1]
device = /dev/ttyUSB0
incoming = yes
baudrate = 19200
check_network = 2
Note that I am sure of the value of the "device" parameter.
So, my question is the following: has anyone already managed to make smstools work with chan_dongle, at the same time?
Or are there any option that I haven't seen to do so?
Operating system name and version: Debian Wheezy
Version of smsd: 3.1.14
Smsd installed from: package repository
Name and model of a modem / phone: Huawei E160
Interface: USB
A pic of my Pi with the modem, for the fun: https://dl.dropboxusercontent.com/u/19626172/RPi_3.jpg :P
|