Hi

Change config to this

#detect-string = "SIMCOM"
detect-string2 = "SIM900A"

BTW are you sure modem speed is 9600? maybe use auto instead.

Then restart kannel.

I assume the port is the correct.  /dev/ttyS0 ?

Modem log shows kannel can´t connect to modem. Therefore, discarding hw
problem, issue should be either port or speed.

Can you try with vwdial config? to see what does it detect?

Please post logs of what you get.

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 Fri, Oct 17, 2014 at 11:30 PM, Anjaly Kurian <anjalykurian1...@yandex.com
> wrote:

> Hi
> Here is the info with ATI,ATI1,ATI2 got from hyperterminal..
> AT
> OK
> ATI
>
> SIM900A R11.0
>
>
> OK
>
> ATI1
>
> OK
>
> ATI2
>
> OK
>
> Below given Modem log..
>
> 2014-10-18 09:54:22 [5504] [6] INFO: AT2[simcom]: opening device
> 2014-10-18 09:54:22 [5504] [6] DEBUG: AT2[simcom]: device opened. Telnet
> mode = 0
> 2014-10-18 09:54:22 [5504] [6] DEBUG: AT2[simcom]: device opened
> 2014-10-18 09:54:22 [5504] [6] INFO: AT2[simcom]: Logging in
> 2014-10-18 09:54:22 [5504] [6] INFO: AT2[simcom]: init device
> 2014-10-18 09:54:22 [5504] [6] INFO: AT2[simcom]: speed set to 9600
> 2014-10-18 09:54:22 [5504] [6] DEBUG: AT2[simcom]: --> ATZ^M
> 2014-10-18 09:54:28 [5504] [6] ERROR: AT2[simcom]: Wrong or no answer to
> ATZ, ignoring
> 2014-10-18 09:54:28 [5504] [6] ERROR: AT2[simcom]: Initialization of
> device failed. Attempt #0 on -1 max.
> 2014-10-18 09:54:28 [5504] [6] INFO: AT2[simcom]: Closing device
> 2014-10-18 09:54:28 [5504] [6] ERROR: AT2[simcom]: Couldn't connect
> (retrying in 10 seconds).
> 2014-10-18 09:54:38 [5504] [6] INFO: AT2[simcom]: opening device
> 2014-10-18 09:54:38 [5504] [6] DEBUG: AT2[simcom]: device opened. Telnet
> mode = 0
> 2014-10-18 09:54:38 [5504] [6] DEBUG: AT2[simcom]: device opened
> 2014-10-18 09:54:38 [5504] [6] INFO: AT2[simcom]: Logging in
>
> And the kannel.conf file is
>
> #
> # THIS IS A SAMPLE CONFIGURATION FOR KANNEL
> #
> # For any modifications to this file, see Kannel User Guide
> # If that does not help, send email to users@kannel.org
> #
>
> group = core
> admin-port = 13000
> admin-password = bar
> smsbox-port = 13001
> #status-password = foo
> #admin-deny-ip = ""
> #admin-allow-ip = ""
> log-file = "/Kannel/log/bearerbox.log"
> log-level = 0
> #dlr-storage = mysql
> #access-log = "access.log"
> #http-proxy-host = "127.0.0.1"
> #http-proxy-port = 8080
> #http-proxy-exceptions = "127.0.0.1"
> #http-proxy-username = "user"
> #http-proxy-password = "password"
> #ssl-certkey-file = "mycertandprivkeyfile.pem"
>
> # SMSC SMPP
> #group = smsc
> #smsc = smpp
> #host = 127.0.0.1
> #port = 10000
> #receive-port = 16400
> #smsc-username = kannel
> #smsc-password = kannel
> #system-type = type
> #address-range =
>
>
> # SMSC GSM
> group = smsc
> smsc = at
> modemtype = simcom
> device = /dev/ttyS0
> #pin = 1234
> speed = 9600
> smsc-id = simcom
> #validityperiod = 167
> log-file = "/Kannel/log/smsc.log"
> #smsc-username = kannel
> #smsc-password = kannel
>
> group = modems
> id = simcom
> name = Simcom
> detect-string = "SIMCOM"
> #detect-string2 = "SIM900A"
> #init-string = "ATZ"
>
>
> # SMSBOX SETUP
>
> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> #bearerbox-port = 13001
> sendsms-chars = "0123456789 +-"
> global-sender = 13013
> log-file = "/Kannel/log/smsbox.log"
> log-level = 0
> smsbox-id = smsc1
>
> group = smsbox-route
> smsbox-id = smsc1
> smsc-id = simcom
>
> # SEND-SMS USERS
>
> group = sendsms-user
> username = tester
> password = foobar
> #user-deny-ip = ""
> #user-allow-ip = ""
>
> # this sender is for Kannel relay testing (http_smsc)
>
> group = sendsms-user
> username = kannel
> password = rL4y
> user-deny-ip = "*.*.*.*"
> user-allow-ip = "127.0.0.1"
>
>
> # SMS SERVICE Default
> # there should be default always
> group = sms-service
> keyword = default
> text = "No service specified"
>
> #include = /Kannel/cfg/modems.conf
>
> #mysql connection
> #group = mysql-connection
> #id = sqlbox-db
> #host = localhost
> #username = root
> #password = ""
> #database = kanneldb
> #max-connections = 10
>
> # DLR SETUP
> #mysql connection
> #group = mysql-connection
> #id = mydlr
> #host = localhost
> #username = root
> #password = ""
> #database = kanneldb
> #max-connections = 10
>
> #group = dlr-db
> #id = mydlr
> #table = kannel_dlr
> #field-smsc = smsc
> #field-timestamp = timestamp
> #field-destination = destination
> #field-source = source
> #field-service = service
> #field-url = url
> #field-mask = mask
> #field-status = status
> #field-boxc-id = boxc_id
>
>
> The bearerbox log is shown below
>
> 2014-10-18 09:54:22 [5504] [0] INFO: Added logfile
> `/Kannel/log/bearerbox.log' with level `0'.
> 2014-10-18 09:54:22 [5504] [0] INFO: HTTP: Opening server at port 13000.
> 2014-10-18 09:54:22 [5504] [0] DEBUG: Started thread 1
> (gwlib/fdset.c:poller)
> 2014-10-18 09:54:22 [5504] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
> to pid 5504.
> 2014-10-18 09:54:22 [5504] [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2014-10-18 09:54:22 [5504] [2] DEBUG: Thread 2
> (gwlib/http.c:server_thread) maps to pid 5504.
> 2014-10-18 09:54:22 [5504] [2] DEBUG: HTTP: Including port 13000, fd 9 for
> polling in server thread
> 2014-10-18 09:54:22 [5504] [3] DEBUG: Thread 3
> (gw/bb_http.c:httpadmin_run) maps to pid 5504.
> 2014-10-18 09:54:22 [5504] [0] DEBUG: Started thread 3
> (gw/bb_http.c:httpadmin_run)
> 2014-10-18 09:54:22 [5504] [0] DEBUG: starting smsbox connection module
> 2014-10-18 09:54:22 [5504] [0] INFO: BOXC: 'smsbox-max-pending' not set,
> using default (100).
> 2014-10-18 09:54:22 [5504] [0] DEBUG: Adding smsbox routing to id <smsc1>
> for smsc id <simcom>
> 2014-10-18 09:54:22 [5504] [4] DEBUG: Thread 4
> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 5504.
> 2014-10-18 09:54:22 [5504] [0] DEBUG: Started thread 4
> (gw/bb_boxc.c:sms_to_smsboxes)
> 2014-10-18 09:54:22 [5504] [0] DEBUG: Started thread 5
> (gw/bb_boxc.c:smsboxc_run)
> 2014-10-18 09:54:22 [5504] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
> maps to pid 5504.
> 2014-10-18 09:54:22 [5504] [0] INFO: Set SMS resend frequency to 60
> seconds.
> 2014-10-18 09:54:22 [5504] [0] INFO: SMS resend retry set to unlimited.
> 2014-10-18 09:54:22 [5504] [0] DEBUG: MO concatenated message handling
> enabled
> 2014-10-18 09:54:22 [5504] [0] INFO: DLR rerouting for smsc id <simcom>
> disabled.
> 2014-10-18 09:54:22 [5504] [0] INFO: Added logfile `/Kannel/log/smsc.log'
> with level `0'.
> 2014-10-18 09:54:22 [5504] [0] INFO: AT2[simcom]: configuration shows
> modemtype <simcom>
> 2014-10-18 09:54:22 [5504] [0] DEBUG: AT2[simcom]: Reading modem
> definitions from </Kannel/cfg/kannel.conf>
> 2014-10-18 09:54:22 [5504] [0] DEBUG: AT2[simcom]: Found <1> modems in
> config
> 2014-10-18 09:54:22 [5504] [0] INFO: AT2[simcom]: read modem definition
> for <Simcom>
> 2014-10-18 09:54:22 [5504] [0] DEBUG: Started thread 6
> (gw/smsc/smsc_at.c:at2_device_thread)
> 2014-10-18 09:54:22 [5504] [6] DEBUG: Thread 6
> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 5504.
> 2014-10-18 09:54:22 [5504] [6] INFO: Logging thread `6' to logfile
> `/Kannel/log/smsc.log' with level `0'.
> 2014-10-18 09:54:22 [5504] [0] DEBUG: Started thread 7
> (gw/bb_smscconn.c:sms_router)
> 2014-10-18 09:54:22 [5504] [0] INFO:
> ----------------------------------------
> 2014-10-18 09:54:22 [5504] [0] INFO: Kannel bearerbox II version 1.4.4
> starting
> 2014-10-18 09:54:22 [5504] [7] DEBUG: Thread 7
> (gw/bb_smscconn.c:sms_router) maps to pid 5504.
> 2014-10-18 09:54:22 [5504] [0] INFO: MAIN: Start-up done, entering mainloop
> 2014-10-18 09:54:22 [5504] [0] DEBUG: AT2[simcom]: start called
> 2014-10-18 09:54:25 [5504] [2] DEBUG: HTTP: Creating HTTPClient for
> `127.0.0.1'.
> 2014-10-18 09:54:25 [5504] [2] DEBUG: HTTP: Created HTTPClient area
> 0x8012c918.
> 2014-10-18 09:54:25 [5504] [3] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
> 2014-10-18 09:54:25 [5504] [3] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
> 2014-10-18 09:54:25 [5504] [2] DEBUG: HTTP: Creating HTTPClient for
> `127.0.0.1'.
> 2014-10-18 09:54:25 [5504] [2] DEBUG: HTTP: Created HTTPClient area
> 0x8012f628.
> 2014-10-18 09:54:27 [5504] [5] INFO: Client connected from <127.0.0.1>
> 2014-10-18 09:54:27 [5504] [5] DEBUG: Started thread 8
> (gw/bb_boxc.c:function)
> 2014-10-18 09:54:27 [5504] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function)
> maps to pid 5504.
> 2014-10-18 09:54:27 [5504] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender)
> maps to pid 5504.
> 2014-10-18 09:54:27 [5504] [8] DEBUG: Started thread 9
> (gw/bb_boxc.c:boxc_sender)
> 2014-10-18 09:54:27 [5504] [8] DEBUG: boxc_receiver: got boxc_id <smsc1>
> from <127.0.0.1>
> 2014-10-18 09:54:45 [5504] [1] DEBUG: HTTP: Destroying HTTPClient area
> 0x8012f628.
> 2014-10-18 09:54:45 [5504] [1] DEBUG: HTTP: Destroying HTTPClient for
> `127.0.0.1'.
> 2014-10-18 09:55:45 [5504] [1] DEBUG: Timeout for fd:25 appears.
> 2014-10-18 09:55:45 [5504] [1] DEBUG: HTTP: Destroying HTTPClient area
> 0x8012c918.
> 2014-10-18 09:55:45 [5504] [1] DEBUG: HTTP: Destroying HTTPClient for
> `127.0.0.1'.
> 2014-10-18 09:58:52 [5504] [8] DEBUG: boxc_receiver: sms received
> 2014-10-18 09:58:52 [5504] [8] DEBUG: send_msg: sending msg to boxc:
> <smsc1>
> 2014-10-18 09:58:52 [5504] [7] DEBUG: sms_router: handling message
> (0x8012f550 vs 0x8012f550)
> 2014-10-18 09:58:52 [5504] [7] DEBUG: Routing failed, re-queued.
> 2014-10-18 09:58:52 [5504] [7] DEBUG: sms_router: handling message
> (0x8012f550 vs 0x8012f550)
> 2014-10-18 09:58:52 [5504] [7] DEBUG: Routing failed, re-queued.
> 2014-10-18 09:58:52 [5504] [7] DEBUG: sms_router: time to sleep 30.00 secs.
> 2014-10-18 09:58:52 [5504] [7] DEBUG: sms_router: gwlist_len = 1
> 2014-10-18 09:58:52 [5504] [7] DEBUG: sms_router: handling message
> (0x8012f550 vs 0x8012f550)
> 2014-10-18 09:58:52 [5504] [7] DEBUG: Routing failed, re-queued.
> 2014-10-18 09:58:52 [5504] [7] DEBUG: sms_router: handling message
> (0x8012f550 vs 0x8012f550)
> 2014-10-18 09:58:52 [5504] [7] DEBUG: Routing failed, re-queued.
> 2014-10-18 09:58:52 [5504] [7] DEBUG: sms_router: time to sleep 30.00 secs.
> 2014-10-18 09:58:54 [5504] [8] DEBUG: boxc_receiver: sms received
> 2014-10-18 09:58:54 [5504] [8] DEBUG: send_msg: sending msg to boxc:
> <smsc1>
>
>
> Sir please help me to find the issue..
>
>
> With regards,
> Anjaly Kurian
>

Reply via email to