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ławYou should subscribe to [email protected] from http://www.kannel.org.
Hi Nikos,
You are completely right. Tell me where to publish this?
Thanks,
Miros³aw So³owiej
Operations Manager
Tequila Mobile S.A.
From: Nikos Balkanas [mailto:[email protected]]
Sent: Thursday, August 11, 2011 3:06 PM
To: Miros³aw So³owiej
Subject: Re: Kannel issue
Please address the list so that others may benefit/offer insight. Do not send me personals.
Nikos
2011/8/11 Miros³aw So³owiej <[email protected]>
Hi Nikos,
I have spent some time on getting my kannel working and I made it – almost. Still have issues with DLR. While browsing through different posts I found your name showing as a real expert. If you be so nice to help me and my team out with this issue, I would be more than pleased.
I have created two different SMSC, one for MO/MT and second one for DLR.
# incoming/outgoing
group = smsc
smsc = http
port = 13091
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;192.168.155.*; XXX.XXX.XXX.XXX "
send-url = "" href="http://XXX.XXX.XXX.XXX/keyword/Tqm.aspx?msisdn=%25p&message=%25a&mid=%25B" target="_blank">http://XXX.XXX.XXX.XXX/keyword/Tqm.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 = 13092
system-type = generic
no-sep = true
send-url = "" href="http://www.url.com/tmp" target="_blank">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 = "46.4.124.230;127.0.0.1;192.168.155.*; XXX.XXX.XXX.XXX; XXX.XXX.XXX.XXX "
connect-allow-ip = "127.0.0.1;192.168.155.*; 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 = "" href="http://url/smsgate?partner=smsc&keyword=%25k&message=%25r&from=%25p&to=%25P&smsc=%25i&coding=%25c&charset=%25C&binfo=%25B&account=%25o" target="_blank">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:13091/sms?msisdn=11111111&sc=9786&operator=du&message=TQM1+TEST&mid=213685"
OK
lynx -dump "http://localhost:13092/sms?msisdn=11111111&binfo=1&mid=213685"
Unknown DLR, not accepted
Do you have any idea how to make kannel able to understand DLR? What do I do wrong?
Best regards and thanks in advance,
Miroslaw
