hello,

i'm writing again about the problem about CIMD2. SMSC reports with error 
310 as follows:

2002-11-18 20:32:29 [5] DEBUG: boxc_receiver: sms received
2002-11-18 20:32:29 [8] DEBUG: smscconn_sender (CIMD2:10.110.16.12:9971:m1372): 
sending message
2002-11-18 20:32:29 [8] ERROR: CIMD2 Submit message response contained error message:
2002-11-18 20:32:29 [8] ERROR: code 310: Incorrect status report request parameter 
usage

this is a code fragment from smsc_cimd2.c, and  Richard Braakman reported, 
that it has been added after he stopped developing kannel. 

    /* Explicitly ask not to get status reports.
     * If we do not do this, the server's default might be to
     * send status reports in some cases, and we don't do anything
     * with those reports anyway. */
    /* ask for the delivery reports if needed*/

    if (msg->sms.dlr_mask & 0x03)
    {
        packet_add_int_parm(packet, P_STATUS_REPORT_REQUEST, 14);
    }
    else
        packet_add_int_parm(packet, P_STATUS_REPORT_REQUEST, 0);

so it seems, that if i add dlrmask=3 to the url (11 & 11), it would 
request status report, and it won't, if dlrmask is empty, it would
not. but both variants report with error 310 from the SMSC. 

i took a look to the specification of the CIMD2 and there are all aviable
status report requests listed. so maybe it depends on the CIMD2 exact
version? 

if I only get a bit information, I would try to write a patch. 

i'm using kannel-1.2.0 under Debian.

regards,
Dziugas Baltrunas



Reply via email to