Discussion:
Kannel Delivery Report Does not work modem GSM
Sergio Toro Escofet
2018-06-26 18:59:34 UTC
Permalink
Hi!!!, IÂŽve read a lot of post about kannel delivery report where does not
work, I read the official documentation more than once and i canÂŽt figure
out how receive delivery report throught gsm modem. IÂŽm using Kannel 1.4.4.

I know that my modem gsm configuration is right becase I used minicom and
configure the modem by AT Comands, them i send message by same way, AT
Commands, and I receive status report successfully.

My Kannel configuration is:
###########################################################
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13000
admin-password = bar
admin-allow-ip = "*.*.*.*"
dlr-storage = internal
sms-resend-retry = 10
log-file = "/var/log/kannel/bearerbox.log"
smsbox-port = 13001
box-allow-ip = "*.*.*.*"


group = smsbox
bearerbox-host = 192.168.15.130
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
reply-couldnotfetch = "Your message could not be processed at this time.
Please try again later. (err=couldnotfetch)"
reply-requestfailed = "Your message could not be processed at this time.
Please try again later. (err=requestfailed)"
reply-couldnotrepresent = "Your message could not be processed at this
time. Please try again later. (err=couldnotrepresent)"
http-request-retry = 3
http-queue-delay = 10


group = smsc
smsc = at
modemtype = falcom
smsc-id=modemgsm
my-number = "5358466786"
sim-buffering = true
device = /dev/ttyACM0
keepalive = 60
speed = 9600
pin = 1415
alt-charset = "UTF-8"
log-file = "/var/log/kannel/smsmodem.log"

group = sendsms-user
username = sergio
password = sergio
user-allow-ip = "*.*.*.*"

group = sms-service
keyword = ping-kannel
text = "Kannel is online and responding to messages."

group = sms-service
keyword = default
accepted-smsc = modemgsm
assume-plain-text = true
concatenation = true
max-messages = 0
dlr-mask = 31
get-url =
http://192.168.15.1:44/get-sms/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T
dlr-url =
http://192.168.15.1:44/get-dlr/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T&idmessage=%F

group = modems
init-string = "AT+CSMS=1;AT+CNMI=2,0,0,2,1;AT+CSMP=49,167,0,0;+CMEE=1"
message-storage = SM
speed = 9600
id = falcom

#################################################################

Even I configure my modem to store the delivery report on the SM storage
whith AT+CNMI=2,0,0,2,1 and when i run it whit Kannel it does not work,
never receive the delivery report and never store in the sim, i know it
because IÂŽve keep researching into modem gsm kannel logs and never receive
the delivery report.

Thanks in advantage
a***@kannel.org
2018-06-27 07:52:15 UTC
Permalink
Hi,

did you request DLR from Kannel with dlr-mask ?
If yes, please provide Kannel version used, URL you used to call smsbox, debug log of smsbox and bearerbox.

