Oded AT2 DLR patch

"Andrea Viscovich" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
There is a problem.
In at2_send_one message here is the code:
     /* gen DLR_SMSC_SUCCESS */
     if (msg->sms.dlr_mask & DLR_SMSC_SUCCESS)
     {
                Msg* dlrmsg;

                dlrmsg = msg_create(sms);
                dlrmsg->sms.id = msg->sms.id;
                dlrmsg->sms.service = octstr_duplicate(msg->sms.service);
                dlrmsg->sms.dlr_mask = DLR_SMSC_SUCCESS;
                dlrmsg->sms.sms_type = report;
                dlrmsg->sms.smsc_id = octstr_duplicate(privdata->conn->id);
                dlrmsg->sms.sender = octstr_duplicate(msg->sms.receiver);
                dlrmsg->sms.receiver = octstr_duplicate(msg->sms.sender);
                dlrmsg->sms.msgdata = octstr_create("ACK/");
                octstr_append(dlrmsg->sms.msgdata,msg->sms.dlr_url);
               /* store DLR message if needed for SMSC generated delivery
reports */
               if (msg->sms.dlr_mask & (DLR_SUCCESS | DLR_FAIL |
DLR_BUFFERED)) {
                  .......

So if one has dlrmask = 3 will never get dlr, as there is dlr only
if in the mask is set DLR_SMSC_SUCCESS bit
Oded, think I found my problem :-),
by the way you should tell me which dlrmask you were using!
Andrea
P.S. in smsc_at2.c in your patch you have some debug("bb.at2......
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.