Hi Catalin, Rodrigo,
Thanks for both your advice!
I have managed to solve my problem. It seems that the modemtype and the AT variables in the provided modem.conf are not compatible with my Sony Ericsson Z1010.
I found this link which helped to solve my problem. Hope it benefits others facing similar problems too.
http://henryjunior.com/blog/?p=12
Note: I was connecting my Z1010 to my USB port, so for device I was using
/dev/ttyACM1
Thanks again to all who helped!
Wen
>From http://henryjunior.com/blog/?p=12
" July 17th, 2005
I just got my Sony Ericsson T637 working with Kannel via Bluetooth (as a GSM modem). I looked around for the necessary init and config script for this phone and didnt find one so I am posting the configuration I created. Some aspects might not be necessary or could be overkill. The bottom line though is using these configurations I am able to send/receive/respond to SMS messages:"
# SMSC GSM
group = smsc
smsc = at
modemtype = T630-T628
device = /dev/tty.T637-SerialPort1-1
speed = 9600
sim-buffering = true
group = modems
id = T630-T628
name = T630-T628″
broken = true
init-string = AT+CNMI=2,3,2,0,0;+CMGF=0″
keepalive-cmd = AT+CBC;+CSQ;+CMGF=0″
-----Original Message-----
From: Rodrigo Cremaschi [mailto:[EMAIL PROTECTED]]
Sent: Tue 9/27/2005 10:59 PM
To: Wen Jia, Gan
Cc: users@kannel.org
Subject: Re: sms send problem
Hi Wen,
Well, "Sent" in Kannel dictionary does not mean what we suppose at
first, and may lead to some confusion. I think this should be changed
to "Dispatched", "Sent-to-smsc" or "Sent-to-modem" as this would be
more appropriate.
Rodrigo.
On 9/27/05, Wen Jia, Gan <[EMAIL PROTECTED]> wrote:
>
>
> Hi there,
>
> I am new in setting up Kannel as SMS gateway, and am having problems
> sending SMS via HTTP interface. After sending the SMS using FireFox 1.0.4
> running on Fedora Core 4:
> http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&to=90121494&text=Hello+world
> Kannel returns a page with "Sent.", but I do not see my GSM phone sending
> out the SMS, not the SMS being received.
>
> I am connected my SonyEricsson Z1010 GSM phone via infra-red(/dev/ircomm0)
> to use it as SMSC. I am able to communicate to the phone via infra-red using
> AT commands and using minicom.
>
> Would appreciate any help!
>
> Regards,
> Wen
>
> My smskannel.conf
> -----------------
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = bar
> status-password = foo
> log-file = "/tmp/kannel.log"
> log-level = 1
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> access-log = "/tmp/access.log"
>
> # SMSC CONNECTIONS
>
> group = smsc
> smsc = at
> smsc-id = Z1010
> device = /dev/ircomm0
> speed = 9600
>
> include = "modems.conf"
> #modems.conf is that obtained from the kannel distribution.
>
> # SMSBOX SETUP
>
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> global-sender = 13013
> log-file = "/tmp/smsbox.log"
> log-level = 0
> access-log = "/tmp/access.log"
>
> # SEND-SMS USERS
>
> group = sendsms-user
> username = tester
> password = foobar
>
> # SERVICES
>
> group = sms-service
> keyword = nop
> text = "You asked nothing and I did it!"
>
> # there should be default always
>
> group = sms-service
> keyword = default
> text = "No service specified"
>
> My Output Messages
> -------------------
> /usr/sbin/bearerbox -v 1 smskannel.conf
> 2005-09-27 17:52:41 [18622] [0] INFO: Debug_lvl = 1, log_file = <none>,
> log_lvl = 0
> 2005-09-27 17:52:41 [18622] [0] WARNING: DLR: using default 'internal' for
> storage type.
> 2005-09-27 17:52:41 [18622] [0] INFO: DLR using storage type: internal
> 2005-09-27 17:52:41 [18622] [0] INFO: Added logfile `/tmp/kannel.log' with
> level `1'.
> 2005-09-27 17:52:41 [18622] [0] INFO: Started access logfile
> `/tmp/access.log'.
> 2005-09-27 17:52:41 [18622] [0] INFO: HTTP: Opening server at port 13000.
> 2005-09-27 17:52:41 [18622] [0] INFO: BOXC: 'smsbox-max-pending' not set,
> using default (100).
> 2005-09-27 17:52:41 [18622] [0] INFO: DLR rerouting for smsc id <Z1010>
> disabled.
> 2005-09-27 17:52:41 [18622] [0] INFO: AT2[Z1010]: configuration doesn't
> show modemtype. will autodetect
> 2005-09-27 17:52:41 [18622] [0] INFO:
> ----------------------------------------
> 2005-09-27 17:52:41 [18622] [0] INFO: Kannel bearerbox II version 1.4.0
> starting2005-09-27 17:52:41 [18622] [6] INFO: AT2[Z1010]: opening device
> 2005-09-27 17:52:41 [18622] [0] INFO: MAIN: Start-up done, entering
> mainloop
> 2005-09-27 17:52:42 [18622] [6] INFO: AT2[Z1010]: speed set to 9600
> 2005-09-27 17:52:52 [18622] [6] INFO: AT2[Z1010]: opening device
> 2005-09-27 17:52:52 [18622] [6] WARNING: AT2[Z1010]: trying to open device
> with not closed device!!! Please report!!!
> 2005-09-27 17:52:52 [18622] [6] INFO: AT2[Z1010]: closing device
> 2005-09-27 17:53:37 [18622] [8] INFO: Client connected from <127.0.0.1>
> 2005-09-27 17:54:22 [18622] [8] INFO: Connection closed by the box
> <127.0.0.1>
> 2005-09-27 17:54:27 [18622] [0] WARNING: Killing signal or HTTP admin
> command received, shutting down...
> ---------------------------------------------
> /usr/sbin/smsbox -v 1 smskannel.conf
> 2005-09-27 17:53:37 [18638] [0] INFO: Debug_lvl = 1, log_file = <none>,
> log_lvl = 0
> 2005-09-27 17:53:37 [18638] [0] INFO: Starting to log to file
> /tmp/smsbox.log level 0
> 2005-09-27 17:53:37 [18638] [0] INFO: Added logfile `/tmp/smsbox.log' with
> level `0'.
> 2005-09-27 17:53:37 [18638] [0] INFO: Service global sender set as '13013'
> 2005-09-27 17:53:37 [18638] [0] INFO: Logging accesses to
> '/tmp/access.log'.
> 2005-09-27 17:53:37 [18638] [0] INFO: Started access logfile
> `/tmp/access.log'.
> 2005-09-27 17:53:37 [18638] [0] INFO: HTTP: Opening server at port 13013.
> 2005-09-27 17:53:37 [18638] [0] INFO: Set up send sms service at port 13013
> 2005-09-27 17:53:37 [18638] [0] INFO: Connected to bearerbox at localhost
> port 13001.
> 2005-09-27 17:53:52 [18638] [3] INFO: smsbox: Got HTTP request
> </cgi-bin/sendsms> from <127.0.0.1>
> 2005-09-27 17:53:52 [18638] [3] INFO: sendsms used by <tester>
> 2005-09-27 17:53:52 [18638] [3] INFO: sendsms sender:<tester:13013>
> (127.0.0.1) to:<90121494> msg:<Hello world>
> 2005-09-27 17:53:53 [18638] [3] INFO: smsbox: Got HTTP request
> </favicon.ico> from <127.0.0.1>
> -----------------------------------------
> tail -f /tmp/smsbox.log
> 2005-09-27 17:58:59 [18704] [0] INFO: Added logfile `/tmp/smsbox.log' with
> level `0'.
> 2005-09-27 17:58:59 [18704] [0] INFO: Service global sender set as '13013'
> 2005-09-27 17:58:59 [18704] [0] INFO: Logging accesses to
> '/tmp/access.log'.
> 2005-09-27 17:58:59 [18704] [0] INFO: Started access logfile
> `/tmp/access.log'.
> 2005-09-27 17:58:59 [18704] [0] INFO: HTTP: Opening server at port 13013.
> 2005-09-27 17:58:59 [18704] [0] DEBUG: Started thread 1
> (gwlib/fdset.c:poller)
> 2005-09-27 17:58:59 [18704] [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2005-09-27 17:58:59 [18704] [0] INFO: Set up send sms service at port 13013
> 2005-09-27 17:58:59 [18704] [0] DEBUG: Started thread 3
> (gw/smsbox.c:sendsms_thread)
> 2005-09-27 17:58:59 [18704] [0] DEBUG:
> ----------------------------------------------
> 2005-09-27 17:58:59 [18704] [0] DEBUG: Kannel smsbox version 1.4.0 starting
> 2005-09-27 17:58:59 [18704] [0] DEBUG: Started thread 4
> (gw/smsbox.c:obey_request_thread)
> 2005-09-27 17:58:59 [18704] [0] DEBUG: Started thread 5
> (gw/smsbox.c:url_result_thread)
> 2005-09-27 17:58:59 [18704] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
> to pid 18704.
> 2005-09-27 17:58:59 [18704] [2] DEBUG: Thread 2
> (gwlib/http.c:server_thread) maps to pid 18704.
> 2005-09-27 17:58:59 [18704] [0] DEBUG: Started thread 6
> (gw/smsbox.c:http_queue_thread)
> 2005-09-27 17:58:59 [18704] [0] INFO: Connected to bearerbox at localhost
> port 13001.
> 2005-09-27 17:58:59 [18704] [0] DEBUG: Started thread 7
> (gw/heartbeat.c:heartbeat_thread)
> 2005-09-27 17:58:59 [18704] [3] DEBUG: Thread 3
> (gw/smsbox.c:sendsms_thread) maps to pid 18704.
> 2005-09-27 17:58:59 [18704] [4] DEBUG: Thread 4
> (gw/smsbox.c:obey_request_thread) maps to pid 18704.
> 2005-09-27 17:58:59 [18704] [5] DEBUG: Thread 5
> (gw/smsbox.c:url_result_thread) maps to pid 18704.
> 2005-09-27 17:58:59 [18704] [6] DEBUG: Thread 6
> (gw/smsbox.c:http_queue_thread) maps to pid 18704.
> 2005-09-27 17:58:59 [18704] [7] DEBUG: Thread 7
> (gw/heartbeat.c:heartbeat_thread) maps to pid 18704.
> 2005-09-27 17:59:07 [18704] [2] DEBUG: HTTP: Creating HTTPClient for
> `127.0.0.1'.
> 2005-09-27 17:59:07 [18704] [3] INFO: smsbox: Got HTTP request
> </cgi-bin/sendsms> from <127.0.0.1>
> 2005-09-27 17:59:07 [18704] [3] INFO: sendsms used by <tester>
> 2005-09-27 17:59:07 [18704] [3] INFO: sendsms sender:<tester:13013>
> (127.0.0.1) to:<90121494> msg:<Hello world>
> 2005-09-27 17:59:07 [18704] [3] DEBUG: message length 11, sending 1
> messages
> 2005-09-27 17:59:07 [18704] [3] DEBUG: Status: 202 Answer: <Sent.>
> 2005-09-27 17:59:07 [18704] [3] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
> 2005-09-27 17:59:07 [18704] [3] INFO: smsbox: Got HTTP request
> </favicon.ico> from <127.0.0.1>
> 2005-09-27 17:59:07 [18704] [3] DEBUG: Status: 404 Answer: <Unknown
> request.>
> 2005-09-27 17:59:07 [18704] [3] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
>
> -----------------------------------------
> tail -f /tmp/kannel.log
> 2005-09-27 17:52:41 [18622] [0] INFO: AT2[Z1010]: configuration doesn't
> show modemtype. will autodetect
> 2005-09-27 17:52:41 [18622] [0] INFO:
> ----------------------------------------
> 2005-09-27 17:52:41 [18622] [0] INFO: Kannel bearerbox II version 1.4.0
> starting2005-09-27 17:52:41 [18622] [6] INFO: AT2[Z1010]: opening device
> 2005-09-27 17:52:41 [18622] [0] INFO: MAIN: Start-up done, entering
> mainloop
> 2005-09-27 17:52:42 [18622] [6] INFO: AT2[Z1010]: speed set to 9600
> 2005-09-27 17:52:52 [18622] [6] INFO: AT2[Z1010]: opening device
> 2005-09-27 17:52:52 [18622] [6] WARNING: AT2[Z1010]: trying to open device
> with not closed device!!! Please report!!!
> 2005-09-27 17:52:52 [18622] [6] INFO: AT2[Z1010]: closing device
> 2005-09-27 17:53:37 [18622] [8] INFO: Client connected from <127.0.0.1>
> 2005-09-27 17:54:22 [18622] [8] INFO: Connection closed by the box
> <127.0.0.1>
> 2005-09-27 17:54:27 [18622] [0] WARNING: Killing signal or HTTP admin
> command received, shutting down...
>
>
>
Title: RE: sms send problem
- Re: sms send problem Rodrigo Cremaschi
- RE: sms send problem Wen Jia, Gan
- Re: sms send problem Catalin Trifu
- RE: sms send problem Wen Jia, Gan