herveg
August 17, 2016, 4:28pm
1
Hello,
When i send a sms i’m not able to get the delivery report, below my bearbox log:
2016-08-17 17:19:14 [2296] [6] DEBUG: AT2[kannel]: send command status: 0
2016-08-17
17:19:14 [2296] [6] DEBUG: DLR[mysql]: Adding DLR smsc=kannel, ts=31,
src=+243840787611# (put your sim number, not necessary), dst=0841060091,
mask=31, boxc=
2016-08-17 17:19:14 [2296] [6] DEBUG: adding DLR entry into database
2016-08-17 17:19:14 [2296] [6] DEBUG: sql: INSERT INTO dlr (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES (?, ?, ?, ?, ?, ?, ?, ?, 0)
2016-08-17 17:19:14 [2296] [6] DEBUG: SMSC[kannel]: creating DLR message
2016-08-17 17:19:14 [2296] [6] DEBUG: SMSC[kannel]: DLR = http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=dlr&type=%d&smslog_id=41&uid=1&smsc=kannel
2016-08-17 17:19:14 [2296] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2016-08-17 17:19:14 [2296] [9] DEBUG: boxc_sender: sent message to <127.0.0.1>
2016-08-17 17:19:14 [2296] [8] DEBUG: boxc_receiver: got ack
2016-08-17 17:19:18 [2296] [8] DEBUG: boxc_receiver: heartbeat with load value 0 received
Please someone can help me.
Regards
herveg
August 19, 2016, 9:28am
2
Someone can help me please.
Thanks
anton
August 21, 2016, 4:16am
3
Check playsms.log usually its because the playSMS web url and bearerbox host is different so playSMS won’t accept the DLR from kannel
anton
herveg
August 22, 2016, 3:11pm
4
Anton,
But by this way how to proceed to get DLR report ?
Regards
anton
August 22, 2016, 4:43pm
5
Like I said, check playsms log, hopefully you’ll see why it failed
Anton
herveg
August 23, 2016, 8:54am
6
Hello Anton,
This is my playSMS log :
srvsmsc:~# tail /var/log/playsms/playsms.log
2016-08-23 09:52:20 PID57bc0ec432bb7 - L3 simplerate_hook_rate_deduct # deduct successful uid:2 parent_uid:0 smslog_id:50
2016-08-23 09:52:20 PID57bc0ec432bb7 - L2 sendsms_process # end
2016-08-23 09:52:20 PID57bc0ec432bb7 - L2 sendsmsd # result queue_code:7e109ce061f2d9445dd7be84f1674c7e to:0841060091 flag:1 smslog_id:50
2016-08-23 09:52:20 PID57bc0ec432bb7 - L2 sendsmsd # finish processing queue_code:7e109ce061f2d9445dd7be84f1674c7e uid:2 sender_id:+243840787611 queue_count:1 sms_count:1
2016-08-23 09:52:21 PID57bc0dad21e31 - L3 dlrd # id:73 smslog_id:50 p_status:0 uid:2
172.16.3.65 172.16.3.65 2016-08-23 09:52:25 PID57bc0ec9324bc - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
172.16.3.65 172.16.3.65 2016-08-23 09:52:25 PID57bc0ec9324bc - L3 kannel__dlr # remote_addr:172.16.3.65 remote_host:172.16.3.65 type:[8] smslog_id:[50] uid:[2] smsc:[kannel]
172.16.3.65 172.16.3.65 2016-08-23 09:52:25 PID57bc0ec9324bc - L3 dlr # isdlrd:1 smslog_id:50 p_status:1 uid:2
172.16.3.65 172.16.3.65 2016-08-23 09:52:25 PID57bc0ec9324bc - L2 kannel__call # end load dlr
2016-08-23 09:52:26 PID57bc0dad21e31 - L3 dlrd # id:74 smslog_id:50 p_status:1 uid:2
Bearbox log :
srvsmsc:~# tail /var/log/kannel/bearerbox.log
2016-08-23 09:52:40 [2206] [8] DEBUG: boxc_receiver: heartbeat with load value 0 received
2016-08-23 09:52:51 [2206] [6] DEBUG: AT2[kannel]: --> AT+CPMS?^M
2016-08-23 09:52:51 [2206] [6] DEBUG: AT2[kannel]: <-- +CPMS: “ME”,0,20,“ME”,0,20,“ME”,0,20
2016-08-23 09:52:51 [2206] [6] DEBUG: AT2[kannel]: <-- OK
2016-08-23 09:53:53 [2206] [6] DEBUG: AT2[kannel]: --> AT+CPMS?^M
2016-08-23 09:53:53 [2206] [6] DEBUG: AT2[kannel]: <-- +CPMS: “ME”,0,20,“ME”,0,20,“ME”,0,20
2016-08-23 09:53:53 [2206] [6] DEBUG: AT2[kannel]: <-- OK
2016-08-23 09:54:55 [2206] [6] DEBUG: AT2[kannel]: --> AT+CPMS?^M
2016-08-23 09:54:55 [2206] [6] DEBUG: AT2[kannel]: <-- +CPMS: “ME”,0,20,“ME”,0,20,“ME”,0,20
2016-08-23 09:54:55 [2206] [6] DEBUG: AT2[kannel]: <-- OK
Smsbox log :
srvsmsc:~# tail /var/log/kannel/smsbox.log
2016-08-23 09:52:25 [2354] [9] DEBUG: data: 6e 6f 2d 63 61 63 68 65 0d 0a 43 6f 6e 74 65 6e no-cache…Conten
2016-08-23 09:52:25 [2354] [9] DEBUG: data: 74 2d 4c 65 6e 67 74 68 3a 20 30 0d 0a 4b 65 65 t-Length: 0…Kee
2016-08-23 09:52:25 [2354] [9] DEBUG: data: 70 2d 41 6c 69 76 65 3a 20 74 69 6d 65 6f 75 74 p-Alive: timeout
2016-08-23 09:52:25 [2354] [9] DEBUG: data: 3d 35 2c 20 6d 61 78 3d 31 30 30 0d 0a 43 6f 6e =5, max=100…Con
2016-08-23 09:52:25 [2354] [9] DEBUG: data: 6e 65 63 74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c nection: Keep-Al
2016-08-23 09:52:25 [2354] [9] DEBUG: data: 69 76 65 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 ive…Content-Typ
2016-08-23 09:52:25 [2354] [9] DEBUG: data: 65 3a 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 68 e: text/html; ch
2016-08-23 09:52:25 [2354] [9] DEBUG: data: 61 72 73 65 74 3d 55 54 46 2d 38 0d 0a 0d 0a arset=UTF-8…
2016-08-23 09:52:25 [2354] [9] DEBUG: Octet string dump ends.
2016-08-23 09:52:30 [2354] [9] DEBUG: HTTP: Server closed connection, destroying it <172.16.3.65:80:0::><0x7f88a8000a80>fd:30 .
Thanks for your help.
Herve
herveg
August 24, 2016, 4:39pm
7
Hello Anton,
Please i come to you again about the PlaySMS log. As shown in my previous post, i can’t se an error and everything seem normal. Can you help me about this issue.
Thanks
anton
August 24, 2016, 10:29pm
8
this is the log snippet:
172.16.3.65 172.16.3.65 2016-08-23 09:52:25 PID57bc0ec9324bc - L2 kannel__call # start load:/var/www/html/playsms/plugin/gateway/kannel/dlr.php
172.16.3.65 172.16.3.65 2016-08-23 09:52:25 PID57bc0ec9324bc - L3 kannel__dlr # remote_addr:172.16.3.65 remote_host:172.16.3.65 type:[8] smslog_id:[50] uid:[2] smsc:[kannel]
172.16.3.65 172.16.3.65 2016-08-23 09:52:25 PID57bc0ec9324bc - L3 dlr # isdlrd:1 smslog_id:50 p_status:1 uid:2
172.16.3.65 172.16.3.65 2016-08-23 09:52:25 PID57bc0ec9324bc - L2 kannel__call # end load dlr
- - 2016-08-23 09:52:26 PID57bc0dad21e31 - L3 dlrd # id:74 smslog_id:50 p_status:1 uid:2
it looks like playSMS received DLR, p_status turns to 1, it means Kannel reported to playSMS that the SMS was Sent
.
anton
herveg
August 24, 2016, 10:32pm
9
But i can’t see if the sms was received or failed,or queue ?
anton
August 24, 2016, 10:37pm
10
you did receive it and thats the report, Sent means Kannel deliver the SMS to SMSC (configured in Kannel)
it will change to Deliver (p_status=3) when Kannel received appropriate report from SMSC that the SMS is received by receiver
If your question why playSMS did not report Delivered (blue dot on All sent messages menu) then its because playSMS did not receive the DLR with status Delivered from Kannel, and why Kannel did not report it its because Kannel did not received the report from SMSC. So why SMSC did not report Delivered when the SMS was delivered, this may be because there were no such report available on SMSC, or something was wrong either in SMSC or Kannel
anton