[PATCH] smsc id

"Rene Kluwen" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I atttached a little issue that came up in the Clickatell driver.
This patch sets the smsc_id in incoming messages.
Otherwise, they are unable to be routed (smsbox_list empty).

Rene Kluwen
Chimit


Index: gw/smsc/smsc_http.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smsc_http.c,v
retrieving revision 1.45
diff -u -r1.45 smsc_http.c
--- gw/smsc/smsc_http.c 17 Mar 2006 10:39:01 -0000      1.45
+++ gw/smsc/smsc_http.c 27 Mar 2006 21:40:33 -0000
@@ -669,6 +669,7 @@
        momsg->sms.msgdata = octstr_duplicate(text);
        momsg->sms.charset = octstr_duplicate(charset);
        momsg->sms.binfo = octstr_duplicate(api_id);
+       momsg->sms.smsc_id = octstr_duplicate(conn->id);
        if (octstr_len(udh) > 0) {
            momsg->sms.udhdata = octstr_duplicate(udh);
        }
smsc_id.patch (text/plain, 602 B)
Index: gw/smsc/smsc_http.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smsc_http.c,v
retrieving revision 1.45
diff -u -r1.45 smsc_http.c
--- gw/smsc/smsc_http.c	17 Mar 2006 10:39:01 -0000	1.45
+++ gw/smsc/smsc_http.c	27 Mar 2006 21:40:33 -0000
@@ -669,6 +669,7 @@
 	momsg->sms.msgdata = octstr_duplicate(text);
 	momsg->sms.charset = octstr_duplicate(charset);
 	momsg->sms.binfo = octstr_duplicate(api_id);
+	momsg->sms.smsc_id = octstr_duplicate(conn->id);
 	if (octstr_len(udh) > 0) {
 	    momsg->sms.udhdata = octstr_duplicate(udh);
 	}
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.