I tried to modify the dlr_mysql_remove to make it the same as dlr_mysql_update, simply by editing the dlr_mysql.c and making the dlr_remove to become dlr_mysql_update.

This would make the dlr's not be deleted when getting the last status-report and always updated to the "latest" dlr status, but instead, the status always gets updated to the value 135184161.

In the access.log, it does show as "Buffered" to "Success", but not in the sql update. Below i include log snippets.

Is this normal behaviour, or a wrong path i took along the way?
note: cvs kannel.

\\pb

kannel.log:

2004-03-21 03:07:19 [19276] [7] DEBUG: AT2[testeid]: got STATUS-REPORT for message <139>:
2004-03-21 03:07:19 [19276] [7] DEBUG: AT2[testeid]: Numeric receiver <912202877>
2004-03-21 03:07:19 [19276] [7] DEBUG: DLR[mysql]: Looking for DLR smsc=testeid, ts=139, dst=91xxxxxxx, type=1
2004-03-21 03:07:19 [19276] [7] DEBUG: sql: SELECT mask, service, url, source, destination, boxcid FROM dlr WHERE smsc='testeid' AND ts='139';
2004-03-21 03:07:19 [19276] [7] DEBUG: Found entry, row[0]=7, row[1]=tester, row[2]=, row[3]=91xxxxxxx, row[4]=91xxxxxxx row[5]=
2004-03-21 03:07:19 [19276] [7] DEBUG: DLR[mysql]: created DLR message for URL <>
2004-03-21 03:07:19 [19276] [7] DEBUG: updating DLR status in database
2004-03-21 03:07:19 [19276] [7] DEBUG: sql: UPDATE dlr SET status=135184161 WHERE smsc='testeid' AND ts='139' LIMIT 1;


access.log:

2004-03-21 02:58:48 DLR SMS [SMSC:testeid] [SVC:tester] [ACT:] [BINF:] [from:91xxxxxx] [to:91xxxxxxx] [flags:-1:-1:-1:-1:4] [msg:8:Buffered] [udh:0:]
2004-03-21 03:07:19 DLR SMS [SMSC:testeid] [SVC:tester] [ACT:] [BINF:] [from:91xxxxxxx] [to:91xxxxxxx] [flags:-1:-1:-1:-1:1] [msg:7:Success] [udh:0:]





Reply via email to