Thanks,
Alex
Hi!!!, IÂŽve read a lot of post about kannel delivery report where does not work, I read the official documentation more than once and i canÂŽt figure out how receive delivery report throught gsm modem. IÂŽm using Kannel 1.4.4.
I know that my modem gsm configuration is right becase I used minicom and configure the modem by AT Comands, them i send message by same way, AT Commands, and I receive status report successfully.
###########################################################
#
# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.
group = core
admin-port = 13000
admin-password = bar
admin-allow-ip = "*.*.*.*"
dlr-storage = internal
sms-resend-retry = 10
log-file = "/var/log/kannel/bearerbox.log"
smsbox-port = 13001
box-allow-ip = "*.*.*.*"
group = smsbox
bearerbox-host = 192.168.15.130
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
reply-couldnotfetch = "Your message could not be processed at this time. Please try again later. (err=couldnotfetch)"
reply-requestfailed = "Your message could not be processed at this time. Please try again later. (err=requestfailed)"
reply-couldnotrepresent = "Your message could not be processed at this time. Please try again later. (err=couldnotrepresent)"
http-request-retry = 3
http-queue-delay = 10
group = smsc
smsc = at
modemtype = falcom
smsc-id=modemgsm
my-number = "5358466786"
sim-buffering = true
device = /dev/ttyACM0
keepalive = 60
speed = 9600
pin = 1415
alt-charset = "UTF-8"
log-file = "/var/log/kannel/smsmodem.log"
group = sendsms-user
username = sergio
password = sergio
user-allow-ip = "*.*.*.*"
group = sms-service
keyword = ping-kannel
text = "Kannel is online and responding to messages."
group = sms-service
keyword = default
accepted-smsc = modemgsm
assume-plain-text = true
concatenation = true
max-messages = 0
dlr-mask = 31
get-url = http://192.168.15.1:44/get-sms/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T <http://192.168.15.1:44/get-sms/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T>
dlr-url = http://192.168.15.1:44/get-dlr/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T&idmessage=%F <http://192.168.15.1:44/get-dlr/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T&idmessage=%F>
group = modems
init-string = "AT+CSMS=1;AT+CNMI=2,0,0,2,1;AT+CSMP=49,167,0,0;+CMEE=1"
message-storage = SM
speed = 9600
id = falcom
#################################################################
Even I configure my modem to store the delivery report on the SM storage whith AT+CNMI=2,0,0,2,1 and when i run it whit Kannel it does not work, never receive the delivery report and never store in the sim, i know it because IÂŽve keep researching into modem gsm kannel logs and never receive the delivery report.
Thanks in advantage
Sergio Toro Escofet
2018-06-27 12:25:17 UTC
Permalink
Hi, No! I didnŽt, I read into the official documentation that I can specify into the request for sendsms a dlr-mask and  even the URL for a push from kannel to my http server whith the data of the delivery report data, but I thought that if I specify the dlr-mask and url for push delivery report it wonŽt be necessary do it. Whatever IŽll try your sugestion and IŽll reply you the result.

IÂŽm using stable release kannel 1.4.4

Here is where I specify dlr-mask and a URL for push from kannel
######################################
group = sms-service
keyword = default
accepted-smsc = modemgsm
assume-plain-text = true
concatenation = true
max-messages = 0
dlr-mask = 31 # => Here is dlr-mask that mean IÂŽll receive all type of delivery report
get-url = http://192.168.15.1:44/get-sms/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T
dlr-url = http://192.168.15.1:44/get-dlr/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T&idmessage=%F #=> URL for push, I supose that when kannel receive a delivery report will make push whith this URL parsing all data by gets params

#####################################################################################

