hi everyone, i have got a problem with kannel, it seems not to be sending when i send try to send fake sms, also when i try to send an sms with the keyword nop, it shows that sending failed but it shows the message to be sent and the number to send to.Could be the phone or there is something wrong with the way i have done my configuration.By the way im using the +CGMI:Motorola  Taichi series phone.

 

Here is the configuration file:

 

#
# THIS IS A SAMPLE CONFIGURATION FOR KANNEL
#
# For any modifications to this file, see Kannel User Guide
# If that does not help, send email to [email protected]
#

group=core
admin-port = 13002
smsbox-port=13003
admin-password =
status-password =
#admin-deny-ip = ""
admin-allow-ip ="*.*.*.*"
log-file = "/var/log/bearerbox.log"
log-level = 0
access-log-format="%t %l [SMSC:%i] [SVC:%n] [ACT:%A] [BINF:%B] [from:%p] [to:%P] [flags:%m:%c:%M:%C:%d] [msg:%L:%b] [udh:%U:%u][Delivery Report Value:%d] [SMSC Reply:%A] [SMS User:%n]"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "/var/log/bearerbox.access.log"
http-proxy-host = "127.0.0.1"
#http-proxy-port = 8080
#http-proxy-exceptions = "127.0.0.1"
#http-proxy-username = "user"
#http-proxy-password = "password"
#ssl-certkey-file = ""


# If modemtype=auto, try everyone and defaults to this one
group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"
keepalive-cmd="AT+CBC;+CSQ"
init-string="ATEO+CNMI=2,1,0,1,1"
message-storage="SM"
enable-mms = true
enable-hwhs="AT+IFC=2,2"

#SIEMENS MODEM SETUP
group = modems
id = siemens_tc35
name = "Siemens TC35"
detect-string = "SIEMENS"
detect-string2 = "TC35"
init-string = "AT+CNMI=1,2,0,1,1"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true

# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = "Generic Modem"

group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"

group = modems
id = premicell
name = Premicell
detect-string = "PREMICEL"
no-pin = true
no-smsc = true

group = modems
id = siemens_tc35
name = "Siemens TC35"
detect-string = "SIEMENS"
detect-string2 = "TC35"
init-string = "AT+CNMI=1,2,0,1,1"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true

group = modems
id = siemens_m20
name = "Siemens M20"
detect-string = "SIEMENS"
detect-string2 = "M20"
speed = 19200
enable-hwhs = "AT\\Q3"
keepalive-cmd = "AT+CBC;+CSQ"
need-sleep = true

group = modems
id = siemens_sl45
name = "Siemens SL45"
detect-string = "SIEMENS"
detect-string2 = "SL45"
init-string = "AT+CNMI=1,2,2,2,1"
keepalive-cmd = "AT+CBC;+CSQ"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true
message-storage = "SM"

group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true

group = modems
id = falcom
name = "Falcom"
detect-string = "Falcom"
no-smsc = true

group = modems
id = ericsson_r520m
name = "Ericsson R520m"
detect-string = "R520m"
init-string = "AT+CNMI=3,2,0,0"

group = modems
id = ericsson_t68
name = "Ericsson T68"
detect-string = "T68"
init-string = "AT+CNMI=3,3"
keepalive-cmd = "AT+CBC;+CSQ"
broken = true

group = modems
id = alcatel
name = "Alcatel"
detect-string = "Alcatel"
init-string = "AT+CNMI=3,2,0,0"

#fake smsc
#group=smsc
#smsc=fake
#sms-id=FAKE
#port=10000
#connect-allow-ip=127.0.0.1

# VIRTUAL SMSC FOR CELTEL
group = smsc
smsc = at
smsc-id=celtel
my-number="+26097998995"
modemtype=auto
device=/dev/ttyS0
speed=9600
sms-center="+260971911200"
validityperiod=169
keepalive=6

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13015
sendsms-chars = "0123456789 +-"
global-sender = 13015
log-file = "/var/log/smsbox.log"
log-level = 1
access-log = "/var/log/access.log"
#white-list =
#black-list =
reply-couldnotfetch = "try again"
reply-couldnotrepresent = "try again for yu to get want yu want sorry"
reply-requestfailed ="you request invalid"
reply-emptymessage = ""

 

