Hi Tharanga,

Actually I have tried minicom, because I am connecting my modem through a 
serial to USB port. When I type AT it says ok, but when I try other AT commands 
that I see kannel is using to send a particular message it always says error. 
For example:

AT+CMGS=24^M
> hello

ERROR

I also tried to use wvdial, and it can detect my modem on the usb port I 
connected my modem to. My OS can also detect it for when I look for the log in 
/var/log/messages I can see the following:

Sep 17 15:03:52 host kernel: pl2303 2-2:1.0: pl2303 converter detected
Sep 17 15:03:52 host kernel: usb 2-2: pl2303 converter now attached to ttyUSB0
Sep 17 15:03:52 host kernel: usbcore: registered new driver pl2303
Sep 17 15:03:52 host kernel: drivers/usb/serial/pl2303.c: Prolific PL2303 USB 
to serial adaptor driver

Does this mean my problem is really my gsm modem?

So much thanks,
Joyce




----- Original Message ----
From: Tharanga <[EMAIL PROTECTED]>
To: Tharanga <[EMAIL PROTECTED]>; Joyce Gutierrez <[EMAIL PROTECTED]>
Cc: Kannel users <users@kannel.org>
Sent: Monday, September 29, 2008 3:55:45 PM
Subject: Re: Generic Error while Sending Message with Kannel

 
sorry...it will not work for minicom. u have a 
USB.. can OS recognized your driver ?
 
----- Original Message ----- 
From: Tharanga 
To: Joyce Gutierrez 
Cc: Kannel users 
Sent: Monday, September 29, 2008 1:21  PM
Subject: Re: Generic Error while Sending  Message with Kannel

May be the problem with your USB modem. try to  connect it from minicom and 
see. (it should accept AT commands). otherthan  that i cant see any problem in 
your config .
 
--Tharanga Abeyseela--
----- Original Message ----- 
From: Joyce  Gutierrez 
To: Tharanga 
Cc: Kannel users 
Sent: Monday, September 29, 2008 12:35  PM
Subject: Re: Generic Error while  Sending Message with Kannel

Hi,

thanks for replying, here is my current  kannel.conf

group = core
admin-port = 15000
smsbox-port =  15001
admin-password = password
status-password =  foo
#admin-deny-ip = ""
#admin-allow-ip = ""
#http-proxy-host = 
#http-proxy-username = 
#http-proxy-password =     
log-file = "/var/log/kannel/kannel.log"
log-level = 0
box-deny-ip  = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix =  "+358,00358,0;+,00"
access-log =  "/var/log/kannel/access.log"
#store-file =  "kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file  = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"

group =  smsc
smsc = at
modemtype = auto
device = /dev/ttyUSB0
my-number  = +639089568898
#smsc-center = +639180000130 
smsc-id = SDI
#port =  13001
#port = 10000
connect-allow-ip = 127.0.0.1
log-level =  0
log-file = /var/log/kannel/smsc.log
#speed = 115200

group =  smsbox
bearerbox-host = 127.0.0.1
sendsms-port =  15013
global-sender = +639089568898
sendsms-chars = "0123456789  +-"
log-file = "/var/log/kannel/smsbox.log"
log-level =  0
access-log = "/var/log/kannel/smsboxaccess.log"

group =  sendsms-user
username = tester
password = foobar
#user-deny-ip =  ""
#user-allow-ip = ""
concatenation =true
max-messages =  4

group = sms-service
keyword = nop
text = "You asked nothing  and I did it!"

group = sms-service
keyword = default
text = "No  service specified"

group = sms-service
keyword =
keyword-regex  = .*
catch-all = yes
max-messages = 0
get-url =  "http://localhost/sms.php?phone=%p&text=%a";

include =  "/usr/local/kannel/modems.conf"

    
    I hope somebody could somehow point out what problem  I have to experience 
this sudden issue with my Kannel. I hope it's not  hardware related as I have 
read on some other posts. But if it is might as  well face it and replace my 
current gsm modem.

Thank in  advance,
Joyce




-----  Original Message ----
From: Tharanga <[EMAIL PROTECTED]>
To:  Joyce Gutierrez <[EMAIL PROTECTED]>; Kannel users  <users@kannel.org>
Sent: Monday, September 29, 2008 2:07:06  PM
Subject: Re: Generic Error while Sending Message with Kannel

 
Can u share your kannel.conf with  us.
 
--Tharanga Abeyseela--
-----  Original Message ----- 
From: Joyce  Gutierrez 
To: Kannel users 
Sent: Monday, September 29, 2008 9:43 AM
Subject: Generic Error while Sending Message with Kannel

Hi guys,

I suddenly had a problem with my kannel installation.  I have successfully 
configured it in the past enabling my gsm modem to  send and receive messages 
to and from a mobile phone. However, now,  whenever I try to send messages with 
kannel, I always get a generic error  as follows:

2008-09-29 11:32:41 [17132] [6] INFO: AT2[TSG]: AT SMSC  successfully opened.
2008-09-29 11:33:09 [17132] [6] DEBUG: AT2[TSG]:  TP-Validity-Period: 24.0 hours
2008-09-29 11:33:09 [17132] [6] DEBUG:  AT2[TSG]: --> AT+CMGS=24^M
2008-09-29 11:33:09 [17132] [6] DEBUG:  AT2[TSG]: <--
2008-09-29 11:33:09 [17132] [6] DEBUG: AT2[TSG]:  <-- >
2008-09-29 11:33:09 [17132] [6] DEBUG: AT2[TSG]: send  command status: 1
2008-09-29 11:33:09 [17132] [6] DEBUG: AT2[TSG]:  --> 
0011000B819080893786F40000A70BC8329BFD06DDDF723619
2008-09-29  11:33:09 [17132] [6] DEBUG: AT2[TSG]: --> ^Z
2008-09-29 11:33:19  [17132] [6] DEBUG: AT2[TSG]: <-- ERROR
2008-09-29 11:33:19 [17132]  [6] ERROR: AT2[TSG]: Generic error: ERROR
2008-09-29 11:33:19 [17132]  [6] DEBUG: AT2[TSG]: send command status: -1
2008-09-29 11:33:19  [17132] [6] DEBUG: AT2[TSG]: --> AT+CMGS=24^M
2008-09-29 11:33:19  [17132] [6] DEBUG: AT2[TSG]: <-- >
2008-09-29 11:33:19 [17132]  [6] DEBUG: AT2[TSG]: send command status: 1
2008-09-29 11:33:19 [17132]  [6] DEBUG: AT2[TSG]: -->  
0011000B819080893786F40000A70BC8329BFD06DDDF723619

I have tried to  reset the modem I am using several times and also reinstall my 
kannel;but,  unfortunately I still get the same error. I read in some posts 
that this  problem could be caused by an unstable modem or SMSC. Could there be 
any  work around on this? I just really need to revive my Kannel  installation.

Thanks in  advance,


      

Reply via email to