Hi Mirek,

Looking on your examples, you are sending a MO message to kannel and then you you send a receipt. Internal DLRs are only for MT messages (for those that you are sending through sendsms-port ). Bear in mind that internal DLRs are being written into the database only if you specify a correct dlr-mask.

Regards,
Cezary



On 12/08/2011 06:13, "Mirosław Sołowiej" wrote:

Hi Guys,

I am quite new in kannel business, but first steps went quite smooth. I
have ~20 different smsc running and they are ok. The thing which makes my
life nightmare is DLR. Either I don't understand it well, or there is
something I cannot get just from reading manuals.

  I have created two different SMSC, one for MO/MT and second one for DLR.
# incoming/outgoing
  group = smsc
  smsc = http
  port = 23091
  system-type = generic
  no-sep = true
  smsc-id = smsc_io
  smsc-admin-id = smsc_op
  allowed-smsc-id = smsc_io
  connect-allow-ip = "127.0.0.1;XXX.XXX.XXX.XXX "
  send-url = "
  http://XXX.XXX.XXX.XXX/keyword/qm.aspx?msisdn=%p&message=%a&mid=%B";
generic-foreign-id-regex = "mid=([0-9]+)"
  status-success-regex = "1"
  status-permfail-regex = "2"
  generic-param-to = "sc"
  generic-param-account = "operator"
  generic-param-from = "msisdn"
  generic-param-text = "message"
  generic-param-binfo = "mid"
  generic-status-sent = 200
  generic-message-sent = "OK"
  generic-status-error = 404
  log-file = "/var/log/kannel/smsc_smscop.log"
  log-level = 1
  alt-charset = UTF-8
  alt-addr-charset = UTF-8

  # smsc Notifications #
  group = smsc
  smsc = http
  smsc-id = smsc_dr
  smsc-admin-id = smsc_op
  allowed-smsc-id = smsc_dr
  port = 23092
  system-type = generic
  no-sep = true
  send-url = "http://www.url.com/tmp";
  generic-param-dlr-mid = "mid"
  generic-param-dlr-mask= "binfo"
  generic-param-binfo= "binfo"
  generic-param-text= "msisdn"
  generic-message-sent = "OK"
  status-success-regex = ".+"
  generic-status-sent = 200
  generic-status-error = 404
  connect-allow-ip = "127.0.0.1;XXX.XXX.XXX.XXX "
  log-file = "/var/log/kannel/smsc_smscop.log"
  log-level = 0
  alt-charset = UTF-8
  alt-addr-charset = UTF-8



  # Default Service for smsc
  group = sms-service
  keyword = default
  catch-all = true
  accepted-smsc = smsc_io
  concatenation = true
  omit-empty = true
  get-url = "
  
http://url/smsgate?partner=smsc&keyword=%k&message=%r&from=%p&to=%P&smsc=%i&coding=%c&charset=%C&binfo=%B&account=%o";

  This is how I tested it:

lynx -dump ">
http://localhost:23091/sms?msisdn=11111111&sc=9786&operator=PLUS&message=TQM1+TEST&mid=213685

and what I got
  OK

  lynx -dump "http://localhost:23092/sms?msisdn=11111111&binfo=1&mid=213685";
and got
  Unknown DLR, not accepted

Do you have any idea how to make kannel able to understand DLR? What do I
do wrong? I am getting this in the log

2011-08-11 20:54:21 [3017] [21] DEBUG: HTTP[smsc_dr]: Received an HTTP
request
2011-08-11 20:54:21 [3017] [21] DEBUG: DLR[pgsql]: Looking for DLR
smsc=smsc_op, ts=157511, dst=(null), type=1
2011-08-11 20:54:21 [3017] [21] DEBUG: sql: SELECT mask, service, url,
source, destination, boxc FROM tqm_kannel_dlr WHERE smsc='smsc_op' AND
ts='157511' LIMIT 1;
2011-08-11 20:54:21 [3017] [21] DEBUG: no rows found
2011-08-11 20:54:21 [3017] [21] WARNING: DLR[pgsql]: DLR from
SMSC<smsc_op>  for DST<(null)>  not found.
2011-08-11 20:54:21 [3017] [21] ERROR: HTTP[smsc_dr]: Got DLR but could
not find message or was not interested in it id<157511>  dst<(null)>,
type<1>
2011-08-11 20:54:21 [3017] [21] DEBUG: HTTP[smsc_dr]: Sending reply
2011-08-11 20:54:21 [3017] [21] DEBUG: HTTP: Destroying HTTPClient area
0x7f288c002640.
2011-08-11 20:54:21 [3017] [21] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.
2011-08-11 20:54:21 [3017] [21] DEBUG: HTTP[smsc_dr]: Destroying client
information


  Best regards and thanks in advance,
  Miroslaw





Operations Manager
Tequila Mobile S.A.

mobile:: +48 512 833 151
office:: +48 71 750 5402
fax::    +48 71 750 5419
skype::  msolowiej
web::    www.tequilamobile.com

address: ul. Świętego Mikołaja 8-11
          50-125 Wrocław




Operations Manager
Tequila Mobile S.A.

mobile:: +48 512 833 151
office:: +48 71 750 5402
fax::    +48 71 750 5419
skype::  msolowiej
web::    www.tequilamobile.com

address: ul. Świętego Mikołaja 8-11
          50-125 Wrocław


Reply via email to