Andrikopoulos Dimitrios wrote:
=====================================Start of PAP
Request==================================
POST <http://172.16.15.30:7080/push/miep_normal>
http://172.16.15.30:7080/push/miep_normal
User-Agent: wap_push/1.0
Content-Type: multipart/related; boundary=PMasdfglkjhqwert;
type="application/xml"
X-Kannel-DLR-Mask: 31
--PMasdfglkjhqwert
here is the cause:
you add only the 'X-Kannel-DLR-Mask' header, but NO corresponding
'X-Kannel-DLR-Url' header.
The logic inside PPG assumes that there is "no use" of storing the DLR data if
there is no target URL to trigger to at the time the DLR is received.
See also gw/wap_push_ppg.c:3300:
/*
* Checking for dlr mask. Mask without dlr url is of course useless.
* We reject (some) non-meaningfull values of dlr_mask. Value indic-
* ating rejection is 0.
*/
static long set_dlr_mask(List *headers, Octstr *dlr_url)
{
Octstr *dlrmaskos;
long dlr_mask;
long masklen;
if (dlr_url == NULL) {
return 0;
}
dlrmaskos = http_header_value(headers, octstr_imm("X-Kannel-DLR-Mask"));
[...]
which reveals the logic. So, make sure you add both headers to get PPG to add
the DLR maska and URL to the msg.
Stipe
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany
tolj.org system architecture Kannel Software Foundation (KSF)
http://www.tolj.org/ http://www.kannel.org/
mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------