We have a situation where someone using a CDMA handset ( which does not
support delivery receipt ) sends in an sms and it does not get to smsbox.

Bearer box outputs 'got DLR but could not find message or was not interested
in it' and that's as far as it gets.

Does anybody know what the code below is trying to do ?  And what would need
to occur to get in an error state ??

smsc_smpp.c

                if (msgid != NULL) {
                    Octstr *tmp;
                    tmp = octstr_format("%ld",
strtol(octstr_get_cstr(msgid), NULL, 10));
                    dlrmsg = dlr_find(octstr_get_cstr(smpp->conn->id),
                                      octstr_get_cstr(tmp), /* smsc message
id */

octstr_get_cstr(pdu->u.deliver_sm.destination_addr), /* destination */
                                      dlrstat);
                    octstr_destroy(tmp);
                }
                if (dlrmsg != NULL) {
                    reply = octstr_duplicate(respstr);
                    /* having a / in the text breaks it so lets replace it
with a space */
                    len = octstr_len(reply);
                    for (idx = 0; idx < len; idx++)
                        if (octstr_get_char(reply, idx) == '/')
                            octstr_set_char(reply, idx, '.');
                    octstr_append_char(reply, '/');
                    octstr_insert(dlrmsg->sms.msgdata, reply, 0);
                    octstr_destroy(reply);
                    bb_smscconn_receive(smpp->conn, dlrmsg);
                } else {
                    error(0,"SMPP[%s]: got DLR but could not find message or
was not interested in it",
                          octstr_get_cstr(smpp->conn->id));
                }


regards

Wayne Smithers
5th Finger
[EMAIL PROTECTED]
91 Reservoir St
Surry Hills 2010
Sydney, Australia
Ph:  +61-2-9280-0300
Mob: +61-409-603511
Fax: +612-9475-0367


Reply via email to