[PATCH] sqlbox bearerbox-host

"Alejandro Guerrieri" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On sqlbox, the parameter "bearerbox-host" gets ignored. Proposed patch
fixes this:

Index: gw/sqlbox.c
===================================================================
RCS file: /home/cvs/sqlbox/gw/sqlbox.c,v
retrieving revision 1.2
diff -u -r1.2 sqlbox.c
--- gw/sqlbox.c 30 May 2006 17:52:46 -0000      1.2
+++ gw/sqlbox.c 3 Oct 2007 13:42:58 -0000
@@ -600,7 +600,6 @@

        /* some default values */
        sqlbox_port_ssl = 0;
-       bearerbox_host = octstr_create(BB_DEFAULT_HOST);
        bearerbox_port = BB_DEFAULT_SMSBOX_PORT;
        bearerbox_port_ssl = 0;
        logfile = NULL;
@@ -624,6 +623,10 @@
        if (grp == NULL)
                panic(0, "No 'sqlbox' group in configuration");

+       bearerbox_host = cfg_get( grp, octstr_imm("bearerbox-host"));
+       if (bearerbox_host == NULL)
+           bearerbox_host = octstr_create(BB_DEFAULT_HOST);
+
        sqlbox_id = cfg_get(grp, octstr_imm("smsbox-id"));
        global_sender = cfg_get(grp, octstr_imm("global-sender"));

Regards,

Alejandro

-- 
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
LinkedIn: http://www.linkedin.com/in/aguerrieri
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.