Tarun Dua wrote:
> 
> We get the following delivery report format in delivery_sm PDU from the
> SMPP smsc
> 
> id:xxxx1 sub:1 dlvrd:1 submit date:031113120612 done date:031113120616
> stat:4 err:0
> 
> However according to kannel source gw/smsc/smsc_smpp.c
> --------------------------------------
> /*
>                  * we get the following status:
>                  * DELIVRD, ACCEPTD, EXPIRED, DELETED, UNDELIV, UNKNOWN,
> REJECTD
>                  */
> 
>                 if ((stat != NULL) && ((octstr_compare(stat,
> octstr_imm("DELIVRD")) == 0) ||
>                     (octstr_compare(stat, octstr_imm("ACCEPTD")) == 0)))
>                     dlrstat = DLR_SUCCESS;
>                 else
>                     dlrstat = DLR_FAIL;
> --------------------------------------
> Does that mean kannel only handles the delivery report format as C-Octet
> String of length 7 or I am missing something obvious.
> Should that mean that the smsc is following a non-standard format what
> can be the possible solutions.
> The SMPP standard mentions that the format for delivery report shown
> there is only an example. Any pointers in right direction.

first of all: don't cross-post to mailing lists!!! we consider this as
annoying.

1st issue: correct, the SMSC does not follow appendix B of the SMPP
v3.4 spec in terms of how the 'stat' field is set. Hence Kannel is
unable to handle it in the SMPP module code.

2nd issue: also correct, SMPP specs states that the DLR format MAY be
vendor specific, which is the case here. 

So, either you tell your SMSC provider that they may switch to the
"more general" format, or you patch your local Kannel sources to
reflect the behaviour you actually want.

Stipe

mailto:[EMAIL PROTECTED]
-------------------------------------------------------------------
Wapme Systems AG

M�nsterstr. 248
40470 D�sseldorf, NRW, Germany

phone: +49.211.74845.0
fax: +49.211.74845.299

mailto:[EMAIL PROTECTED]
http://www.wapme-systems.de/
-------------------------------------------------------------------

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.2 (Cygwin)

mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS
OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2
nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT
dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv
bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID
AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl
OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ
K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H
g2HyLAEKQIp30Q==
=aYCI
-----END PGP PUBLIC KEY BLOCK-----

Reply via email to