Selasa, 31 Agustus 2010

help on huawei e160 gsm modem

Hey folks am happy with the help you have accorded me this far but then you told me to post my configuration file as well as the error from the log file and i have done exactly that and i hope you will help me remedy the problem of error of CMS:321 as shown in the log file below and if possible post me the necessary fix to my problem.
Finally i have read the user guide time and again on the part of the mysql database in that i want to link kannel which i have installed on my fedora 13 with the MYSQL server within fedora.But considering that i installed kannel from an rpm package,how possible is it that i will easily link it with the database. If am way wide provide me with the neccessary remedy that will enable me to send the messages i receive directly into the database tables of the mysql server.If anything you can post the neccesssary sites that i can visit inorder to succesfully configure kannel with mysql support considering that i have already installed kannel from an rpm package.

#CAMCOM MOBILE CONFIGURATION FILE
group = core
admin-port = 13000
admin-password = mac
status-password = henry
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
log-file = "/home/mac/bearerbox.log"
log-level = 1
access-log = "/home/mac/kannel.access"
dlr-storage = internal

group = smsc
smsc = at
port = 10000
modemtype = auto
device = /dev/ttyUSB0
my-number = 0888959802
log-level = 0
connect-allow-ip = "127.0.0.1"
sim-buffering = true

group = modems
id = huawei-e160
name = "huawei-e160"
detect-string = "huawei"
init-string = "ATZ"
init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
init-string = "AT+CNMI= 2,0,0,2,0 "
#init-string = "AT+CPMS=ME"
#init-string = "AT+CMGL=ALL"
message-storage = sm
speed = 9600

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789"
global-sender = "0888959802"
access-log = "/home/mac/kannel.access"
log-file = "/home/mac/smsbox.log"
log-level = 0
group = sendsms-user
username = 123
password = 123
max-messages = 1
concatenation = true
group = sms-service
keyword = hi
text = "singly configured for the world of poly!"

