Thanks for the response Fred. Sorry i missed it before sending another
mail to the list.
I tried to use the below line in the code, however it didn't compile
octstr_delete(u.submit_sm_resp.message_id, 0, 1);
Is it possible for you to tell me if the above is correct, and where
exactly should i insert this ?
Thanks for all the help.
fred wrote:
there is nothing you can configure to handle this - it's a another special
case.
Your have the source code, smsc/smsc_smpp.c is the file you need to look at.
Look for code 'case submit_sm_resp:'
remove the 'S' from the message_id being extracted to the tmp variable,
look at using function.....
/*
* Delete part of an octet string.
*/
void octstr_delete(Octstr *ostr1, long pos, long len);
Hope this helps.
-----Original Message-----
From: Anand Gupta [mailto:[EMAIL PROTECTED]
Sent: 13 June 2007 21:45
To: [email protected]
Subject: dlr url and message id
I am using kannel with an smpp smsc. Now when the smsc is sending me
submit_sm_resp, it sends the message_id as "S375". However when the deliver_sm
is being send, it only sends back "375". This way kannel is not able to register
the message delivery since both message ids don't match. I checked with my smsc
and they have asked me to either insert the "S" char when deliver_sm is being
send at my end, alternatively remove "S" when submit_sm_resp is send.
Is there a way to do this ? For now i am using standard kannel deb files on
debian.
Here is my kannel.conf
# CORE
group = core
admin-port = 13000
admin-password = pwd
status-password = pwd
dlr-storage = mysql
log-file = "/var/log/kannel/kannel.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
store-file = "/var/log/kannel/kannel.store"
group = smsc
smsc = smpp
host = x.x.x.x
port = Y
smsc-username = "user"
smsc-password = "password"
system-type = "VMA"
keepalive = 50
transceiver-mode ="yes"
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = "0123456789+"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
# SEND-SMS USERS
group = sendsms-user
username = sms
password = pwd
# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
#text = "No service specified"
exec = /usr/local/bin/kannel_incoming %t %q %a
# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = root
password = XXXXXX
database = kannel
group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source=source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc
--
regards,
Anand Gupta
--
regards,
Anand Gupta