Hi It might be an "issue" with your carrier. Some carriers does not provide further/intermediate dlrs on longcode (sim) messages.
Place your modem sim on a phone and test if you get delivered confirmation. Regards Alvaro |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Thu, Dec 11, 2014 at 5:06 AM, Geni Areng <geniar...@gmail.com> wrote: > Hi list, > I just only get one delivery report (8), and can't get the second one > (example: 1 for success delivery) after a successful SMS sending. > > My kannel.conf (use Telkomsel Indonesia as the telco provider) > group = core > dlr-storage = mysql > admin-port = 13000 > admin-password = secret > status-password = secret > wapbox-port = 13002 > wdp-interface-name = "*" > log-file = "/var/log/kannel/bearerbox.log" > log-level = 0 > smsbox-port = 13001 > > group = wapbox > bearerbox-host = localhost > log-file = "/var/log/kannel/wapbox.log" > > group = smsc > smsc = at > host = localhost > smsc-id = telkomsel > modemtype = wavecom > device = /dev/ttyS0 > speed = 115200 > sms-center = +6281100000 > > group = modems > id = WAVECOM > name = wavecom > detect-string = "WAVECOM" > init-string="ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" > > group = smsbox > bearerbox-host = localhost > sendsms-port = 13013 > sendsms-chars = "0123456789+" > global-sender = +6281xxx > log-file = "/var/log/kannel/smsbox.log" > log-level = 0 > access-log = "/var/log/kannel/access.log" > > group = sendsms-user > username = kannel > password = secret > max-messages = 10 > concatenation = true > > group = sms-service > keyword = default > accept-x-kannel-headers = true > max-messages = 0 > assume-plain-text = true > get-url = " > http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q > " > > # DLR with MySQL support > group = mysql-connection > id = mydlr > host = localhost > username = root > password = secret > database = dlr > max-connections = 1 > > # DLR table structure > group = dlr-db > id = mydlr > table = dlr > field-smsc = smsc > field-timestamp = ts > field-destination = destination > field-source = source > field-service = service > field-url = url > field-mask = mask > field-status = status > field-boxc-id = boxc > > I created database "dlr" and table "dlr": > mysql> create database dlr; > mysql> create table dlr ( > smsc varchar(40), > ts varchar(40), > destination varchar(40), > source varchar(40), > service varchar(40), > url varchar(255), > mask int(10), > status int(10), > boxc varchar(40) > ); > > I tried to send SMS using: > http://localhost:13013/cgi-bin/sendsms?username=kannel&password=secret&from=+6281xxx&to=081yyy&text=test+sms&dlr-mask=31&dlr-url=http%3A%2F%2F127.0.0.1%2Fdlr.php%3Fmsgid%3D1%26state%3D%25d%26msisdn%3D%25p > > Message sent successfully. > Kannel inserted data to mysql, but did not delete it as it should be if a > message got success to deliver. > (Notice, I just got 1 delivery report (state=8)). > > My bearerbox.log: > 2014-12-11 13:29:39 [10797] [17] DEBUG: boxc_receiver: sms received > 2014-12-11 13:29:39 [10797] [17] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > 2014-12-11 13:29:41 [10797] [6] DEBUG: AT2[telkomsel]: TP-Validity-Period: > 24.0 hours > 2014-12-11 13:29:41 [10797] [6] DEBUG: AT2[telkomsel]: --> AT+CMGS=21^M > 2014-12-11 13:29:41 [10797] [6] DEBUG: AT2[telkomsel]: <-- AT+CMGS=21> > 2014-12-11 13:29:41 [10797] [6] DEBUG: AT2[telkomsel]: send command > status: 1 > 2014-12-11 13:29:41 [10797] [6] DEBUG: AT2[telkomsel]: --> > 0031000B818021628510F10000A708F4F29C0E9AB7E7 > 2014-12-11 13:29:41 [10797] [6] DEBUG: AT2[telkomsel]: --> ^Z > 2014-12-11 13:29:43 [10797] [6] DEBUG: AT2[telkomsel]: <-- > > 0031000B818021628510F10000A708F4F29C0E9AB7E7 > 2014-12-11 13:29:43 [10797] [6] DEBUG: AT2[telkomsel]: <-- +CMGS: 62 > 2014-12-11 13:29:43 [10797] [6] DEBUG: AT2[telkomsel]: <-- OK > 2014-12-11 13:29:43 [10797] [6] DEBUG: AT2[telkomsel]: send command > status: 0 > 2014-12-11 13:29:43 [10797] [6] DEBUG: DLR[mysql]: Adding DLR > smsc=telkomsel, ts=62, src= 6281xxx, dst=081yyy, mask=31, boxc= > 2014-12-11 13:29:43 [10797] [6] DEBUG: sql: INSERT INTO dlr (smsc, ts, > source, destination, service, url, mask, boxc, status) VALUES ('telkomsel', > '62', ' 6281xxx', '081yyy', 'kannel', ' > http://127.0.0.1/dlr.php?msgid=1&state=%d&msisdn=%p', '31', '', '0'); > 2014-12-11 13:29:43 [10797] [6] DEBUG: SMSC[telkomsel]: creating DLR > message > 2014-12-11 13:29:43 [10797] [6] DEBUG: SMSC[telkomsel]: DLR = > http://127.0.0.1/dlr.php?msgid=1&state=%d&msisdn=%p > 2014-12-11 13:29:43 [10797] [18] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > 2014-12-11 13:29:43 [10797] [18] DEBUG: boxc_sender: sent message to > <127.0.0.1> > 2014-12-11 13:29:43 [10797] [17] DEBUG: boxc_receiver: got ack > 2014-12-11 13:30:12 [10797] [17] DEBUG: boxc_receiver: heartbeat with load > value 0 received > > My smsbox.log: > 2014-12-11 13:29:43 [10819] [4] INFO: Starting delivery report <kannel> > from < 6281xxx> > 2014-12-11 13:29:43 [10819] [4] DEBUG: Started thread 8 > (gwlib/fdset.c:poller) > 2014-12-11 13:29:43 [10819] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) > maps to pid 10819. > 2014-12-11 13:29:43 [10819] [4] DEBUG: Started thread 9 > (gwlib/http.c:write_request_thread) > 2014-12-11 13:29:43 [10819] [9] DEBUG: Thread 9 > (gwlib/http.c:write_request_thread) maps to pid 10819. > 2014-12-11 13:29:43 [10819] [9] DEBUG: Queue contains 0 pending requests. > 2014-12-11 13:29:43 [10819] [9] DEBUG: Parsing URL ` > http://127.0.0.1/dlr.php?msgid=1&state=8&msisdn=081yyy': > 2014-12-11 13:29:43 [10819] [9] DEBUG: Scheme: http:// > 2014-12-11 13:29:43 [10819] [9] DEBUG: Host: 127.0.0.1 > 2014-12-11 13:29:43 [10819] [9] DEBUG: Port: 80 > 2014-12-11 13:29:43 [10819] [9] DEBUG: Username: (null) > 2014-12-11 13:29:43 [10819] [9] DEBUG: Password: (null) > 2014-12-11 13:29:43 [10819] [9] DEBUG: Path: /dlr.php > 2014-12-11 13:29:43 [10819] [9] DEBUG: Query: > msgid=1&state=8&msisdn=081yyy > 2014-12-11 13:29:43 [10819] [9] DEBUG: Fragment: (null) > 2014-12-11 13:29:43 [10819] [9] DEBUG: HTTP: Opening connection to ` > 127.0.0.1:80' (fd=28). > 2014-12-11 13:29:43 [10819] [9] DEBUG: Socket connecting > > ps: > If I use playsms, it can show green indicator after a message sent > successfully. > But I do not want to use playsms. > > Thanks for help. >