Yes I get dlr -- I see it in sent_sms table
what log do you mean? bearerbox? i don't see nothing special, no errors
my conf in attachment

On Wednesday 17 May 2006 18:50, Mi Reflejo wrote::
> Attach your kannel.conf please.
>
> Did you got the delivery report from your SMSC?.  what are the logs saying?
>
> M
>
> On 5/17/06, Roman Yeryomin < [EMAIL PROTECTED]> wrote:
> > I'm using cvs head now, sqlbox works ok... I set up sms-service like you
> > say...
> > but dlr-url is not fetched anyway...
> > could it be smpp problems?
> >
> > On Friday 12 May 2006 22:47, Mi Reflejo wrote::
> > > If you'r using CVS HEAD and last sqlbox, dlr-url is used well. Even if
> > > the MT was sent by mysql insert.
> > >
> > > insert into send_sms (service,momt,sender,receiver,msgdata,smsc_id,
> > > dlr_mask,dlr_url) VALUES('kannel', 'MT','1234','1234','Delivery
> > > test','FakeSMSC',31,'
> > > http://localhost/mev/a.php?type=%d'<http://localhost/mev/a.php?type=%25
> > >d%27>
> >
> > );
> >
> > > and kannel-smsbox.log: 2006-05-06 22:42:51 [1030] [4] INFO: Starting
> > > delivery report <kannel> from <1234>
> > > (....)
> > >
> > > But take care of "service" column. If it's not, service is set to
> > > NULL, and delivery is not routed.
> > >
> > >
> > > Regards,
> > > Anselmo
> > >
> > > On 5/12/06, Roman Yeryomin < [EMAIL PROTECTED]> wrote:
> > > > Hi all,
> > > >
> > > > but what about when sending from database with sqlbox (simply
> >
> > inserting
> >
> > > > in database)?
> > > > dlr_url should also work, right?
> > > > but it seems that kannel doesn't fetch my ulencoded dlr_url defined
> > > > in database (mysql)
> > > > i'm stuck...
> > > > does anyone know where could be the problem?
> > > > i'm using kannel 1.4 with mysql 4.1
> > > >
> > > > Roman
> > > >
> > > > On Friday 12 May 2006 17:31, Heru Tjatur wrote::
> > > > > Hi Wayne,
> > > > >
> > > > > I set it in dlr-url when sending messages vi cgi-bin/sendsms. So,
> >
> > each
> >
> > > > > time I send message, I put dlr-url containing my custom ID.
> > > > >
> > > > > Something like this:
> > > > > dlr-url="http://127.0.0.1/smspapp/dlr.php?msgID=[mycustomID]&dlrsta
> > > > >tus=<http://127.0.0.1/smspapp/dlr.php?msgID=%5BmycustomID%5D&dlrstat
> > > > >us=> % d&[other parameter]
> > > > >
> > > > > Don't forget to url-encode your dlr-url when sending the mesaage
> > > > > via cgi-bin/sendsms?
> > > > >
> > > > > Hope it give you a hint ...
> > > > >
> > > > > --tjatur
> > > > >
> > > > > On Fri, 2006-05-12 at 13:40 +0800, Wayne Khan wrote:
> > > > > > Hi Heru,
> > > > > > How do you send the custom id to the smsc and get it back?
> > > > > >
> > > > > > I've tried the various kannel escape codes (%a, %b) but they
> > > > > > don't
> > > > > >
> > > > > > seem to work.
> > > > > >
> > > > > > I'm doing some auditing function so there's a need to tie in the
> > > > > > report with the sms... please help! Thanks!
> > > > > >
> > > > > > Heru Tjatur wrote:
> > > > > > > dear Issam,
> > > > > > >
> > > > > > > Here what I do to get the dlr in Kannel. Hope it could give you
> >
> > a
> >
> > > > > > > light how to implement it for your needs.
> > > > > > >
> > > > > > > (1) I set up a url that will capture delivery status of the
> > > > > > > messages sent by kannel, base on a custom ID for the message (I
> > > > > > > defined that ID for each message sent).
> > > > > > > (2) When sending the message to the user, through
> >
> > cgi-bin/sendsms?,
> >
> > > > > > > a drl-url containing custom ID is added with proper dlr-mask
> >
> > value.
> >
> > > > > > > (3) That way, each incomming dlr will bring custom ID that will
> > > > > > > used to update my table regarding the delivery status of the
> > > > > > > message.
> > > > > > > (http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide
> > > > > > >.htm l#AE N3749)
> > > > > > >
> > > > > > > Hope this could help you...
> > > > > > >
> > > > > > > --tjatur
> > > > > > >
> > > > > > > On Thu, 2006-05-11 at 12:15 issam wrote:
> > > > > > >> hello
> > > > > > >> I use dlr-url parameter.
> > > > > > >> when I send a message with kannel I attribute a unique ID to
> >
> > this
> >
> > > > > > >> message and Kannel give it another ID when he send it for
> >
> > delivery
> >
> > > > > > >> (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). I want to correspond
> > > > > > >> in
> >
> > my
> >
> > > > > > >> base this ID and my ID to resend the message if he fail after
> > > > > > >> validity period expiration.
> > > > > > >> How can I do this
> > > > > > >> big thanks for help
> > > > > > >> ----- Original Message -----
> > > > > > >> From: "Heru Tjatur" <[EMAIL PROTECTED]>
> > > > > > >> To: < [email protected]>
> > > > > > >> Sent: Thursday, May 11, 2006 4:22 AM
> > > > > > >> Subject: Re: dlr
> > > > > > >>
> > > > > > >>> Dear issam,
> > > > > > >>>
> > > > > > >>> On Wed, 2006-05-10 at 13:47 +0100, issam wrote:
> > > > > > >>>> Hello
> > > > > > >>>> when I send a message with Kannel, he return a message like
> > > > > > >>>> accepted for delivery but not the id used in dlr message.
> > > > > > >>>> if I send 2 messages and I receive one dlr how can I know if
> > > > > > >>>> this dlr is for first message or 2nd message.
> > > > > > >>>
> > > > > > >>> You could use set dlr-url parameter when sending the message.
> > > > > > >>> Each dlr message coming, it will its trigger dlr-url. So, you
> > > > > > >>> will know which message's dlr is comming.
> > > > > > >>>
> > > > > > >>> Hope it could help you..
> > > > > > >>>
> > > > > > >>> --tjatur
#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
#
# It is run like this:
#
#  1% gw/bearerbox gw/smskannel.conf
#  2% gw/smsbox gw/smskannel.conf
#  3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop"
#
# ..all 3 commands in separate shells (or screen sessions)
#
# For any modifications to this file, see Kannel User Guide 
# If that does not help, send email to [email protected]
#
#   Kalle Marjola May 2000
#   Changed for new fakesmsc version by Uoti Urpala Jan 2001
#   Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001
#

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
#log-file = "/tmp/kannel.log"
#log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "/tmp/kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
dlr-storage = mysql

include = "/etc/smsmodems.conf"
#include = "/etc/smsdlr-mysql.conf"
#include = "/etc/smssqlbox.conf"


group = mysql-connection
id = mydlr
#host = localhost
host = x.x.x.x
username=kannel
password=kannel
database = kannel
# max count of connections that will be opened for dbpool
# default is 1
max-connections = 10


group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc


# SMSC CONNECTIONS

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


group = smsc
smsc = smpp
smsc-id = HTSMPP_TEST
host = x.x.x.x
port = 9001
transceiver-mode = true
smsc-username = dwedwed
smsc-password = dwedwed
keepalive = 60
sender-prefix = ""
no-dlr = false
system-type = ""
address-range = ""


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
bearerbox-is-sqlbox = true
smsbox-id = sqlbox2
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/tmp/access.log"


# SQLBOX SETUP

group = sqlbox
# id corresponds to id in group = mysql-connection.
# this is analogous to id in group = dlr-db
id = mydlr
# smsbox-id indicates the box where SQL-injected messages appear to be coming from
smsbox-id = sqlbox2
# bearerbox host to connect to
bearerbox-host = "localhost"
# smsbox port to be listening on
smsbox-port=13013
smsbox-port-ssl = false
# sql-log-table is the table used to log all sent messages
sql-log-table = sent_sms
# sql-insert-table is the table that is monitored for new messages to send
sql-insert-table = send_sms
# global sender: If no sender is specified in sql-insert-table then this value is used.
global-sender = 06121
# log-file =
log-file = "/var/log/kannel/sqlbox.log"
log-level = 0
# ssl-client-certkey-file = ""
# ssl-server-cert-file = ""
# ssl-server-key-file = ""
# ssl-trusted-ca-file = ""


# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""

# SERVICES

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

# there should be default always
group = sms-service
keyword = default
max-messages = 0
text = "any"

Reply via email to