Re: running the bearerbox with mysq

James Coleman <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hello,

File doc/examples/dlr-mysql.conf
 specified group name for db dlr group incorrectly.
line 35:group = dlr-mysql
should be:group = dlr-db

A user used the example as a basis of the config file and it took
a while to figure out what was wrong.

The error was a bit misleading; implied dlr-mysql group was okay ...
2004-11-15 10:36:55 [3667] [0] ERROR: Group 'dlr-mysql' may not contain field 'field-url'.
2004-11-15 10:36:55 [3667] [0] ERROR: Error found on line 56 of file `/etc/smskannel.conf'.

teeny tiny one line change patch to doc/examples/dlr-mysql.conf attached.
from top of src tree
 cvs diff -u doc/examples/dlr-mysql.conf >dlr-mysql-doc-example-dlr-db.patch
Is this okay?


In gwlib/cfg.c and cfg.def it could be useful to make a distinction between
config errors where the group doesn't match any known groups. But the way
it is done now the group names are not specifically checked.


James.


On Sat, Nov 13, 2004 at 11:47:55AM +0530, shyam kumar wrote:
> Dear James/Dear all
> 	got the problem solved for the dlr issue
> 
> yes u were right as
> 
> > something simple must be wrong ...
> > 
> 
> the simple thing is in the doc/example/dlr-mysql.conf
> the mysql groupname for the database fields given is dlr-mysql
> and in the user-guide it is given as dlr-db,
> i was using dlr-mysql, when i changed to dlr-db it started working.
> 
[*chomp*]
dlr-mysql-doc-example-dlr-db.patch (text/plain, 444 B)
Index: doc/examples/dlr-mysql.conf
===================================================================
RCS file: /home/cvs/gateway/doc/examples/dlr-mysql.conf,v
retrieving revision 1.5
diff -u -r1.5 dlr-mysql.conf
--- doc/examples/dlr-mysql.conf	2 Sep 2003 12:58:56 -0000	1.5
+++ doc/examples/dlr-mysql.conf	15 Nov 2004 10:47:05 -0000
@@ -32,7 +32,7 @@
 #   )
 #
 
-group = dlr-mysql
+group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
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.