Problem with delivery report message about 0: Accepted for delivery

2009-01-09 Thread Pham Ngoc Khanh
Hi all,

I got a problem with the delivery report message about 0: Accepted for 
delivery. Below is my configuration

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
log-file = /tmp/kannel.log
log-level = 0
box-allow-ip = 127.0.0.1

group = modems
id = nokiaphone
name = Nokia
detect-string = Nokia
detect-string2 = E51
need-sleep = true
init-string = AT+CPMS=?

group = smsc
smsc = at
smsc-id=nokia
modemtype = nokiaphone
device=/dev/ttyACM0
my-number = x
sms-center = x
speed = 0

group = smsc
smsc = smpp
smsc-id = smpp
port = 2775
connect-allow-ip = *.*.*.*
host = localhost
smsc-username = smsc
smsc-password = smsc
system-type = VMA
address-range = 
denied-smsc-id = smpp;nokia

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 
log-level = 0

group = sendsms-user
username = user
password = user
concatenation= true

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

group = sms-service
keyword = mibento
get-url = 
http://localhost:13013/cgi-bin/sendsms?username=userpassword=userfrom=%pto=%Ptext=%Ssmsc=nokia;
max-messages = 1
accepted-smsc = smpp

The problem is that after Kannel sent message to client it then sends the 
message 0: Accepted for delivery to client as well. I read somewhere on th 
internet that set: max-messages=0 will prevent sending reply message. But if I 
do that, Kannel does not send any message to client.
So could someone tell me what i was wrong, and help me out?

Thank in advance
K






Re: Problem with delivery report message about 0: Accepted for delivery

2009-01-09 Thread Nikos Balkanas

Hi,

Well, you need to tell Kannel what to do with the DLR report it got. Have 
you tried specifying a dlr-url in your sms-service group?


I iamgine you talk about MOs.

BR,
Nikos
- Original Message - 
From: Pham Ngoc Khanh pnk...@yahoo.com

To: Kannel users@kannel.org
Sent: Friday, January 09, 2009 11:56 AM
Subject: Problem with delivery report message about 0: Accepted for 
delivery



Hi all,

I got a problem with the delivery report message about 0: Accepted for 
delivery. Below is my configuration


group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
log-file = /tmp/kannel.log
log-level = 0
box-allow-ip = 127.0.0.1

group = modems
id = nokiaphone
name = Nokia
detect-string = Nokia
detect-string2 = E51
need-sleep = true
init-string = AT+CPMS=?

group = smsc
smsc = at
smsc-id=nokia
modemtype = nokiaphone
device=/dev/ttyACM0
my-number = x
sms-center = x
speed = 0

group = smsc
smsc = smpp
smsc-id = smpp
port = 2775
connect-allow-ip = *.*.*.*
host = localhost
smsc-username = smsc
smsc-password = smsc
system-type = VMA
address-range = 
denied-smsc-id = smpp;nokia

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 
log-level = 0

group = sendsms-user
username = user
password = user
concatenation= true

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

group = sms-service
keyword = mibento
get-url = 
http://localhost:13013/cgi-bin/sendsms?username=userpassword=userfrom=%pto=%Ptext=%Ssmsc=nokia;

max-messages = 1
accepted-smsc = smpp

The problem is that after Kannel sent message to client it then sends the 
message 0: Accepted for delivery to client as well. I read somewhere on th 
internet that set: max-messages=0 will prevent sending reply message. But if 
I do that, Kannel does not send any message to client.

So could someone tell me what i was wrong, and help me out?

Thank in advance
K







Re: Problem with delivery report message about 0: Accepted for delivery

2009-01-09 Thread Marcin Bockowski
2009/1/9 Pham Ngoc Khanh pnk...@yahoo.com:
 group = sms-service
 keyword = mibento
 get-url = 
 http://localhost:13013/cgi-bin/sendsms?username=userpassword=userfrom=%pto=%Ptext=%Ssmsc=nokia;
 max-messages = 1
 accepted-smsc = smpp

Change get-url param to place where Your SMS should go (Your
webservice or even simple hello.html file). In response You will
receive message with content coming from that URL.

 The problem is that after Kannel sent message to client it then sends the 
 message 0: Accepted for delivery to client as well. I read somewhere on th 
 internet that set: max-messages=0 will prevent sending reply message. But if 
 I do that, Kannel does not send any message to client.
 So could someone tell me what i was wrong, and help me out?

I hope it helps a bit.

Regards,

-- 
Marcin Boćkowski
:-D :-)


Re: Problem with delivery report message about 0: Accepted for delivery

2009-01-09 Thread Monim Benaiad
NOTE: The get-url points to sendsms cgi itself, and the second sms you
receive is the result of submiting a msg to kannel.

