I'am having problem with sending long messages to SMSC. First part is sent
immidiately and the rest goes to kannel.store. When I restart kannel then
the rest of the message is sent to SMSC. 
Now I tweeked this in a way that I split message in my aplication and send
second part of the message from aplication with one second delay after first
part. 
I'am using RHES3 UP6 with installed kannel-1.4.1-2.el3.rf.rpm from DAG
packages.
Here are my kannel.conf and one example from log files.

kannel.conf:
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = xxxx
log-file = "/var/log/kannel/core-kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
unified-prefix = "00xx,0;00x,+"
access-log = "/var/log/kannel/core-access.log"
store-file = "/var/log/kannel/kannel.store"

group = smsc
smsc = fake
smsc-id = fake
port = 10000
connect-allow-ip = 127.0.0.1
denied-smsc-id = "connex;orange;zapp"

# ORANGE
group = smsc
smsc = emi
smsc-id = orange
host = a.b.c.d
port = 5451
receive-port = 5453
idle-timeout = 0
keepalive = 30
denied-smsc-id = "fake;connex;zapp"
connect-allow-ip = a.b.c.d
smsc-username = xxxx
smsc-password = yyyy

# VODAFONE (CONNEX)
group = smsc
smsc = emi
smsc-id = connex
host = a.b.c.d
port = 3001
idle-timeout = 0
keepalive = 30
our-port = 7865
receive-port = 6865
denied-smsc-id = "fake;orange;zapp"
connect-allow-ip = a.b.c.d

# ZAPP
group = smsc
smsc = smpp
smsc-id = zapp
host = a.b.c.d
port = 3700
receive-port = 3700
denied-smsc-id = "fake;orange;connex"
connect-allow-ip = a.b.c.d
smsc-username = xxxx
smsc-password = yyyy
system-type = "VMA"
dest-addr-ton = 1
dest-addr-npi = 1
address-range = ""
source-addr-ton = 1
source-addr-npi = 1
unified-prefix = "-,00x"

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 1865
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox-smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsbox-access.log"
reply-couldnotfetch = "xxxx"
immediate-sendsms-reply = false

group = sendsms-user
username = tester
password = foobar
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"

group = sms-service
keyword = nop
text = "Trazio si nista i to si dobio!"

group = sms-service
keyword = default
get-url = "http://192.168.4.246:80/cgi/get?goper=1&gsms=%a&gnum=%p";
max-messages = 0
concatenation = false
text = "Fake"
accepted-smsc = fake

# VODAFONE (CONNEX)
group = sms-service
keyword = default
get-url = "http://192.168.4.246:80/cgi/get?goper=2&gsms=%a&gnum=%p";
max-messages = 0
concatenation = false
text = "Vodafone Connex"
accepted-smsc = connex

# ORANGE
group = sms-service
keyword = default
get-url = "http://192.168.4.246:80/cgi/get?goper=3&gsms=%a&gnum=%p";
max-messages = 0
concatenation =false
text = "Orange"
accepted-smsc = orange

# ZAPP
group = sms-service
keyword = default
get-url = "http://192.168.4.246:80/cgi/get?goper=4&gsms=%a&gnum=%p";
max-messages = 0
concatenation = false
text = "Zapp"
accepted-smsc = zapp

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

# Vodafone (Connex)
group = sendsms-user
username = connexuser
password = connexpass
user-deny-ip = "*.*.*.*"
user-allow-ip =
"127.0.0.1;192.168.4.246;192.168.4.251;192.168.4.252;192.168.4.253;192.168.4.247"
forced-smsc = connex
max-messages = 9
concatenation = false

# Orange
group = sendsms-user
username = orangeuser
password = orangepass
user-deny-ip = "*.*.*.*"
user-allow-ip =
"127.0.0.1;192.168.4.246;192.168.4.251;192.168.4.252;192.168.4.253;192.168.4.247"
forced-smsc = orange
max-messages = 9
concatenation = false

# Zapp
group = sendsms-user
username = zappuser
password = zapppass
user-deny-ip = "*.*.*.*"
user-allow-ip =
"127.0.0.1;192.168.4.246;192.168.4.251;192.168.4.252;192.168.4.253;192.168.4.247"
forced-smsc = zapp
max-messages = 9
concatenation = false

core-access.log
2007-05-14 00:55:30 Receive SMS [SMSC:orange] [SVC:] [ACT:] [BINF:]
[from:xxxxxxx] [to:10186500000] [flags:-1:0:-1:0:-1] [msg:17:message_text]
[udh:0:]
2007-05-14 00:55:30 Sent SMS [SMSC:orange] [SVC:orangeuser] [ACT:] [BINF:]
[from:1865] [to:xxxxxxx] [flags:-1:0:-1:-1:-1] [msg:160:message_text]
[udh:0:]
...
2007-05-14 08:12:57 Log begins
2007-05-14 08:13:01 Sent SMS [SMSC:orange] [SVC:orangeuser] [ACT:] [BINF:]
[from:1865] [to:xxxxxxx] [flags:-1:0:-1:-1:-1] [msg:44:rest_of_message_text]
[udh:0:]

core-kannel.log
2007-05-14 00:55:30 [5296] [8] DEBUG: EMI2[orange]: Got packet from the main
socket
2007-05-14 00:55:30 [5296] [8] DEBUG: EMI2[orange]: emi2 parsing packet:
<^B09/00128/O/52/10186500000/xxxxxxx////////////0000/140507005529////3//7A2031332E30352E323030372034353035///0///////020100///AE^C>
2007-05-14 00:55:30 [5296] [8] DEBUG: EMI2[orange]: emi2 sending packet:
<^B09/00020/R/52/A///9E^C>
2007-05-14 00:55:30 [5296] [16] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2007-05-14 00:55:30 [5296] [16] DEBUG: boxc_sender: sent message to
<127.0.0.1>
2007-05-14 00:55:30 [5296] [15] DEBUG: boxc_receiver: got ack
2007-05-14 00:55:30 [5296] [15] DEBUG: boxc_receiver: sms received
2007-05-14 00:55:30 [5296] [15] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2007-05-14 00:55:30 [5296] [8] DEBUG: EMI2[orange]: emi2 sending packet:
<^B64/00387/O/51/xxxxxxx/1865/////////////////3//4C697374612064652062696C657465206163636570746174652031332E30352E323030373A2062696C65743A393431313920342E33352033312E3336203133362E343220502062696C65743A31303038313920322E31372031392E32312034312E363920502062696C65743A31303937313920322E31372031352E30392033322E37352050204465706F7A6974756C206476732E20657374653A20302E30302E/////////////AA^C>
2007-05-14 00:55:30 [5296] [8] DEBUG: EMI2[orange]: Got packet from the main
socket
2007-05-14 00:55:30 [5296] [8] DEBUG: EMI2[orange]: emi2 parsing packet:
<^B64/00046/R/51/A//xxxxxxx:140507005530/DC^C>
2007-05-14 00:55:49 [5296] [14] DEBUG: Dumping 1 messages to store

-- 
View this message in context: 
http://www.nabble.com/Long-messages-problem-tf3751302.html#a10600729
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to