I wrote you into the configuration what i thought what have to happen, in case you thing IÂŽm wrong, IÂŽll will appreciate your considerations
Here is my bearbox log
##################################################
2018-06-25 17:43:31 [1771] [0] INFO: ----------------------------------------
2018-06-25 17:43:31 [1771] [0] INFO: Kannel bearerbox II version 1.4.4 starting
2018-06-25 17:43:31 [1771] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 1771.
2018-06-25 17:43:31 [1771] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 1771.
2018-06-25 17:43:31 [1771] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 1771.
2018-06-25 17:43:31 [1771] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 1771.
2018-06-25 17:43:31 [1771] [2] DEBUG: HTTP: Including port 13000, fd 10 for polling in server thread
2018-06-25 17:43:31 [1771] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 1771.
2018-06-25 17:43:31 [1771] [6] INFO: Logging thread `6' to logfile `/var/log/kannel/smsmodem.log' with level `0'.
2018-06-25 17:43:31 [1771] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 1771.
2018-06-25 17:43:31 [1771] [0] INFO: MAIN: Start-up done, entering mainloop
2018-06-25 17:43:31 [1771] [0] DEBUG: AT2[modemgsm]: start called
2018-06-25 17:43:31 [1771] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 1771.
2018-06-25 17:43:33 [1771] [5] INFO: Client connected from <127.0.0.1>
2018-06-25 17:43:33 [1771] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function)
2018-06-25 17:43:33 [1771] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 1771.
2018-06-25 17:43:33 [1771] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender)
2018-06-25 17:43:33 [1771] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 1771.
2018-06-25 17:44:52 [1771] [8] DEBUG: boxc_receiver: sms received
2018-06-25 17:44:52 [1771] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2018-06-25 17:49:43 [1771] [0] WARNING: Killing signal or HTTP admin command received, shutting down...
2018-06-25 17:49:43 [1771] [0] DEBUG: Shutting down Kannel...
2018-06-25 17:49:43 [1771] [0] DEBUG: shutting down smsc
2018-06-25 17:49:43 [1771] [0] DEBUG: AT2[modemgsm]: Shutting down SMSCConn, slow
2018-06-25 17:49:43 [1771] [0] DEBUG: shutting down udp
2018-06-25 17:49:43 [1771] [8] INFO: Connection closed by the box <127.0.0.1>
2018-06-25 17:49:43 [1771] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2018-06-25 17:49:43 [1771] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) terminates.
2018-06-25 17:49:43 [1771] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) terminates.
2018-06-25 17:49:45 [1771] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) terminates.
2018-06-25 17:49:45 [1771] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) terminates.
2018-06-25 17:49:45 [1771] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) terminates.
2018-06-25 17:49:45 [1771] [0] INFO: All flow threads have died, killing core
2018-06-25 17:49:45 [1771] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate
2018-06-25 17:49:45 [1771] [3] DEBUG: HTTP: No clients with requests, quitting.
2018-06-25 17:49:45 [1771] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) terminates.
2018-06-25 17:49:45 [1771] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates.
2018-06-25 17:49:45 [1771] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates.
2018-06-25 17:49:45 [1771] [0] DEBUG: final clean-up for SMSCConn
2018-06-25 17:49:45 [1771] [0] DEBUG: MO concatenated message handling cleaned up
2018-06-25 17:49:45 [1771] [0] INFO: Total WDP messages: received 0, sent 0
2018-06-25 17:49:45 [1771] [0] INFO: Total SMS messages: received 0, dlr 0, sent 1, dlr 0
2018-06-25 17:49:45 [1771] [0] DEBUG: Immutable octet strings: 278.
2018-06-25 17:50:23 [1880] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'.
2018-06-25 17:50:23 [1880] [0] INFO: HTTP: Opening server at port 13000.
2018-06-25 17:50:23 [1880] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2018-06-25 17:50:23 [1880] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2018-06-25 17:50:23 [1880] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2018-06-25 17:50:23 [1880] [0] DEBUG: starting smsbox connection module
2018-06-25 17:50:23 [1880] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
2018-06-25 17:50:23 [1880] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes)
2018-06-25 17:50:23 [1880] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
2018-06-25 17:50:23 [1880] [0] INFO: Set SMS resend frequency to 60 seconds.
2018-06-25 17:50:23 [1880] [0] INFO: SMS resend retry set to 10.
2018-06-25 17:50:23 [1880] [0] DEBUG: MO concatenated message handling enabled
2018-06-25 17:50:23 [1880] [0] INFO: DLR rerouting for smsc id <modemgsm> disabled.
2018-06-25 17:50:23 [1880] [0] INFO: Added logfile `/var/log/kannel/smsmodem.log' with level `0'.
2018-06-25 17:50:23 [1880] [0] INFO: AT2[modemgsm]: configuration shows modemtype <falcom>
2018-06-25 17:50:23 [1880] [0] DEBUG: AT2[modemgsm]: Reading modem definitions from </etc/kannel/kannel.conf>
2018-06-25 17:50:23 [1880] [0] DEBUG: AT2[modemgsm]: Found <1> modems in config
2018-06-25 17:50:23 [1880] [0] INFO: AT2[modemgsm]: read modem definition for <falcom>
2018-06-25 17:50:23 [1880] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread)
2018-06-25 17:50:23 [1880] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)

