If you are trying MT messages, Check if port is open.

On Mon, Jan 20, 2014 at 9:50 AM, aruna priyankara
<[email protected]>wrote:

> Hi
>
> Please Help.
>
> My Kannel conf.
>
> #Group
> group = core
> admin-port = 13010
> smsbox-port = 13001
> admin-password = 123456
> log-file = "/var/log/kannel.log"
> #log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
>
> #SMSC
> group = smsc
> smsc = at
> modemtype = auto
> device=/dev/ttyUSB0
> my-number = "0720204007"
> connect-allow-ip = 127.0.0.1
> log-level = 0
>
> #Send SMS
> group = sendsms-user
> username = kannel
> password = 123456
> concatenation= true
> max-messages = 10
>
> #get SMS
> group = sms-service
> keyword-regex = .*
> catch-all = yes
> max-messages = 3
> get-url = "
> http://localhost/sms/te.php?ORIGINATOR=%p&RECEIVER=%P&SMS=%a&SOURCE_PRV=%o
> "
> catch-all = true
> concatenation = true
> accept-x-kannel-headers = true
>
> #Modems
> group = modems
> id = huawei
> name = "huawei"
> detect-string = "huawei"
> init-string = "AT+CNMI=2,1,2,2,0"
> keepalive-cmd = AT+CSQ
> reset-string = "AT+CFUN=1,0"
> message-storage = "sm"
> speed = 115200
>
> #SMSBOX SETUP
> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> global-sender = 13013
> sendsms-chars="0123456789 +-"
> log-level=0
> access-log = "/var/log/access_kannel.log"
>
> Kannel Log
>
> 2014-01-20 17:16:52 [4839] [7] DEBUG: clear_old_concat_parts called
> 2014-01-20 17:50:51 [4988] [0] INFO: Added logfile `/var/log/kannel.log'
> with level `0'.
> 2014-01-20 17:50:51 [4988] [0] INFO: HTTP: Opening server at port 13010.
> 2014-01-20 17:50:51 [4988] [0] DEBUG: Started thread 1
> (gwlib/fdset.c:poller)
> 2014-01-20 17:50:51 [4988] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
> to pid 4988.
> 2014-01-20 17:50:51 [4988] [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2014-01-20 17:50:51 [4988] [0] DEBUG: Started thread 3
> (gw/bb_http.c:httpadmin_run)
> 2014-01-20 17:50:51 [4988] [0] DEBUG: starting smsbox connection module
> 2014-01-20 17:50:51 [4988] [0] INFO: BOXC: 'smsbox-max-pending' not set,
> using default (100).
> 2014-01-20 17:50:51 [4988] [0] DEBUG: Started thread 4
> (gw/bb_boxc.c:sms_to_smsboxes)
> 2014-01-20 17:50:51 [4988] [0] DEBUG: Started thread 5
> (gw/bb_boxc.c:smsboxc_run)
> 2014-01-20 17:50:51 [4988] [0] INFO: Set SMS resend frequency to 60
> seconds.
> 2014-01-20 17:50:51 [4988] [0] INFO: SMS resend retry set to unlimited.
> 2014-01-20 17:50:51 [4988] [0] DEBUG: smsbox MO concatenated message
> handling enabled
> 2014-01-20 17:50:51 [4988] [0] INFO: DLR rerouting for smsc id <(null)>
> disabled.
> 2014-01-20 17:50:51 [4988] [0] INFO: AT2[/dev/ttyUSB0]: configuration
> doesn't show modemtype. will autodetect
> 2014-01-20 17:50:51 [4988] [0] DEBUG: Started thread 6
> (gw/smsc/smsc_at.c:at2_device_thread)
> 2014-01-20 17:50:51 [4988] [6] DEBUG: Thread 6
> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 4988.
> 2014-01-20 17:50:51 [4988] [0] DEBUG: Started thread 7
> (gw/bb_smscconn.c:sms_router)
> 2014-01-20 17:50:51 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: detecting modem
> speed.
> 2014-01-20 17:50:51 [4988] [0] INFO:
> ----------------------------------------
> 2014-01-20 17:50:51 [4988] [6] INFO: AT2[/dev/ttyUSB0]: opening device
> 2014-01-20 17:50:51 [4988] [0] INFO: Kannel bearerbox II version 1.4.3
> starting
> 2014-01-20 17:50:51 [4988] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
> maps to pid 4988.
> 2014-01-20 17:50:51 [4988] [0] INFO: MAIN: Start-up done, entering mainloop
> 2014-01-20 17:50:51 [4988] [0] DEBUG: AT2[/dev/ttyUSB0]: start called
> 2014-01-20 17:50:51 [4988] [4] DEBUG: Thread 4
> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 4988.
> 2014-01-20 17:50:51 [4988] [7] DEBUG: Thread 7
> (gw/bb_smscconn.c:sms_router) maps to pid 4988.
> 2014-01-20 17:50:51 [4988] [3] DEBUG: Thread 3
> (gw/bb_http.c:httpadmin_run) maps to pid 4988.
> 2014-01-20 17:50:51 [4988] [2] DEBUG: Thread 2
> (gwlib/http.c:server_thread) maps to pid 4988.
> 2014-01-20 17:50:51 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened.
> Telnet mode = 0
> 2014-01-20 17:50:52 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened
> 2014-01-20 17:50:52 [4988] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
> 2014-01-20 17:50:52 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ^M
> 2014-01-20 17:50:54 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
> 2014-01-20 17:50:54 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:54 [4988] [6] INFO: AT2[/dev/ttyUSB0]: Closing device
> 2014-01-20 17:50:54 [4988] [6] INFO: AT2[/dev/ttyUSB0]: detect speed is
> 115200
> 2014-01-20 17:50:54 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: detecting modem
> type
> 2014-01-20 17:50:54 [4988] [6] INFO: AT2[/dev/ttyUSB0]: opening device
> 2014-01-20 17:50:54 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened.
> Telnet mode = 0
> 2014-01-20 17:50:55 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened
> 2014-01-20 17:50:55 [4988] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
> 2014-01-20 17:50:55 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ^M
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT&F^M
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ATE0^M
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ATI^M
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- Manufacturer:
> huawei
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- Model: E153
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- Revision:
> 11.609.16.00.00
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- IMEI:
> 352375041110842
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- +GCAP:
> +CGSM,+DS,+ES
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: found string
> <huawei>, using modem definition <huawei>
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=?^M
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: (0-1)
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:57 [4988] [6] INFO: AT2[/dev/ttyUSB0]: Closing device
> 2014-01-20 17:50:57 [4988] [6] INFO: AT2[/dev/ttyUSB0]: opening device
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened.
> Telnet mode = 0
> 2014-01-20 17:50:57 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: device opened
> 2014-01-20 17:50:57 [4988] [6] INFO: AT2[/dev/ttyUSB0]: Logging in
> 2014-01-20 17:50:58 [4988] [6] INFO: AT2[/dev/ttyUSB0]: init device
> 2014-01-20 17:50:58 [4988] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ATZ^M
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT^M
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- AT
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT&F^M
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- AT&F
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> ATE0^M
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- ATE0
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+IFC=2,2^M
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CPIN?^M
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- +CPIN: READY
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGF=0^M
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:58 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CSMS=?^M
> 2014-01-20 17:50:59 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- +CSMS: (0-1)
> 2014-01-20 17:50:59 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:59 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: -->
> AT+CNMI=2,1,2,2,0^M
> 2014-01-20 17:50:59 [4988] [6] DEBUG: AT2[/dev/ttyUSB0]: <-- OK
> 2014-01-20 17:50:59 [4988] [6] INFO: AT2[/dev/ttyUSB0]: AT SMSC
> successfully opened.
> When i send SMS to system, it's doesn't grabbing those.
>
> How i check whether the kannel can tarck the incoming SMS's
>
> Regards
> Aruna
>
>


-- 
---------------------------------------------------------
Alejandro Mussi Campos Cervera

Reply via email to