sendOTA misses forced-smsc & friends

Indrek Mandre <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <B9A4FDCD41EAD411B0C900D0B7A959211451D8@EXCHANGE>
I'm not sure u don't have this already fixed but here
goes nothing:

As said my semi-old CVS version of kannel does not
support forced-smsc at sending OTA. As I only need
the configuration file setting I didn't implement it
completely. Also my system is prepatched and modified.
So this patch might not work very well for you:

--- smsbox.c    2001/11/08 09:48:29     1.1
+++ smsbox.c    2002/01/31 15:26:23
@@ -1623,6 +1623,13 @@
     msg->sms.sms_type = mt_push;
     msg->sms.udhdata = octstr_create("");
 
+    if (urltrans_forced_smsc(t)) {
+       msg->sms.smsc_id = octstr_duplicate(urltrans_forced_smsc(t));
+    } else if (urltrans_default_smsc(t)) {
+       msg->sms.smsc_id = octstr_duplicate(urltrans_default_smsc(t));
+    } else
+       msg->sms.smsc_id = NULL;
+
     octstr_append_from_hex(msg->sms.udhdata, "0B0504C34FC0020003040201");
     /* WDP layer (end WDP headers) */

Anyway, the sms-sending and finding smsc should be in one
function, what i did was just duplicate functionality.
Eg. you should rethink the way things are done in smsbox.c.

Best regards,
Indrek
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.