Here is my sms box log
2018-06-25 17:43:33 [1781] [0] DEBUG: ----------------------------------------------
2018-06-25 17:43:33 [1781] [0] DEBUG: Kannel smsbox version 1.4.4 starting
2018-06-25 17:43:33 [1781] [0] DEBUG: dumping group (sendsms-user):
2018-06-25 17:43:33 [1781] [0] DEBUG: <group> = <sendsms-user>
2018-06-25 17:43:33 [1781] [0] DEBUG: <password> = <sergio>
2018-06-25 17:43:33 [1781] [0] DEBUG: <username> = <sergio>
2018-06-25 17:43:33 [1781] [0] DEBUG: <user-allow-ip> = <*.*.*.*>
2018-06-25 17:43:33 [1781] [0] DEBUG: Started thread 4 (gwlib/gw-timer.c:watch_timers)
2018-06-25 17:43:33 [1781] [0] DEBUG: Started thread 5 (gw/smsbox.c:obey_request_thread)
2018-06-25 17:43:33 [1781] [0] DEBUG: Started thread 6 (gw/smsbox.c:url_result_thread)
2018-06-25 17:43:33 [1781] [0] DEBUG: Started thread 7 (gw/smsbox.c:http_queue_thread)
2018-06-25 17:43:33 [1781] [0] DEBUG: Connecting to <127.0.0.1>
2018-06-25 17:43:33 [1781] [0] INFO: Connected to bearerbox at localhost port 13001.
2018-06-25 17:43:33 [1781] [0] DEBUG: Started thread 8 (gw/heartbeat.c:heartbeat_thread)
2018-06-25 17:43:33 [1781] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 1781.
2018-06-25 17:43:33 [1781] [7] DEBUG: Thread 7 (gw/smsbox.c:http_queue_thread) maps to pid 1781.
2018-06-25 17:43:33 [1781] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 1781.
2018-06-25 17:43:33 [1781] [2] DEBUG: HTTP: Including port 13013, fd 9 for polling in server thread
2018-06-25 17:43:33 [1781] [6] DEBUG: Thread 6 (gw/smsbox.c:url_result_thread) maps to pid 1781.
2018-06-25 17:43:33 [1781] [5] DEBUG: Thread 5 (gw/smsbox.c:obey_request_thread) maps to pid 1781.
2018-06-25 17:43:33 [1781] [8] DEBUG: Thread 8 (gw/heartbeat.c:heartbeat_thread) maps to pid 1781.
2018-06-25 17:43:33 [1781] [4] DEBUG: Thread 4 (gwlib/gw-timer.c:watch_timers) maps to pid 1781.
2018-06-25 17:43:33 [1781] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 1781.
2018-06-25 17:44:52 [1781] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.15.1'.
2018-06-25 17:44:52 [1781] [2] DEBUG: HTTP: Created HTTPClient area 0x7fe23c000ad0.
2018-06-25 17:44:52 [1781] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <192.168.15.1>
2018-06-25 17:44:52 [1781] [3] INFO: sendsms used by <sergio>
2018-06-25 17:44:52 [1781] [3] INFO: sendsms sender:<sergio:23> (192.168.15.1) to:<53704256> msg:<Hello world ultimatum>
2018-06-25 17:44:52 [1781] [3] DEBUG: Stored UUID df846117-2aa8-42db-b1f2-2da869e6bf36
2018-06-25 17:44:52 [1781] [3] DEBUG: message length 21, sending 1 messages
2018-06-25 17:44:52 [1781] [3] DEBUG: Status: 202 Answer: <Sent.>
2018-06-25 17:44:52 [1781] [3] DEBUG: Delayed reply - wait for bearerbox
2018-06-25 17:44:52 [1781] [0] DEBUG: Got ACK (0) of df846117-2aa8-42db-b1f2-2da869e6bf36
2018-06-25 17:44:52 [1781] [0] DEBUG: HTTP: Resetting HTTPClient for `192.168.15.1'.
2018-06-25 17:45:52 [1781] [1] DEBUG: Timeout for fd:25 appears.
2018-06-25 17:45:52 [1781] [1] DEBUG: HTTP: Destroying HTTPClient area 0x7fe23c000ad0.
2018-06-25 17:45:52 [1781] [1] DEBUG: HTTP: Destroying HTTPClient for `192.168.15.1'.
2018-06-25 17:49:43 [1781] [0] ERROR: SIGINT received, aborting program...
2018-06-25 17:49:43 [1781] [0] INFO: Received (and handled?) 0 requests in 370 seconds (0.00 per second)
2018-06-25 17:49:43 [1781] [0] INFO: Kannel smsbox terminating.
2018-06-25 17:49:43 [1781] [8] DEBUG: Thread 8 (gw/heartbeat.c:heartbeat_thread) terminates.
2018-06-25 17:49:43 [1781] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate
2018-06-25 17:49:43 [1781] [3] DEBUG: HTTP: No clients with requests, quitting.
2018-06-25 17:49:43 [1781] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) terminates.
2018-06-25 17:49:43 [1781] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates.
2018-06-25 17:49:43 [1781] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates.
2018-06-25 17:49:43 [1781] [0] DEBUG: Waiting for 5 (gw/smsbox.c:obey_request_thread) to terminate
2018-06-25 17:49:43 [1781] [5] DEBUG: Thread 5 (gw/smsbox.c:obey_request_thread) terminates.
2018-06-25 17:49:43 [1781] [7] DEBUG: Thread 7 (gw/smsbox.c:http_queue_thread) terminates.
2018-06-25 17:49:43 [1781] [0] DEBUG: Waiting for 6 (gw/smsbox.c:url_result_thread) to terminate
2018-06-25 17:49:43 [1781] [6] DEBUG: Thread 6 (gw/smsbox.c:url_result_thread) terminates.
2018-06-25 17:49:43 [1781] [4] DEBUG: Thread 4 (gwlib/gw-timer.c:watch_timers) terminates.
2018-06-25 17:50:24 [1890] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'.
2018-06-25 17:50:24 [1890] [0] INFO: HTTP: Opening server at port 13013.
2018-06-25 17:50:24 [1890] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2018-06-25 17:50:24 [1890] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2018-06-25 17:50:24 [1890] [0] INFO: Set up send sms service at port 13013
2018-06-25 17:50:24 [1890] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2018-06-25 17:50:24 [1890] [0] INFO: Using HTTP request queueing with 3 retries, 10s delay.

