FID get null

Benjamin Heryanto <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Dear


If i using sendsms i cant get FID (null) but if from receive via mo i got
FID

2009-05-26 14:43:20 Sent SMS [SMSC:abc] [SVC:topush] [ACT:]
[BINF:1234008004] [FID:(null)] [META:] [from:3910] [to:628512333]
[flags:-1:0:-1:-1:31] [msg:4:test] [udh:0:]


2009-05-26 14:47:50 Receive DLR [SMSC:abc] [SVC:topush] [ACT:] [BINF:]
[FID:(null)] [META:] [from:1234] [to:628512333] [flags:-1:-1:-1:-1:1]
[msg:1:2] [udh:0:]


this is the script FID get from TRANSID via xml

static void abc_parse_reply(SMSCConn *conn, Msg *msg, int status,
                              List *headers, Octstr *body)
{
        Octstr *tid, *dest, *code, *desc;
        List *reply_headers;

    code = parse_xml_tag(body, octstr_imm("STATUS"));
    tid = parse_xml_tag(body, octstr_imm("TRANSID"));
    dest = octstr_duplicate(msg->sms.receiver);

    /*SUCCESS*/
    if (status == HTTP_OK || status == HTTP_ACCEPTED) {
        if (octstr_case_compare(code, octstr_imm("0")) == 0 && tid != NULL)
{
    msg->sms.foreign_id=octstr_duplicate(tid);

       if (DLR_IS_ENABLED_DEVICE(msg->sms.dlr_mask))
                dlr_add(conn->id, tid, msg);
     octstr_destroy(tid);
            bb_smscconn_sent(conn, msg, NULL);
        } else {
            bb_smscconn_send_failed(conn, msg,
                        SMSCCONN_FAILED_MALFORMED, octstr_duplicate(code));
        }
    }
}
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.