Hi

Add CMEE=1 or 2 to your modem init string so you will get more info on the
error.

BTW I assume that there is a blank line in between each kannel section...

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

On Tue, May 19, 2015 at 5:23 AM, JAHANZAIB SYED <aaca...@hotmail.com> wrote:

> update:
> today I tried to send sms with minicom and it worked perfectly , i was
> able to send sms using same modem. its just kannel not working, any help?
>
>
> *Regards, *
> *SYED JAHANZAIB*
>
>
>
>
>
>
>
> ------------------------------
> From: aaca...@hotmail.com
> To: users@kannel.org
> Subject: Kannel with Dlink MSG Accepted but not sent
> Date: Mon, 18 May 2015 15:53:33 +0500
>
>
>
> Greetings to all,
> I am stucked in a position and quite confident that some one can surely
> help me here.
> I have kannel configured in Ubuntu box, modem is DLINK DWM-156 USB GSM
> modem. SIM is working Ok with prepaid balance. When I try to send any sms,
> its accepted by Kannel, but never delivered to the user. in kannel
> bearerbox logs, I can see following error
>
> tail -f /var/log/kannel/bearerbox.log
>
> 2015-05-18 13:15:46 [9115] [6] INFO: AT2[/dev/ttyUSB0]: Phase 2+ is supported
> 2015-05-18 13:15:46 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=1^M
> 2015-05-18 13:15:46 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: 1, 1, 1
> 2015-05-18 13:15:46 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2015-05-18 13:15:46 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: --> 
> AT+CNMI=2,2,0,1,1;+CMEE=1^M
> 2015-05-18 13:15:46 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2015-05-18 13:15:46 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPMS="SM"^M
> 2015-05-18 13:15:46 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPMS: 0, 50, 0, 
> 50, 0, 50
> 2015-05-18 13:15:46 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2015-05-18 13:15:46 [9115] [6] INFO: AT2[/dev/ttyUSB0]: AT SMSC successfully 
> opened.
> 2015-05-18 13:15:48 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPMS?^M
> 2015-05-18 13:15:48 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPMS: "SM", 0, 
> 50, "ME", 0, 50, "SM_P", 0, 50
> 2015-05-18 13:15:48 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
>
> 2015-05-18 13:16:50 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPMS?^M
> 2015-05-18 13:16:50 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPMS: "SM", 0, 
> 50, "ME", 0, 50, "SM_P", 0, 50
> 2015-05-18 13:16:50 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2015-05-18 13:17:52 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPMS?^M
> 2015-05-18 13:17:52 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPMS: "SM", 0, 
> 50, "ME", 0, 50, "SM_P", 0, 50
> 2015-05-18 13:17:52 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
>
> 2015-05-18 13:18:19 [9115] [8] DEBUG: boxc_receiver: sms received
> 2015-05-18 13:18:19 [9115] [8] DEBUG: send_msg: sending msg to box: 
> <127.0.0.1>
> 2015-05-18 13:18:20 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: TP-Validity-Period: 
> 24.0 hours
> 2015-05-18 13:18:20 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGS=28^M
> 2015-05-18 13:18:20 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <--
> 2015-05-18 13:18:20 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- >
> 2015-05-18 13:18:20 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: send command status: 
> 1
> 2015-05-18 13:18:20 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: --> 
> 0011000B813033031209F90000A710DA6052085A069DCE2213747D4A97
> 2015-05-18 13:18:20 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ^Z
> 2015-05-18 13:18:20 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- ERROR
> 2015-05-18 13:18:20 [9115] [6] ERROR: AT2[/dev/ttyUSB0]: Generic error: ERROR
> 2015-05-18 13:18:20 [9115] [6] DEBUG: AT2[/dev/ttyUSB0]: send command status: 
> -1
> 2015-05-18 13:18:20 [9115] [7] DEBUG: sms_router: handling message 
> (0xb4c015d0 vs 0xb4c015d0)
> 2015-05-18 13:18:20 [9115] [7] DEBUG: re-queing SMS not-yet-to-be resent
> 2015-05-18 13:18:20 [9115] [7] DEBUG: sms_router: handling message 
> (0xb4c015d0 vs 0xb4c015d0)
> 2015-05-18 13:18:20 [9115] [7] DEBUG: re-queing SMS not-yet-to-be resent
> 2015-05-18 13:18:20 [9115] [7] DEBUG: sms_router: time to sleep 30.00 secs.
> 2015-05-18 13:18:20 [9115] [7] DEBUG: sms_router: gwlist_len = 1
>
>
> I have verified and the modem is detecting properly. can identify modem
> with gammu and wvdialconf as well.
>
>
> Device               : /dev/ttyUSB0
> Manufacturer         : MTK1
> Model                : MTK2 (MTK2)
> Firmware             : 1.2.3
> IMEI                 : xxxxxxxxxxxx / SIM IMSI : yyyyyyyyyyyyyyy
>
>
> Following is my kannel.conf
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = test
> status-password = test
> log-file = "/var/log/kannel/bearerbox.log"
> log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> group = smsc
> smsc = at
> modemtype = teltonika
> device = /dev/ttyUSB0
> speed = 19200
> my-number = 0333302100000
> sms-center = 923189244444
> sim-buffering = true
> group = modems
> id = teltonika
> name = "Teltonika E12"
> #detect-string = "Undefined"
> enable-mms = false
> init-string = "AT+CNMI=2,2,0,1,1;+CMEE=1"
> speed = 115200
> message-storage = "SM"
> #message-start = 0
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> global-sender = 13013
> sendsms-chars = "0123456789 +-"
> log-file = "/var/log/kannel/smsbox.log"
> log-level = 0
> access-log = "/var/log/kannel/access.log"
> group = sendsms-user
> username = kannel
> password = kannel
> concatenation = true
> max-messages = 10000
> group = sms-service
> keyword = default
> get-url = 
> "http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&;;...;
> accept-x-kannel-headers = true
> max-messages = 1000
> concatenation = true
> catch-all = true
> text = "test reply"
> omit-empty = true
>
>
>
> *Regards, *
> JZ
>
>
>

Reply via email to