# SEND-SMS USERS

group = sendsms-user
username = blessed
password = blessed
max-messages = 3
concatenation = true
forced-smsc = celtel

 

# SMS SERVICES

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

group = sms-service
keyword = default
text = "yuor results are on the way"
#get-url = ""
max-messages = 3
concatenation =true
omit-empty = true

 

 

 

 

And here is the results i get when i send the fake sms's;

 

[EMAIL PROTECTED] ~]#  /usr/local/gateway-1.4.0/gw/project.conf test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "100 300 text relay nop"
: command not found1.4.0/gw/project.conf: line 7:
/usr/local/gateway-1.4.0/gw/project.conf: line 9: admin-port: command not found
: command not found1.4.0/gw/project.conf: line 10: smsbox-port=13003
/usr/local/gateway-1.4.0/gw/project.conf: line 11: admin-password: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 12: status-password: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 14: admin-allow-ip: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 15: log-file: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 16: log-level: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 17: access-log-format=%t %l [SMSC:%i] [SVC:%n] [ACT:%A] [BINF:%B] [from:%p] [t: command not found%M:%C:%d] [msg:%L:%b] [udh:%U:%u][Delivery Report Value:%d] [SMSC Reply:%A] [SMS User:%n]
/usr/local/gateway-1.4.0/gw/project.conf: line 18: box-deny-ip: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 19: box-allow-ip: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 20: access-log: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 21: http-proxy-host: command not found
: command not found1.4.0/gw/project.conf: line 27:
: command not found1.4.0/gw/project.conf: line 28:
/usr/local/gateway-1.4.0/gw/project.conf: line 30: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 32: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 33: detect-string: command not found
: command not found1.4.0/gw/project.conf: line 34: keepalive-cmd=AT+CBC;+CSQ
: command not found1.4.0/gw/project.conf: line 35: init-string=ATEO+CNMI=2,1,0,1,1
: command not found1.4.0/gw/project.conf: line 36: message-storage=SM
/usr/local/gateway-1.4.0/gw/project.conf: line 37: enable-mms: command not found
: command not found1.4.0/gw/project.conf: line 38: enable-hwhs=AT+IFC=2,2
: command not found1.4.0/gw/project.conf: line 39:
/usr/local/gateway-1.4.0/gw/project.conf: line 41: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 43: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 44: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 45: detect-string2: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 46: init-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 47: speed: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 48: enable-hwhs: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 49: need-sleep: command not found
: command not found1.4.0/gw/project.conf: line 50:
/usr/local/gateway-1.4.0/gw/project.conf: line 52: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 54: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 57: init-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 58: speed: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 59: enable-hwhs: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 60: need-sleep: command not found
: command not found1.4.0/gw/project.conf: line 62:
/usr/local/gateway-1.4.0/gw/project.conf: line 63: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 65: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 66: detect-string: command not found
: command not found1.4.0/gw/project.conf: line 67:
/usr/local/gateway-1.4.0/gw/project.conf: line 68: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 70: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 71: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 72: no-pin: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 73: no-smsc: command not found
: command not found1.4.0/gw/project.conf: line 74:
/usr/local/gateway-1.4.0/gw/project.conf: line 75: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 77: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 78: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 79: detect-string2: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 80: init-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 81: speed: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 82: enable-hwhs: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 83: need-sleep: command not found
: command not found1.4.0/gw/project.conf: line 84:
/usr/local/gateway-1.4.0/gw/project.conf: line 85: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 87: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 88: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 89: detect-string2: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 90: speed: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 91: enable-hwhs: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 92: keepalive-cmd: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 93: need-sleep: command not found
: command not found1.4.0/gw/project.conf: line 94:
/usr/local/gateway-1.4.0/gw/project.conf: line 95: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 97: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 98: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 99: detect-string2: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 100: init-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 101: keepalive-cmd: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 102: speed: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 103: enable-hwhs: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 104: need-sleep: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 105: message-storage: command not found
: command not found1.4.0/gw/project.conf: line 106:
/usr/local/gateway-1.4.0/gw/project.conf: line 107: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 109: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 110: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 111: need-sleep: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 112: keepalive-cmd: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 113: enable-mms: command not found
: command not found1.4.0/gw/project.conf: line 114:
/usr/local/gateway-1.4.0/gw/project.conf: line 115: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 117: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 118: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 119: no-smsc: command not found
: command not found1.4.0/gw/project.conf: line 120:
/usr/local/gateway-1.4.0/gw/project.conf: line 121: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 123: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 124: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 125: init-string: command not found
: command not found1.4.0/gw/project.conf: line 126:
/usr/local/gateway-1.4.0/gw/project.conf: line 127: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 129: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 130: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 131: init-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 132: keepalive-cmd: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 133: broken: command not found
: command not found1.4.0/gw/project.conf: line 134:
/usr/local/gateway-1.4.0/gw/project.conf: line 135: group: command not found
Try `id --help' for more information.
/usr/local/gateway-1.4.0/gw/project.conf: line 137: name: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 138: detect-string: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 139: init-string: command not found
: command not found1.4.0/gw/project.conf: line 140:
: command not found1.4.0/gw/project.conf: line 147:
/usr/local/gateway-1.4.0/gw/project.conf: line 149: group: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 150: smsc: command not found
: command not found1.4.0/gw/project.conf: line 151: smsc-id=celtel
: command not found1.4.0/gw/project.conf: line 152: my-number=+26097998995
: command not found1.4.0/gw/project.conf: line 156: sms-center=+260971911200
: command not found1.4.0/gw/project.conf: line 159:
: command not found1.4.0/gw/project.conf: line 161:
/usr/local/gateway-1.4.0/gw/project.conf: line 162: group: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 163: bearerbox-host: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 164: sendsms-port: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 165: sendsms-chars: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 166: global-sender: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 167: log-file: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 168: log-level: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 169: access-log: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 172: reply-couldnotfetch: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 173: reply-couldnotrepresent: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 174: reply-requestfailed: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 175: reply-emptymessage: command not found
: command not found1.4.0/gw/project.conf: line 176:
: command not found1.4.0/gw/project.conf: line 177:
: command not found1.4.0/gw/project.conf: line 178:
: command not found1.4.0/gw/project.conf: line 180:
/usr/local/gateway-1.4.0/gw/project.conf: line 181: group: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 182: username: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 183: password: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 184: max-messages: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 185: concatenation: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 186: forced-smsc: command not found
: command not found1.4.0/gw/project.conf: line 187:
: command not found1.4.0/gw/project.conf: line 188:
: command not found1.4.0/gw/project.conf: line 189:
: command not found1.4.0/gw/project.conf: line 191:
/usr/local/gateway-1.4.0/gw/project.conf: line 192: group: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 194: keyword: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 195: aliases: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 196: text: command not found
: command not found1.4.0/gw/project.conf: line 197:
/usr/local/gateway-1.4.0/gw/project.conf: line 198: group: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 199: keyword: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 200: text: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 202: max-messages: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 203: concatenation: command not found
/usr/local/gateway-1.4.0/gw/project.conf: line 204: omit-empty: command not found
: command not found1.4.0/gw/project.conf: line 205:
: command not found1.4.0/gw/project.conf: line 206:
: command not found1.4.0/gw/project.conf: line 207:
: command not found1.4.0/gw/project.conf: line 208:
: command not found1.4.0/gw/project.conf: line 209:
: command not found1.4.0/gw/project.conf: line 210:
: command not found1.4.0/gw/project.conf: line 211:
: command not found1.4.0/gw/project.conf: line 212:
: command not found1.4.0/gw/project.conf: line 213:
: command not found1.4.0/gw/project.conf: line 214:
: command not found1.4.0/gw/project.conf: line 215:
 

please help, i would be very grateful

 

chris

 

 

 

 


Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Reply via email to