Ariful Hossain skrev: > hi > > I have connected kannel to a smpp server. the operators gave me the ton > and npi both zero. but when i try to send msg it gives error message > that INVALID SOURCE ADRESS. > > i have an additional question, what is the "SOURCE ADRESS" actually? is > it the system-id or the shortcode? > > here is my smskannel.conf > > #this is the sample configuration file for using kannel as #a sms gateway. > > group = core > admin-port = 10030 > #admin-port-ssl = true# > admin-password = pass > status-password = pass > admin-deny-ip = "*.*.*.*" > admin-allow-ip = "127.0.0.1" > smsbox-port = 10031 > #smsbox-port-ssl = true# > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1" > log-file = "/home/freeburn/kannel/bearerbox.log" > log-level = 0 > access-log = "/home/freeburn/kannel/access.log" > access-log-clean = false > access-log-format = default > #unified-prefix = # > #white-list = # > #black-list = # > store-type = file > store-location = "/home/freeburn/kannel/storeFile.log" > store-dump-freq = 120 > #ssl-client-certkey-file = # > #ssl-server-cert-file = "/home/freeburn/kannel/serverkey/server.crt"# > #ssl-server-key-file = "/home/freeburn/kannel/serverkey/server.key"# > #ssl-trusted-ca-file = # > sms-incoming-queue-limit = 200 > sms-outgoing-queue-limit = 200 > smsbox-max-pending = 100 > sms-resend-freq = 30 > sms-resend-retry = 10 > dlr-storage = mysql > > #group = smsc > #smsc = fake > #host = "127.0.0.1" > #port = 10000 > > group=smsc > smsc=smpp > smsc-id=aktel > #interface-version=34 > host=192.168.51.5 > port=6200 > #receive-port = 6200 > smsc-username=user > smsc-password=user > system-type="" > transceiver-mode= 1 > #address-range="" > source-addr-autodetect= no > source-addr-ton = 0 > source-addr-npi = 0 > dest-addr-ton = 0 > dest-addr-npi = 0 > enquire-link-interval = 20
source address would typically be your short code. Try commenting out the source-addr-* settings and set source-addr-autodetect=true. Then restart and try sending. Arne -- -------------------------------- Arne K. Haaje | www.drx.no T: 69 51 15 52 | M: 92 88 44 66 --------------------------------