#######################################################################
Here is my modem logs
2018-06-25 17:43:31 [1771] [6] INFO: AT2[modemgsm]: opening device
2018-06-25 17:43:31 [1771] [6] DEBUG: AT2[modemgsm]: device opened. Telnet mode = 0
2018-06-25 17:43:31 [1771] [6] DEBUG: AT2[modemgsm]: device opened
2018-06-25 17:43:31 [1771] [6] INFO: AT2[modemgsm]: Logging in
2018-06-25 17:43:32 [1771] [6] INFO: AT2[modemgsm]: init device
2018-06-25 17:43:32 [1771] [6] INFO: AT2[modemgsm]: speed set to 9600
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: --> ATZ^M
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: --> AT^M
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: <-- AT
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: --> AT&F^M
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: <-- AT&F
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: --> ATE0^M
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: <-- ATE0
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: --> AT+IFC=2,2^M
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: --> AT+CPIN?^M
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: <-- +CPIN: READY
2018-06-25 17:43:32 [1771] [6] DEBUG: AT2[modemgsm]: --> AT+CMGF=0^M
2018-06-25 17:43:33 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:43:33 [1771] [6] DEBUG: AT2[modemgsm]: --> AT+CSMS=?^M
2018-06-25 17:43:33 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:43:33 [1771] [6] DEBUG: AT2[modemgsm]: --> AT+CSMS=1;AT+CNMI=2,0,0,2,1;AT+CSMP=49,167,0,0;+CMEE=1^M
2018-06-25 17:43:33 [1771] [6] DEBUG: AT2[modemgsm]: <-- +CSMS: (0,1)
2018-06-25 17:43:33 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:43:33 [1771] [6] INFO: AT2[modemgsm]: AT SMSC successfully opened.
2018-06-25 17:43:33 [1771] [6] DEBUG: AT2[modemgsm]: <-- +CSMS: 1,1,1
2018-06-25 17:43:33 [1771] [6] DEBUG: AT2[modemgsm]: <-- NO CARRIER
2018-06-25 17:43:35 [1771] [6] DEBUG: AT2[modemgsm]: --> AT^M
2018-06-25 17:43:35 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:44:36 [1771] [6] DEBUG: AT2[modemgsm]: --> AT^M
2018-06-25 17:44:36 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:44:54 [1771] [6] DEBUG: AT2[modemgsm]: TP-Validity-Period: 24.0 hours
2018-06-25 17:44:54 [1771] [6] DEBUG: AT2[modemgsm]: --> AT+CMGS=31^M
2018-06-25 17:44:54 [1771] [6] DEBUG: AT2[modemgsm]: <-- >
2018-06-25 17:44:54 [1771] [6] DEBUG: AT2[modemgsm]: send command status: 1
2018-06-25 17:44:54 [1771] [6] DEBUG: AT2[modemgsm]: --> 0011000881350724650000A715C8329BFD06DDDF7236195467D3D3ED30BDDE06
2018-06-25 17:44:55 [1771] [6] DEBUG: AT2[modemgsm]: --> ^Z
2018-06-25 17:44:58 [1771] [6] DEBUG: AT2[modemgsm]: <-- >
2018-06-25 17:44:58 [1771] [6] DEBUG: AT2[modemgsm]: <-- +CMGS: 145
2018-06-25 17:44:58 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:44:58 [1771] [6] DEBUG: AT2[modemgsm]: send command status: 0
2018-06-25 17:46:00 [1771] [6] DEBUG: AT2[modemgsm]: --> AT^M
2018-06-25 17:46:01 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:47:03 [1771] [6] DEBUG: AT2[modemgsm]: --> AT^M
2018-06-25 17:47:03 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:48:05 [1771] [6] DEBUG: AT2[modemgsm]: --> AT^M
2018-06-25 17:48:05 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK
2018-06-25 17:49:06 [1771] [6] DEBUG: AT2[modemgsm]: --> AT^M
2018-06-25 17:49:06 [1771] [6] DEBUG: AT2[modemgsm]: <-- OK

