Browse code

utils/pdbt: fix spelling errors catched by lintian #688

Victor Seva authored on 29/06/2016 15:50:59
Showing 1 changed files
... ...
@@ -48,7 +48,7 @@ void pdb_log(int priority, char * format, ...);
48 48
 #define PDB_OK 0              /* Everything ok */
49 49
 #define PDB_USE_ERROR 1       /* Wrong usage of application (unknown command, file not found, etc.) */
50 50
 #define PDB_NOT_IN_PDB 2      /* A queried number is not in the pdb */
51
-#define PDB_TIMEOUT 3         /* A timeout (server not responding) occured */
52
-#define PDB_OTHER 4           /* Another application error occured */
51
+#define PDB_TIMEOUT 3         /* A timeout (server not responding) occurred */
52
+#define PDB_OTHER 4           /* Another application error occurred */
53 53
 
54 54
 #endif
Browse code

pdb: new protocol between pdb_server and kama pdb module

Modified the communication protocol between the pdb clent <-> server such
that the server will give more feedback on scenarios like "pdb_id not found" or
"request number contains letters". New msg types or reply codes can be easily
added. Curent version of the protocol is 1 (0x01).
Also backwards compatibility is maintained when the first received byte is
different than the known versions (now, just 0x01).
Updated the http link for the get_carrier_germany script. Created a new perl
script to get german carrier id.
Updated doku (utils/pdbt/docs/network_protocol.txt).

added the perls script

Stefan Mititelu authored on 04/06/2015 08:34:19
Showing 1 changed files
... ...
@@ -43,7 +43,12 @@ void pdb_log(int priority, char * format, ...);
43 43
 #define LINFO(fmt, args...) pdb_log(LOG_INFO, fmt, ## args)
44 44
 #define LDEBUG(fmt, args...) pdb_log(LOG_DEBUG, fmt, ## args)
45 45
 
46
+/* several shell exit codes for the application pdbt */
46 47
 
47
-
48
+#define PDB_OK 0              /* Everything ok */
49
+#define PDB_USE_ERROR 1       /* Wrong usage of application (unknown command, file not found, etc.) */
50
+#define PDB_NOT_IN_PDB 2      /* A queried number is not in the pdb */
51
+#define PDB_TIMEOUT 3         /* A timeout (server not responding) occured */
52
+#define PDB_OTHER 4           /* Another application error occured */
48 53
 
49 54
 #endif
Browse code

all: updated FSF address in GPL text

Anthony Messina authored on 04/07/2014 09:36:37 • Daniel-Constantin Mierla committed on 04/07/2014 09:37:36
Showing 1 changed files
... ...
@@ -15,7 +15,7 @@
15 15
  *
16 16
  * You should have received a copy of the GNU General Public License 
17 17
  * along with this program; if not, write to the Free Software 
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19 19
  */
20 20
 
21 21
 #ifndef _LOG_H_
Browse code

pdb: add daemon 'pdb_server' and optimising data compiler 'pdbt'

- add number portability database daemon and optimizing data compiler
- add debian packaging scripts for tool and daemon as well
- TODO:
- add documentation (run binaries with '-h' for now to get help)
- fix this redundant declaration of trie (dt* files) and logging (log*).
There exists already an implementation that uses the sr core parts for
this, but we import the proven implementation for now.
- add data helper scripts as well, they need some cleanup first
- initial implementation was done from Hardy Kahl @ 1&1 Internet Ag
- further bug fixes from Timo Reimann, timo dot reimann at 1und1 dot de

Henning Westerholt authored on 10/09/2009 16:35:05
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,49 @@
1
+/*
2
+ * Copyright (C) 2009 1&1 Internet AG
3
+ *
4
+ * This file is part of sip-router, a free SIP server.
5
+ *
6
+ * sip-router is free software; you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation; either version 2 of the License, or
9
+ * (at your option) any later version
10
+ *
11
+ * sip-router is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License 
17
+ * along with this program; if not, write to the Free Software 
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
+ */
20
+
21
+#ifndef _LOG_H_
22
+#define _LOG_H_
23
+
24
+#include <syslog.h>
25
+
26
+
27
+
28
+
29
+void init_log(char *_prgname, int _use_syslog);
30
+
31
+void set_log_level(int level);
32
+
33
+void destroy_log(void);
34
+
35
+void pdb_log(int priority, char * format, ...);
36
+
37
+#define LEMERG(fmt, args...) pdb_log(LOG_EMERG, fmt, ## args)
38
+#define LALERT(fmt, args...) pdb_log(LOG_ALERT, fmt, ## args)
39
+#define LCRIT(fmt, args...) pdb_log(LOG_CRIT, fmt, ## args)
40
+#define LERR(fmt, args...) pdb_log(LOG_ERR, fmt, ## args)
41
+#define LWARNING(fmt, args...) pdb_log(LOG_WARNING, fmt, ## args)
42
+#define LNOTICE(fmt, args...) pdb_log(LOG_NOTICE, fmt, ## args)
43
+#define LINFO(fmt, args...) pdb_log(LOG_INFO, fmt, ## args)
44
+#define LDEBUG(fmt, args...) pdb_log(LOG_DEBUG, fmt, ## args)
45
+
46
+
47
+
48
+
49
+#endif