The smpp smsc code does not seem to set the
msg->sms.smsc_id field.

--- smsc_smpp.c
+++ smsc_smpp.c
@@ -371,7 +371,9 @@
        /* bb_smscconn_receive can fail, but we ignore that since we
           have no way to usefull tell the SMS center about this
           (no suitable error code for the deliver_sm_resp is defined) */
-       (void) bb_smscconn_receive(smpp->conn, pdu_to_msg(pdu));
+       msg = pdu_to_msg (pdu);
+       msg->sms.smsc_id = octstr_duplicate(smpp->conn->id);
+       (void) bb_smscconn_receive(smpp->conn, msg);
        resp = smpp_pdu_create(deliver_sm_resp, 
                               pdu->u.deliver_sm.sequence_number);
        break;

Regards,
Indrek

Reply via email to