[PATCH] SMSC_CIMD2 Remove reply path parameter if not used
Peter Buki <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I created a patch for smsc_cimd2.c, because on Nokia SMSCs
the use of reply path parameter is often forbidden. The
original version (1.4) included it in both cases, mine
includes when it is needed (1).
It is up to you if you include it or not :-)
See you,
Peter
diff -a -u -p smsc_cimd2.c smsc_cimd2.c.modified
--- smsc_cimd2.c 2004-06-21 23:16:06.000000000 +0200
+++ smsc_cimd2.c.modified 2005-02-24 10:41:51.000000000
+0100
@@ -1436,8 +1436,14 @@ static struct packet *packet_encode_mess
*/
if (msg->sms.rpi > 0)
packet_add_int_parm(packet, P_REPLY_PATH, 1, conn);
- else
- packet_add_int_parm(packet, P_REPLY_PATH, 0, conn);
+
+/******************************************************************************
+ * Removed by Peter Buki because reply path locked=1 option
is often set in ase
+ * ase profile on Nokia SMSCs. (client can not use reply
path parameter at all)
+
******************************************************************************
+ else
+ packet_add_int_parm(packet, P_REPLY_PATH, 0, conn);
+
*****************************************************************************/
/* Use binfo to set the tariff class */
if (octstr_len(msg->sms.binfo))