Thanks for answer Czarek. I fully understand that DLR are for MT, which is
send out in all my cases. Second test (lynx) is made to invoke DLR. 

Here is what I send back to customer (partner) 
http://XXX.XXX.XXX.XXX/keyword/qm.aspx?msisdn=%p&message=%a&mid=%B";

and here is sendsms invoke:
sendsms?user=zzz&pass=zzzqqq&to=11111111&smsc=smsc_io&text=Service is
working
OK!&from=9786&dlr-mask=31&dlr-url=URL/smsstatus?id_outbox=MYINTERNALID&statu
s=%d&status_desc=%A&binfo=213685&account=PLUS&charset=UTF-8&coding=1

For some reason, I see that FID: field remains empty in the log file. Does
it matter?  

Any thoughts?

Mirosław Sołowiej

Message: 2
Date: Fri, 12 Aug 2011 07:13:28 +0200
From: "Miros?aw So?owiej"  <[email protected]>
To: [email protected]
Subject: [Fwd: Re: Kannel issue]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-2"



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=TQM
1+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

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.kannel.org/pipermail/users/attachments/20110812/16ee3812/attachm
ent-0001.html>

------------------------------

Message: 3
Date: Fri, 12 Aug 2011 10:25:13 +0100
From: Cezary Siwek <[email protected]>
To: [email protected]
Subject: Re: [Fwd: Re: Kannel issue]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed

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&messa
> ge=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
>



------------------------------

_______________________________________________
users mailing list
[email protected]
http://www.kannel.org/mailman/listinfo/users


End of users Digest, Vol 60, Issue 16
*************************************


Reply via email to