On 1/9/09, Pham Ngoc Khanh pnk...@yahoo.com wrote:
 Hi all,

 I got a problem with the delivery report message about 0: Accepted for
 delivery. Below is my configuration

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 log-file = /tmp/kannel.log
 log-level = 0
 box-allow-ip = 127.0.0.1

 group = modems
 id = nokiaphone
 name = Nokia
 detect-string = Nokia
 detect-string2 = E51
 need-sleep = true
 init-string = AT+CPMS=?

 group = smsc
 smsc = at
 smsc-id=nokia
 modemtype = nokiaphone
 device=/dev/ttyACM0
 my-number = x
 sms-center = x
 speed = 0

 group = smsc
 smsc = smpp
 smsc-id = smpp
 port = 2775
 connect-allow-ip = *.*.*.*
 host = localhost
 smsc-username = smsc
 smsc-password = smsc
 system-type = VMA
 address-range = 
 denied-smsc-id = smpp;nokia

 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 
 log-level = 0

 group = sendsms-user
 username = user
 password = user
 concatenation= true

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

 group = sms-service
 keyword = mibento
 get-url =
 http://localhost:13013/cgi-bin/sendsms?username=userpassword=userfrom=%pto=%Ptext=%Ssmsc=nokia;
 max-messages = 1
 accepted-smsc = smpp

 The problem is that after Kannel sent message to client it then sends the
 message 0: Accepted for delivery to client as well. I read somewhere on th
 internet that set: max-messages=0 will prevent sending reply message. But if
 I do that, Kannel does not send any message to client.
 So could someone tell me what i was wrong, and help me out?

 Thank in advance
 K






-- 
Sent from my mobile device



Re: Problem with delivery report message about 0: Accepted for delivery

2009-01-09 Thread Pham Ngoc Khanh
As you could see from my configuration. There are two SMSCs. One works with GSM 
modem, and one works as SMPP client. I write my own application, and a SMPP 
server. My application and Kannel will connect to that SMPP server. When my 
application send message to client mobile, I want the GSM modem will do that 
job. So in the get-url, I point to the cgi to send SMS message. This 
configuration could send message to client but it also sends the 0: Accepted 
for delivery message.
Anyway, I will try to work around with the drl-url as you mention.

Thanks a lot. Will keep you update if I can solve this problem. Thanks again


--- On Fri, 9/1/09, Nikos Balkanas nbalka...@gmail.com wrote:

 From: Nikos Balkanas nbalka...@gmail.com
 Subject: Re: Problem with delivery report message about 0: Accepted for 
 delivery
 To: pnk...@yahoo.com, Kannel users@kannel.org
 Date: Friday, 9 January, 2009, 5:22 PM
 Hi,
 
 Well, you need to tell Kannel what to do with the DLR
 report it got. Have you tried specifying a dlr-url in your
 sms-service group?
 
 I iamgine you talk about MOs.
 
 BR,
 Nikos
 - Original Message - From: Pham Ngoc
 Khanh pnk...@yahoo.com
 To: Kannel users@kannel.org
 Sent: Friday, January 09, 2009 11:56 AM
 Subject: Problem with delivery report message about
 0: Accepted for delivery
 
 
 Hi all,
 
 I got a problem with the delivery report message about
 0: Accepted for delivery. Below is my
 configuration
 
 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 log-file = /tmp/kannel.log
 log-level = 0
 box-allow-ip = 127.0.0.1
 
 group = modems
 id = nokiaphone
 name = Nokia
 detect-string = Nokia
 detect-string2 = E51
 need-sleep = true
 init-string = AT+CPMS=?
 
 group = smsc
 smsc = at
 smsc-id=nokia
 modemtype = nokiaphone
 device=/dev/ttyACM0
 my-number = x
 sms-center = x
 speed = 0
 
 group = smsc
 smsc = smpp
 smsc-id = smpp
 port = 2775
 connect-allow-ip = *.*.*.*
 host = localhost
 smsc-username = smsc
 smsc-password = smsc
 system-type = VMA
 address-range = 
 denied-smsc-id = smpp;nokia
 
 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 
 log-level = 0
 
 group = sendsms-user
 username = user
 password = user
 concatenation= true
 
 group = sms-service
 keyword = default
 text = No action specified
 
 group = sms-service
 keyword = mibento
 get-url =
 http://localhost:13013/cgi-bin/sendsms?username=userpassword=userfrom=%pto=%Ptext=%Ssmsc=nokia;
 max-messages = 1
 accepted-smsc = smpp
 
 The problem is that after Kannel sent message to client it
 then sends the message 0: Accepted for delivery
 to client as well. I read somewhere on th internet that set:
 max-messages=0 will prevent sending reply message. But if I
 do that, Kannel does not send any message to client.
 So could someone tell me what i was wrong, and help me out?
 
 Thank in advance
 K