#default service
group = sms-service
keyword = default
text = "INSTANT REPLY FROM KANNEL WITH COURTESY OF MAC!!!THE KANNEL IS A BEAUTIFUL TECHNOLOGY..WE WILL SOON GET THERE"
#group = smsc
#smsc = fake
#smsc-id = FAKE
#host = localhost
#port = 10000
[root@localhost ~]# /usr/sbin/bearerbox -v 1 /etc/kannel.conf &
[1] 5335
[root@localhost ~]# 2010-08-30 11:06:04 [5335] [0] INFO: Debug-lvl = 1, log-file = , log-lvl = 0
2010-08-30 11:06:04 [5335] [0] INFO: DLR using storage type: internal
2010-08-30 11:06:04 [5335] [0] INFO: Added logfile `/home/mac/bearerbox.log' with level `1'.
2010-08-30 11:06:04 [5335] [0] INFO: Started access logfile `/home/mac/kannel.access'.
2010-08-30 11:06:04 [5335] [0] INFO: HTTP: Opening server at port 13000.
2010-08-30 11:06:04 [5335] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
2010-08-30 11:06:04 [5335] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-08-30 11:06:04 [5335] [0] INFO: SMS resend retry set to unlimited.
2010-08-30 11:06:04 [5335] [0] INFO: DLR rerouting for smsc id disabled.
2010-08-30 11:06:04 [5335] [0] INFO: AT2[/dev/ttyUSB0]: configuration doesn't show modemtype. will autodetect
2010-08-30 11:06:04 [5335] [0] INFO: Adding interface *
2010-08-30 11:06:04 [5335] [0] ERROR: Missing wapbox-port variable, cannot start WAP
2010-08-30 11:06:04 [5335] [0] INFO:

Hey folks am happy with the help you have accorded me this far but then you told me to post my configuration file as well as the error from the log file and i have done exactly that and i hope you will help me remedy the problem of error of CMS:321 as shown in the log file below and if possible post me the necessary fix to my problem.

Finally i have read the user guide time and again on the part of the mysql database in that i want to link kannel which i have installed on my fedora 13 with the MYSQL server within fedora.But considering that i installed kannel from an rpm package,how possible is it that i will easily link it with the database. If am way wide provide me with the neccessary remedy that will enable me to send the messages i receive directly into the database tables of the mysql server.If anything you can post the neccesssary sites that i can visit inorder to succesfully configure kannel with mysql support considering that i have already installed kannel from an rpm package.

   
#CAMCOM MOBILE CONFIGURATION FILE
group = core
admin-port = 13000
admin-password = mac
status-password = henry
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
log-file = "/home/mac/bearerbox.log"
log-level = 1
access-log = "/home/mac/kannel.access"
dlr-storage = internal

group = smsc
smsc = at
port = 10000
modemtype = auto
device = /dev/ttyUSB0
my-number = 0888959802
log-level = 0
connect-allow-ip = "127.0.0.1"
sim-buffering = true

group = modems
id = huawei-e160
name = "huawei-e160"
detect-string = "huawei"
init-string = "ATZ"
init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
init-string = "AT+CNMI= 2,0,0,2,0 "
#init-string = "AT+CPMS=ME"
#init-string = "AT+CMGL=ALL"
message-storage = sm
speed = 9600


group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789"
global-sender = "0888959802"
access-log = "/home/mac/kannel.access"
log-file = "/home/mac/smsbox.log"
log-level = 0

group = sendsms-user
username = 123
password = 123
max-messages = 1
concatenation = true
group = sms-service
keyword = hi
text = "singly configured for the world of poly!"

#default service
group = sms-service
keyword = default
text = "INSTANT REPLY FROM KANNEL WITH COURTESY OF MAC!!!THE KANNEL IS A BEAUTIFUL TECHNOLOGY..WE WILL SOON GET THERE"

#group = smsc
#smsc = fake
#smsc-id = FAKE
#host = localhost
#port = 10000


[root@localhost ~]# /usr/sbin/bearerbox -v 1 /etc/kannel.conf &
[1] 5335
[root@localhost ~]# 2010-08-30 11:06:04 [5335] [0] INFO: Debug-lvl = 1, log-file = , log-lvl = 0
2010-08-30 11:06:04 [5335] [0] INFO: DLR using storage type: internal
2010-08-30 11:06:04 [5335] [0] INFO: Added logfile `/home/mac/bearerbox.log' with level `1'.
2010-08-30 11:06:04 [5335] [0] INFO: Started access logfile `/home/mac/kannel.access'.
2010-08-30 11:06:04 [5335] [0] INFO: HTTP: Opening server at port 13000.
2010-08-30 11:06:04 [5335] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
2010-08-30 11:06:04 [5335] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-08-30 11:06:04 [5335] [0] INFO: SMS resend retry set to unlimited.
2010-08-30 11:06:04 [5335] [0] INFO: DLR rerouting for smsc id <(null)> disabled.
2010-08-30 11:06:04 [5335] [0] INFO: AT2[/dev/ttyUSB0]: configuration doesn't show modemtype. will autodetect
2010-08-30 11:06:04 [5335] [0] INFO: Adding interface *
2010-08-30 11:06:04 [5335] [0] ERROR: Missing wapbox-port variable, cannot start WAP
2010-08-30 11:06:04 [5335] [0] INFO: 2010-08-30 11:06:04 [5335] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2010-08-30 11:06:04 [5335] [0] INFO: MAIN: Start-up done, entering mainloop
2010-08-30 11:06:04 [5335] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-08-30 11:06:05 [5335] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-08-30 11:06:07 [5335] [6] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-08-30 11:06:07 [5335] [6] INFO: AT2[/dev/ttyUSB0]: detect speed is 115200
2010-08-30 11:06:07 [5335] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-08-30 11:06:08 [5335] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-08-30 11:06:10 [5335] [6] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-08-30 11:06:10 [5335] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-08-30 11:06:10 [5335] [6] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-08-30 11:06:11 [5335] [6] INFO: AT2[/dev/ttyUSB0]: init device
2010-08-30 11:06:11 [5335] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200
2010-08-30 11:06:12 [5335] [6] INFO: AT2[/dev/ttyUSB0]: AT SMSC successfully opened.
2010-08-30 11:06:17 [5335] [6] ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: +CMS ERROR: 321
2010-08-30 11:06:17 [5335] [6] ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: Invalid memory index -> don't worry, just memory fragmentation. (321)
/usr/sbin/smsbox -v 1 /etc/kannel.conf &
[2] 5356
[root@localhost ~]# 2010-08-30 11:06:25 [5356] [0] INFO: Debug-lvl = 1, log-file = , log-lvl = 0
2010-08-30 11:06:25 [5356] [0] INFO: Starting to log to file /home/mac/smsbox.log level 0
2010-08-30 11:06:25 [5356] [0] INFO: Added logfile `/home/mac/smsbox.log' with level `0'.
2010-08-30 11:06:25 [5356] [0] INFO: Service global sender set as '0888959802'
2010-08-30 11:06:25 [5356] [0] INFO: Logging accesses to '/home/mac/kannel.access'.
2010-08-30 11:06:25 [5356] [0] INFO: Started access logfile `/home/mac/kannel.access'.
2010-08-30 11:06:25 [5356] [0] INFO: HTTP: Opening server at port 13013.
2010-08-30 11:06:25 [5356] [0] INFO: Set up send sms service at port 13013
2010-08-30 11:06:25 [5335] [5] INFO: Client connected from <127.0.0.1>
2010-08-30 11:06:25 [5356] [0] INFO: Connected to bearerbox at localhost port 13001.
2010-08-30 11:07:19 [5356] [4] INFO: Starting to service
You can now send please call back request by dialling *701*099xxxxxxx#.Zain.A wonderful world> from <+265995508464> to <0888959802>
2010-08-30 11:07:22 [5335] [6] ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: +CMS ERROR: 321
2010-08-30 11:07:22 [5335] [6] ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: Invalid memory index -> don't worry, just memory fragmentation. (321)
service kannel stop
Shutting down kannel sms box: 2010-08-30 11:07:53 [5335] [13] INFO: Connection closed by the box <127.0.0.1>
[ OK ]
Shutting down kannel bearer box: 2010-08-30 11:07:53 [5335] [0] WARNING: Killing signal or HTTP admin command received, shutting down...
2010-08-30 11:07:55 [5335] [6] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-08-30 11:07:55 [5335] [0] INFO: All flow threads have died, killing core
2010-08-30 11:07:55 [5335] [0] INFO: Total WDP messages: received 0, sent 0
2010-08-30 11:07:55 [5335] [0] INFO: Total SMS messages: received 1, sent 1
[ OK ]
[1]- Done /usr/sbin/bearerbox -v 1 /etc/kannel.conf
[2]+ Terminated /usr/sbin/smsbox -v 1 /etc/kannel.conf
[root@localhost ~]#

Tidak ada komentar:

Poskan Komentar