LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-01-2004, 08:00 PM   #1
prad
LQ Newbie
 
Registered: Dec 2002
Location: Shanghai,China
Posts: 17

Rep: Reputation: 0
kannel problem: fail sending sms via GPRS modem


I'm using iTegno WM1080A+ GPRS modem. I built kannel from source, version is 1.3.1.

The configuration file is:
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;192.168.0.*"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.0.*"
log-file = "/tmp/kannel.log"
log-level = 0
access-log = "/tmp/kannel.access"
unified-prefix = "0,86;0,+86"

group = smsc
smsc = at2
smsc-id = GSMModem
modemtype = auto
device = /dev/ttyUSB0
#device = /dev/modem
speed = 115200
sim-buffering = true
my-number = 86138xxxxxxxx
sms-center = 8613800210500
validityperiod = 168
pin = 1234

group = modems
id = iTegno
detect-string = "WAVECOM"
detect-string2 = "MODEM"
speed = 115200
need-sleep = true

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = "86138xxxxxxxx"
sendsms-chars = "0123456789 +-"
access-log = "/tmp/kannel.access"
log-file = "/tmp/smsbox.log"
log-level = 0

group = sendsms-user
username = foo
password = bar
user-deny-ip = "*.*.*.*"
user-allow-ip = "192.168.0.*;127.0.0.1"
max-messages = 3
concatenation = true

group = sms-service
keyword = default
text = "No service specified"
group = sms-service
keyword = www
get-url = "http://%S";;
group = sms-service
keyword = complex
get-url = "http://host/service?sender=%p&text=%r";;
accept-x-kannel-headers = true
max-messages = 3

I started the kannel from the command line.
bearerbox -v 1 kannel.conf &
smsbox -v 1 kannel.conf &

The log information is:
2004-03-01 15:05:16 [0] INFO: Kannel bearerbox II version 1.3.1 starting
2004-03-01 15:05:16 [5] DEBUG: AT2[GSMModem]: detecting modem type
2004-03-01 15:05:16 [5] INFO: AT2[GSMModem]: opening device
2004-03-01 15:05:16 [0] INFO: MAIN: Start-up done, entering mainloop
2004-03-01 15:05:16 [0] DEBUG: AT2[GSMModem]: start called
2004-03-01 15:05:16 [6] DEBUG: sms_router: time to sleep
2004-03-01 15:05:16 [6] DEBUG: sms_router: list_len = 0
2004-03-01 15:05:16 [5] DEBUG: AT2[GSMModem]: device opened
2004-03-01 15:05:16 [5] INFO: AT2[GSMModem]: speed set to 115200
2004-03-01 15:05:16 [5] DEBUG: AT2[GSMModem]: --> ^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> AT^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> AT&F^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> ATE0^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> ATI^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- WAVECOM MODEM
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- MULTIBAND 900E 1800
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: found string <WAVECOM> plus <MODEM>,
using modem definition <iTegno>
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> AT+CSMS=?^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- +CSMS: (0,1)
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] INFO: AT2[GSMModem]: Phase 2+ is supported
2004-03-01 15:05:18 [5] INFO: AT2[GSMModem]: closing device
2004-03-01 15:05:18 [5] INFO: AT2[GSMModem]: opening device
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: device opened
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: device opened
2004-03-01 15:05:19 [5] INFO: AT2[GSMModem]: init device
2004-03-01 15:05:19 [5] INFO: AT2[GSMModem]: speed set to 115200
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: --> AT^M
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: --> AT&F^M
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: --> ATE0^M
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: --> AT+IFC=2,2^M
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: --> AT+CPIN?^M
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: <-- +CPIN: READY
2004-03-01 15:05:27 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function)
2004-03-01 15:05:27 [7] INFO: Client connected from <127.0.0.1>
2004-03-01 15:05:27 [7] DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender)
2004-03-01 15:05:27 [7] DEBUG: boxc_receiver: unlocking sender
2004-03-01 15:05:27 [8] DEBUG: boxc_sender: sender unlocked
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CSCA="8613800210500"^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CMGF=0^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CSMS=?^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- +CSMS: (0,1)
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] INFO: AT2[GSMModem]: Phase 2+ is supported
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CSMS=1^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- +CSMS: 1,1,1
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CNMI=1,2,0,1,0^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] INFO: AT2[GSMModem]: AT SMSC successfully opened.
2004-03-01 15:05:33 [5] DEBUG: AT2[GSMModem]: --> AT+CPMS?^M
2004-03-01 15:05:33 [5] DEBUG: AT2[GSMModem]: <-- +CPMS: "SM",0,25,"SM",0,25
2004-03-01 15:05:33 [5] DEBUG: AT2[GSMModem]: <-- OK

