Yulianto, I am having the exact same problem as Thom: I wrote a script that sends 15 messages, which loads up the queue. While there are messages queued, I send a message to the GSM modem. This causes several messages to fail sending.
Can you setup a similar test and update us with the results? Here is my configuration: ################################################################ group = core admin-port = 13000 admin-password = ******** admin-deny-ip = "*.*.*.*" admin-allow-ip = "192.168.1.*;65.36.154.35" smsbox-port = 13001 log-file = "/var/log/kannel/bearerbox.log" box-deny-ip = "*.*.*.*" box-allow-ip = "192.168.1.*;65.36.154.35;127.0.0.1" #SMSC CONNECTIONS group = smsc smsc = at2 smsc-id = 16195192314 modemtype = wavecom device = /dev/ttyS0 keepalive = 60 sim-buffering = true #MODEM DEFINITIONS group = modems id = wavecom name = Wavecom detect-string = "WAVECOM" init-string = "AT+CNMI=2,2,0,1,0" sendline-sleep = 200 keepalive-cmd = "AT+CSQ" #SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 log-file = "/var/log/kannel/smsbox.log" http-request-retry = 6 #SEND-SMS USERS group = sendsms-user username = tester password = foobar # 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" # SERVICES group = sms-service keyword = nop text = "You asked nothing and I did it!" # this service is for Kannel relay testing, when this Kannel # works as relay gateway group = sms-service keyword = dtown aliases = DTOWN;Dtown get-url = "http://www.2chatter.com/parseSMS/dtown.php?sender=%p&smsprefix=%k&sms=% s%r&fullsms=%a&recip=%P" max-messages = 1 catch-all = true group = sms-service keyword = downtown aliases = DOWNTOWN;Downtown get-url = "http://www.2chatter.com/parseSMS/downtown.php?sender=%p&smsprefix=%k&sm s=%s%r&fullsms=%a&recip=%P" max-messages = 1 catch-all = true group = sms-service keyword = pickup aliases = PICKUP;Pickup get-url = "http://www.2chatter.com/ams/pickup.php?sender=%p&smsprefix=%k&sms=%s%r& fullsms=%a&recip=%P" max-messages = 1 catch-all = true group = sms-service keyword = deliver aliases = DELIVER;Deliver get-url = "http://www.2chatter.com/ams/deliver.php?sender=%p&smsprefix=%k&sms=%s%r &fullsms=%a&recip=%P" max-messages = 1 catch-all = true # there should be default always group = sms-service keyword = default get-url = "http://www.2chatter.com/parseSMS/default.php?sender=%p&smsprefix=%k&sms =%s%r&fullsms=%a&recip=%P" max-messages = 1 catch-all = true ################################################################### Nicholas Calugar 619-546-9803 866-404-2428 Chatter 3577 4th Ave. San Diego, CA 92103 www.2chatter.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yulianto Z Sent: Monday, February 02, 2004 6:41 AM To: [EMAIL PROTECTED] Subject: Re: Re: Sending and receiving sms simutlaneously Hi Thom, On Mon, 2004-02-02 at 17:40, [EMAIL PROTECTED] wrote: > Hi, > This time I tried to send 5 messages. While sending the first message, I tried to send a message from my mobile to the gsm modem. After reviewing the bearerbox log file, I'm able to see the > <-- +CMT: ,21 line and that the incoming message is being processed and inserted into the database. > So, you can receive SMS, and fetch into DB successfully. > However all of the 5 messages have error messages i.e > <-- ERROR > 2004-02-02 18:11:03 [1028] [7] DEBUG: AT2[GSMModem]: send command status: -1 > According to Kannel source (smsc_at.c line 1870,1885).. the error coming from at2_send_one_message(). So I assume there is no problem with receiving SMS... Then it might be something wrong with your application that send reply thru SMS-box service. - Have you check SMS length of your reply? - Any special flag (MWI, MClass, coding, alt-DCS) that you use? I have look at your kannel-config.. seems OK.. Almost similar with my one (I use iTegno as well)... So it should work, since my one works well.. Anyway.. you could try to increase verbosity, to get idea what is the problem.. log-level = 0 might help. I found few case that SMS failed to be sent, becoz traffic jam from cellphone provider. > and could not be send out. Is there anything to do with the config file or the initialization of my gsm modem? > > > > > > > From: Yulianto Z <[EMAIL PROTECTED]> > > Date: Sun 01/02/2004 11:9 AM GMT+08:00 > > To: [EMAIL PROTECTED] > > Subject: Re: Sending and receiving sms simutlaneously > > > > Hi Thom, > > I think you should include your kannel config. It will help to analyze > > the problem. > > > > On Sat, 2004-01-31 at 13:13, [EMAIL PROTECTED] wrote: > > > Hi Guys, > > > > > > Been testing kannel for few weeks. It has been a great s/w but i got 2 problems. I'm using a iTegno gsm modem as the smsc. > > > > > > 1. During the process of sending mass sms messages, I tried to send a message to the gsm modem from my mobile. But kannel did not receive it after checking the log files. Is this a hardware or software limitation? > > > > > If you use log-level 0 (which is default), you will see any SMS-in, eg.: > > 2004-01-24 02:47:52 [7] DEBUG: AT2[GSMModem]: <-- +CMT: ,21 > > 2004-01-24 02:47:52 [7] DEBUG: AT2[GSMModem]: <-- > > 07912xxxxxxxxxxxxxxxxxxxxxxx > > xxxxxxxxxxxxxxxxxxxxxxxx3B > > If you don't see these lines, then your cellphone SMSC does not send you > > anything. > > Kannel behaviour depend on config, so you might recheck your config. > > Especially when you upgrade from one version to other version, it is > > worth to reread kannel docs. > > > > > 2. After no requests for about an hour, the smsbox terminates itself. The smsbox log files shows this: > > > > > > 2004-01-31 02:04:23 [1049] [8] DEBUG: data: 0a 0a .. > > > 2004-01-31 02:04:23 [1049] [8] DEBUG: Octet string dump ends. > > > > > > > > > 2004-01-31 03:31:43 [1037] [0] ERROR: Error reading from fd 23: > > > 2004-01-31 03:31:43 [1037] [0] ERROR: System error 110: Connection timed out > > > 2004-01-31 03:31:43 [1037] [0] ERROR: Connection to bearerbox broke. > > > 2004-01-31 03:31:43 [1037] [0] INFO: Received (and handled?) 20 requests in 9299 seconds (0.00 per second) > > > 2004-01-31 03:31:43 [1037] [0] INFO: Kannel smsbox terminating. > > > > > > what's happening here? > > > > > Is bearerbox alive? > > Any firewall (iptables/ipchains) problem? > > > > > 3. The information of my server: > > > > > > Kannel bearerbox version `cvs-20040127'. > > > Build `Jan 30 2004 00:59:17', compiler `3.2 20020903 (Red Hat Linux 8.0 3.2-7)'. > > > System Linux, release 2.4.24, version #6 SMP Fri Jan 30 09:18:02 SGT 2004, machine i686. > > > Hostname localhost.localdomain, IP 127.0.0.1. > > > Libxml version 2.4.23. > > > Using native malloc. > > > > > > Thanks for reading. > > > > > > > > > regards, > > > Thomas Hoi > > > HP: 97680834 > > -- > > Regards, > > [cogito ergo sum] > > > > GPG fingerprint: > > E2BC 9029 F3FB 90C7 2FAB 9E42 421E F015 119E 0D5D > > GPG Public key: > > http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x119E0D5D > > > > > > > > regards, > Thomas Hoi > HP: 97680834 -- Regards, [cogito ergo sum] GPG fingerprint: E2BC 9029 F3FB 90C7 2FAB 9E42 421E F015 119E 0D5D GPG Public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x119E0D5D
