[PATCH] receipted_message_id on MO
Alejandro Guerrieri <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, This small patch maps the receipted_msg_id parameter on MO message to the foreign_id field, thus allowing to use %F for MO as well. Regards, -- Alejandro Guerrieri [email protected]
kannel-mo-fid.patch
(application/octet-stream, 1013 B)
Index: gw/smsc/smsc_smpp.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smsc_smpp.c,v
retrieving revision 1.123
diff -u -b -w -r1.123 smsc_smpp.c
--- gw/smsc/smsc_smpp.c 2 Sep 2009 13:10:50 -0000 1.123
+++ gw/smsc/smsc_smpp.c 14 Oct 2010 10:13:49 -0000
@@ -471,6 +471,10 @@
msg->sms.binfo = pdu->u.deliver_sm.service_type;
pdu->u.deliver_sm.service_type = NULL;
+ /* Foreign ID on MO */
+ msg->sms.foreign_id = pdu->u.deliver_sm.receipted_message_id;
+ pdu->u.deliver_sm.receipted_message_id = NULL;
+
if (pdu->u.deliver_sm.esm_class & ESM_CLASS_SUBMIT_RPI)
msg->sms.rpi = 1;
@@ -635,6 +639,10 @@
msg->sms.binfo = pdu->u.data_sm.service_type;
pdu->u.data_sm.service_type = NULL;
+ /* Foreign ID on MO */
+ msg->sms.foreign_id = pdu->u.data_sm.receipted_message_id;
+ pdu->u.data_sm.receipted_message_id = NULL;
+
if (pdu->u.data_sm.esm_class & ESM_CLASS_SUBMIT_RPI)
msg->sms.rpi = 1;