Hi, Thank you for your help.
I'll add this log line on sms config. Today (again) my USb GSM device is disconnect. The result of dmesg | grep tty : How can I translate this and what it's mean ? Thank you. Philippe. -----Original Message----- From: Alvaro Cornejo <cornejo.alv...@gmail.com> To: Equipe Support <p...@onlynetworks.net> Cc: kannel_dev_mailinglist <de...@kannel.org>, annou...@kannel.org, users <users@kannel.org> Date: Fri, 15 May 2015 11:24:21 -0500 Subject: Re: CMS error 500 Hi Modem log, when not defined specifically goes into bearerbox. It is better to have it separate for each smsc. Therefore add the following lines to you smsc/at config #Smsc group = smsc smsc = at ... log-level = 0 log-file = "/var/log/kannel/modem.log" ... You will have an additional log with only modem info. Also as per your /dev/ you should change: device = /dev/ttyUSB2 to device = /dev/ttyUSB0 or device = /dev/ttyUSB1 And test which one corresponds to AT port. Regards Alvaro |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com [http://www.perusms.com/] On Fri, May 15, 2015 at 10:59 AM, Equipe Support <p...@onlynetworks.net [mailto:p...@onlynetworks.net]> wrote: Hi, Thank you for your help. Actually I made dmesg| grep tty - the result : I have 2 ports for USB key ... Well, I very knew for me Kannel, sms sending ... but I need to make it work. What you meen bye "modem logs" : bearerbox log, smsbox log or minicom logs ? Thank you for your help. Best regards. Philippe. -----Original Message----- From: Alvaro Cornejo <cornejo.alv...@gmail.com [mailto:cornejo.alv...@gmail.com]> To: Equipe Support <p...@onlynetworks.net [mailto:p...@onlynetworks.net]> Cc: kannel_dev_mailinglist <de...@kannel.org [mailto:de...@kannel.org]>, annou...@kannel.org [mailto:annou...@kannel.org], users <users@kannel.org [mailto:users@kannel.org]> Date: Thu, 14 May 2015 10:27:30 -0500 Subject: Re: CMS error 500 Hi It is normal that USB modems appears more than once on the tty. You should check which tty correspond to the AT command port. Those ports usually does not change, unless you remove/reinsert the usb to the PC. This is a Linux kernel issue, not kannels. There are some hacks on internet about how to remediate this. What I don't understand is what do you change with minicom? About messages not being deleted, are you talking about incomming or outgoing? Usually it only stores outgoing until confirmed by smsc that it has received then is automatically deleted. In the case of incomming, it is done "manually" You can try to set sim-buffering = true to have kannel lokk for incomming and process them. even if you don't care about them you need to freeup modem memory. Just have kannel process them and send them to trash. bearerbox being unable to communicate with the modem could be caused by modem memory being full. About alerts, kannel have not a way to check this. You can however do two things: - Use admin interface to monitor kannel queues and generate alarms parsing that info. - Parse kannel logs to look for AT errors. Hope helps. If need more help, please post modem logs. Regards Alvaro |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com [http://www.perusms.com/] On Thu, May 14, 2015 at 1:06 AM, Equipe Support <p...@onlynetworks.net [mailto:p...@onlynetworks.net]> wrote: Hello, We use Kannel v1.4.3 installed on Ubuntu server 14.04.1 with a 3G Huawei E1522 USB key. We use Kannel only for shipments of SMS via HTTP. No reception. We find that for 2-3 days it works well, then the messages are stored in the queue and are not sent. We have 2 types of errors: 1: CMS Error: unknown error 500 = -> Sim storage maybe it full? 2nd: bearerbox can't connect to the USB modem. We also found that in Linux, our 3G Huawei key appears 2 times: ttyUSB1 and ttyUSB2. The solution we found for now: stop Kannel services, change the modem in minicomwith ttyUSB1 or ttyUSB2, modify kannel.conf (with ttyUSBxx modem) and restart bearebox and SMSBOX. Could you help us with this problem please? It is very important to us? Another thing: can we set the alerts (eg by email) when SMS messages are not sent and stored in the queue? Thank you find enclosed our Kannel configuration file and file logs. Waiting for your reply. Best regards. [http://www.onlynetworks.net/]