Utsman Abdurrahman wrote:
Dear All, Please advice of the following confusing eeror that I found in my kannel. I dont know why, but my kannel seems work ok with sending sms message logically but unfortunately not actually. Ive been working on this error for quite some times, but I still cant figure it out some how. Please help me with this. I use kannel 1.3.2 with wmod2 wavecom gsm modem under Redhat Taroon Linux as OS platform.
Kannel configuration : group = core
admin-port = 13000 smsbox-port = 13001 admin-password = admin status-password = admin admin-allow-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" log-file = "/tmp/kannel.log"
log-level = 0
access-log = "/tmp/access.log" unified-prefix = "0,+62" store-file = "/tmp/kannel.store"
group = smsc smsc-id = modem smsc = at
modemtype = wavecom device = /dev/ttyS0
allowed-smsc-id = modem
group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM" keepalive-cmd = "AT+CBC;+CSQ" message-storage = "ME"
group = smsbox
bearerbox-host = localhost sendsms-port = 13013 log-file = "/tmp/smsbox.log" log-level = 0 access-log = "/tmp/accesskannel.log"
group = sendsms-user
username = user
password = password default-sender = +62815140xxxx forced-smsc = modem
group = sms-service
keyword = default
text = "No service specified"
Sms box log: 2004-09-16 10:43:54 [13941] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2004-09-16 10:43:54 [13941] [3] INFO: sendsms used by <user> 2004-09-16 10:43:54 [13941] [3] INFO: sendsms sender:<user:+628151404989> (127.0.0.1) to:< 628161975399> msg:<Hi World> 2004-09-16 10:43:54 [13941] [3] DEBUG: message length 8, sending 1 messages 2004-09-16 10:43:54 [13941] [3] DEBUG: Status: 202 Answer: <Sent.> 2004-09-16 10:43:54 [13941] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2004-09-16 10:49:05 [13941] [1] DEBUG: HTTP: Destroying HTTPClient area 0x813a978. 2004-09-16 10:49:05 [13941] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
And I see this confirmation in the log 2004-09-16 10:43:54 [13930] [9] DEBUG: boxc_receiver: sms received 2004-09-16 10:43:54 [13930] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
The bearer box configuring logs 2004-09-16 09:38:11 [13085] [0] INFO: Added logfile `/tmp/kannel.log' with level `0'. 2004-09-16 09:38:11 [13085] [0] INFO: Started access logfile `/tmp/access.log'. 2004-09-16 09:38:11 [13085] [0] DEBUG: Started thread 1 (gw/bb_store.c:store_cleanup) 2004-09-16 09:38:11 [13085] [0] INFO: SSL not supported, no SSL initialization done. 2004-09-16 09:38:11 [13085] [0] INFO: HTTP: Opening server at port 13000. 2004-09-16 09:38:11 [13085] [0] DEBUG: Started thread 2 (gwlib/fdset.c:poller) 2004-09-16 09:38:11 [13085] [0] DEBUG: Started thread 3 (gwlib/http.c:server_thread) 2004-09-16 09:38:11 [13085] [0] DEBUG: Started thread 4 (gw/bb_http.c:httpadmin_run) 2004-09-16 09:38:11 [13085] [0] DEBUG: starting smsbox connection module 2004-09-16 09:38:11 [13085] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2004-09-16 09:38:11 [13085] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:sms_to_smsboxes) 2004-09-16 09:38:11 [13085] [0] DEBUG: Started thread 6 (gw/bb_boxc.c:smsboxc_run) 2004-09-16 09:38:11 [13085] [0] INFO: DLR rerouting for smsc id <modem> disabled. 2004-09-16 09:38:11 [13085] [0] INFO: AT2[modem]: configuration shows modemtype <wavecom> 2004-09-16 09:38:11 [13085] [0] DEBUG: AT2[modem]: Reading modem definitions from </etc/kannel.conf> 2004-09-16 09:38:11 [13085] [0] DEBUG: AT2[modem]: Found <1> modems in config 2004-09-16 09:38:11 [13085] [0] INFO: AT2[modem]: read modem definition for <Wavecom> 2004-09-16 09:38:11 [13085] [0] DEBUG: Started thread 7 (gw/smsc/smsc_at.c:at2_device_thread) 2004-09-16 09:38:11 [13085] [0] DEBUG: Started thread 8 (gw/bb_smscconn.c:sms_router) 2004-09-16 09:38:11 [13085] [0] INFO: ---------------------------------------- 2004-09-16 09:38:11 [13085] [0] INFO: Kannel bearerbox II version 1.3.2 starting 2004-09-16 09:38:11 [13085] [1] DEBUG: Thread 1 (gw/bb_store.c:store_cleanup) maps to pid 13085. 2004-09-16 09:38:11 [13085] [2] DEBUG: Thread 2 (gwlib/fdset.c:poller) maps to pid 13085. 2004-09-16 09:38:11 [13085] [7] DEBUG: Thread 7 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 13085. 2004-09-16 09:38:11 [13085] [7] INFO: AT2[modem]: trying to use speed <9600> from modem definition 2004-09-16 09:38:11 [13085] [7] INFO: AT2[modem]: opening device 2004-09-16 09:38:11 [13085] [7] DEBUG: AT2[modem]: device opened 2004-09-16 09:38:11 [13085] [7] DEBUG: AT2[modem]: device opened 2004-09-16 09:38:11 [13085] [7] INFO: AT2[modem]: speed set to 9600 2004-09-16 09:38:11 [13085] [7] DEBUG: AT2[modem]: --> ^M 2004-09-16 09:38:11 [13085] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router) maps to pid 13085. 2004-09-16 09:38:11 [13085] [0] INFO: Loading store file `/tmp/kannel.store' 2004-09-16 09:38:11 [13085] [0] INFO: Store-file size 389, starting to unpack 2004-09-16 09:38:11 [13085] [0] INFO: Retrieved 1 messages, non-acknowledged messages: 1 2004-09-16 09:38:11 [13085] [0] INFO: MAIN: Start-up done, entering mainloop 2004-09-16 09:38:11 [13085] [0] DEBUG: AT2[modem]: start called 2004-09-16 09:38:11 [13085] [8] DEBUG: sms_router: time to sleep 2004-09-16 09:38:11 [13085] [8] DEBUG: sms_router: list_len = 1 2004-09-16 09:38:11 [13085] [8] DEBUG: sms_router: time to sleep 2004-09-16 09:38:11 [13085] [3] DEBUG: Thread 3 (gwlib/http.c:server_thread) maps to pid 13085. 2004-09-16 09:38:11 [13085] [4] DEBUG: Thread 4 (gw/bb_http.c:httpadmin_run) maps to pid 13085. 2004-09-16 09:38:11 [13085] [5] DEBUG: Thread 5 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 13085. 2004-09-16 09:38:11 [13085] [6] DEBUG: Thread 6 (gw/bb_boxc.c:smsboxc_run) maps to pid 13085. 2004-09-16 09:38:13 [13085] [7] DEBUG: AT2[modem]: --> AT^M 2004-09-16 09:38:17 [13085] [7] DEBUG: AT2[modem]: --> AT^M 2004-09-16 09:38:21 [13085] [7] DEBUG: AT2[modem]: --> AT^M
Please help me with it.. Thx, Regards Utsman
looking on your bearerbox.log, to me it seems that Kannel is unable to communicate with the AT modem (wavecom in your case). As you see from the last lines here it sends "AT<newlin>" lines but the modem does not respond.
Try to connect with "minicom" which is a serial com line program usually aboard on all major linux distros and try to see if you can manually communicate. Also search the mailing list archive on "wavecom". There have been some discussions about connecting problems to those beasts.
Good luck.
Stipe
mailto:stolj_{at}_wapme.de ------------------------------------------------------------------- Wapme Systems AG
Vogelsanger Weg 80 40470 Düsseldorf, NRW, Germany
phone: +49.211.74845.0 fax: +49.211.74845.299
mailto:info_{at}_wapme-systems.de http://www.wapme-systems.de/ -------------------------------------------------------------------
-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.2.2 (Cygwin)
mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2 nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H g2HyLAEKQIp30Q== =aYCI -----END PGP PUBLIC KEY BLOCK-----