[PATCH] smsc-id in /status.xml

"Angel Fradejas" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi all,

Here's a tiny patch to include smsc-id in /status.xml

We use the XML version of /status to monitor kannel, and we missed smsc-id.

Angel Fradejas
Mediafusión España, S.A.
[email protected]
www.mediafusion.es
Tel. +34 91 252 32 00
Fax +34 91 572 27 08
bb_smscconn.patch (application/octet-stream, 788 B)
Index: gw/bb_smscconn.c
===================================================================
RCS file: /home/cvs/gateway/gw/bb_smscconn.c,v
retrieving revision 1.37
diff -u -r1.37 bb_smscconn.c
--- gw/bb_smscconn.c	20 Dec 2001 12:43:35 -0000	1.37
+++ gw/bb_smscconn.c	17 Apr 2002 13:55:46 -0000
@@ -467,7 +467,10 @@
 	    octstr_append_cstr(tmp, "    ");
 	}
 	if (status_type == BBSTATUS_XML) {
-            octstr_append_cstr(tmp, "<smsc>\n\t\t<name>");
+            octstr_append_cstr(tmp, "<smsc>\n\t\t<id>");
+            octstr_append(tmp,  smscconn_id(conn));
+            octstr_append_cstr(tmp, "</id>\n\t\t");
+            octstr_append_cstr(tmp, "<name>");
             octstr_append(tmp,  smscconn_name(conn));
             octstr_append_cstr(tmp, "</name>\n\t\t");
         }
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.