Thanks
Sergio Toro Escofet
2018-06-27 21:30:35 UTC
Permalink
Hi Again!!! I successfully receive delivery report whith your suggestion.

I add “accept-x-kannel-headers = true” to the service-sms module and specify into the send sms request the parameters dlr-mask and dlr-url. I used dlr-url urlencoded like the oficial documentation specify.

Thanks a lot for your reply.

Enviado desde Correo para Windows 10

De: ***@kannel.org
Enviado: miércoles, junio 27, 2018 9:52 AM
Para: Sergio Toro Escofet
CC: ***@kannel.org
Asunto: Re: Kannel Delivery Report Does not work modem GSM

Hi,

did you request DLR from Kannel with dlr-mask ?
If yes, please provide Kannel version used, URL you used to call smsbox, debug log of smsbox and bearerbox.

Thanks,
Alex



Am 26.06.2018 um 20:59 schrieb Sergio Toro Escofet <***@gmail.com>:

Hi!!!, IÂŽve read a lot of post about kannel delivery report where does not work, I read the official documentation more than once and i canÂŽt figure out how receive delivery report throught gsm modem. IÂŽm using Kannel 1.4.4.

I know that my modem gsm configuration is right becase I used minicom and configure the modem by AT Comands, them i send message by same way, AT Commands, and I  receive status report successfully.

My Kannel configuration is:
###########################################################
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13000
admin-password = bar
admin-allow-ip = "*.*.*.*"
dlr-storage = internal
sms-resend-retry = 10
log-file = "/var/log/kannel/bearerbox.log"
smsbox-port = 13001
box-allow-ip = "*.*.*.*"


group = smsbox
bearerbox-host = 192.168.15.130
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
reply-couldnotfetch = "Your message could not be processed at this time.  Please try again later. (err=couldnotfetch)"
reply-requestfailed = "Your message could not be processed at this time.  Please try again later. (err=requestfailed)"
reply-couldnotrepresent = "Your message could not be processed at this time.  Please try again later. (err=couldnotrepresent)"
http-request-retry = 3
http-queue-delay = 10


group = smsc
smsc = at
modemtype = falcom
smsc-id=modemgsm
my-number = "5358466786"
sim-buffering = true
device =  /dev/ttyACM0
keepalive = 60
speed = 9600
pin = 1415
alt-charset = "UTF-8"
log-file = "/var/log/kannel/smsmodem.log"

group = sendsms-user
username = sergio
password = sergio
user-allow-ip = "*.*.*.*"

group = sms-service
keyword = ping-kannel
text = "Kannel is online and responding to messages."

group = sms-service
keyword = default
accepted-smsc = modemgsm
assume-plain-text = true
concatenation = true
max-messages = 0
dlr-mask = 31
get-url = http://192.168.15.1:44/get-sms/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T
dlr-url = http://192.168.15.1:44/get-dlr/?id=%p&text=%a&charset=%C&coding=%c&time=%t&timemillis=%T&idmessage=%F

group = modems
init-string = "AT+CSMS=1;AT+CNMI=2,0,0,2,1;AT+CSMP=49,167,0,0;+CMEE=1"
message-storage = SM
speed = 9600
id = falcom

#################################################################

Even I configure my modem to store the delivery report on the SM storage whith AT+CNMI=2,0,0,2,1  and when i run it whit Kannel it does not work, never receive the delivery report and never store in the sim, i know it because IŽve keep researching into modem gsm kannel logs and never receive the delivery report.

Thanks in advantage

Loading...