I got the following information when I try to send an sms through web browser using
following command
http://192.168.0.201:13013/cgi-bin/s...xx&text=heheaa
2004-03-01 15:05:42 [7] DEBUG: boxc_receiver: sms received
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: TP-Validity-Period: 2 days
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: --> AT+CMGS=20^M
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: <--
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: <-- >
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: send command status: 1
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: -->
0011000C811083613601620000A806E832BA1C0E03
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: --> ^Z
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: <-- ERROR 2004-03-01 15:05:43 [5] DEBUG:
AT2[GSMModem]: send command status: -1

2004-02-25 17:34:39 [2] DEBUG: HTTP: Creating HTTPClient for `192.168.0.17'.
2004-02-25 17:34:39 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from
<192.168.0.17>
2004-02-25 17:34:39 [3] INFO: sendsms used by <foo>
2004-02-25 17:34:39 [3] INFO: sendsms sender:<foo:13013> (192.168.0.17)
to:<138xxxxxxxx> msg:<heheaa>
2004-02-25 17:34:39 [3] DEBUG: message length 6, sending 1 messages
2004-02-25 17:34:39 [3] DEBUG: Status: 202 Answer: <Sent.>
2004-02-25 17:34:39 [3] DEBUG: HTTP: Resetting HTTPClient for `192.168.0.17'.
2004-02-25 17:35:39 [1] ERROR: Error reading from fd 23:
2004-02-25 17:35:39 [1] ERROR: System error 104: Connection reset by peer
2004-02-25 17:35:39 [1] DEBUG: HTTP: Destroying HTTPClient area 0x80a2c70.
2004-02-25 17:35:39 [1] DEBUG: HTTP: Destroying HTTPClient for `192.168.0.17'.
 
Old 03-02-2006, 09:07 PM   #2
lhfirefox
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
kannel + itegno configuration

check my forum: (http)://p2.forumforfree.com/sms-gateway-using-itegno-gsm-modem-amp-kannel-vt10-akilinetworks.(html)

let me know how it went okay!

cheers,
Christopher
 
Old 12-05-2006, 10:21 AM   #3
dudulz
Member
 
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81

Rep: Reputation: 15
./bearbox error

hai all, i need some help. i have installed kannel in my linux. but when ./bearbox -v 1 /kannel.conf there some error like this :

2006-12-05 23:16:15 [7128] [4] INFO: AT2[/dev/ttyS0]: speed set to 115200
2006-12-05 23:16:17 [7128] [4] INFO: AT2[/dev/ttyS0]: closing device
2006-12-05 23:16:17 [7128] [4] INFO: AT2[/dev/ttyS0]: detect speed is 115200
2006-12-05 23:16:17 [7128] [4] INFO: AT2[/dev/ttyS0]: opening device
2006-12-05 23:16:18 [7128] [4] INFO: AT2[/dev/ttyS0]: speed set to 115200

2006-12-05 22:53:52 [3091] [4] PANIC: Where are the modem definitions ?!?!
2006-12-05 22:53:52 [3091] [4] PANIC: ./bearerbox(gw_panic+0xb6) [0x80b7ad6]
2006-12-05 22:53:52 [3091] [4] PANIC: ./bearerbox [0x8066f86]
2006-12-05 22:53:52 [3091] [4] PANIC: ./bearerbox [0x806679d]
2006-12-05 22:53:52 [3091] [4] PANIC: ./bearerbox [0x806353f]
2006-12-05 22:53:52 [3091] [4] PANIC: ./bearerbox [0x80af0dd]
2006-12-05 22:53:52 [3091] [4] PANIC: /lib/libpthread.so.0 [0x400c54eb]
2006-12-05 22:53:52 [3091] [4] PANIC: /lib/libc.so.6(__clone+0x5a) [0x403f8b0a]

thks for any help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending AT commands to a SMS modem narmida Linux - Hardware 2 09-24-2009 01:05 PM
Are there any free SMS sending software for linux Agent007 Linux - General 3 12-31-2007 01:07 PM
sending sms linuxmandrake Linux - Software 2 12-31-2007 01:05 PM
Sending sms to Java Cellphone emulator poeta_boy Programming 1 11-24-2005 05:18 PM
How to send sms with more than 160 characters with Kannel ? skeezo Linux - Wireless Networking 1 03-21-2004 03:34 PM


All times are GMT -5. The time now is 03:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration