|
@@ -1,39 +1,136 @@
|
|
-# $Id$
|
|
|
|
-#
|
|
|
|
-# README
|
|
|
|
-#
|
|
|
|
-# History:
|
|
|
|
-# --------
|
|
|
|
-# 2003-04-07 this is a hack, from serctl, to make work with postgres
|
|
|
|
-#
|
|
|
|
-# DISCLAIMER:
|
|
|
|
-# I have yet to get this software working in my production environment.
|
|
|
|
-# Everything compiles and runs, but not for long. It may or may not be a
|
|
|
|
-# good starting point for the ser postgres driver.
|
|
|
|
-#
|
|
|
|
-# I had a hard time with memory while developing this.
|
|
|
|
-# So, I decided to incorporate some memory routines that
|
|
|
|
-# I have been using for years. This didn't fix the problem,
|
|
|
|
-# but it did make memory management easier.
|
|
|
|
-#
|
|
|
|
-# The postgres driver requires that you have postgres installed
|
|
|
|
-# on your system. You can download this from: www.postgresql.org.
|
|
|
|
-# For this I used postgres version 7.3.2, but I imagine almost any
|
|
|
|
-# recent version should work.
|
|
|
|
-#
|
|
|
|
-# You will then need to have a postgres database somewhere, and it
|
|
|
|
-# needs to have the tables created in it. Currently I am supporting
|
|
|
|
-# 2 tables, location and subscriber. The file createtables.txt contains
|
|
|
|
-# the table definitions and index definitions.
|
|
|
|
-#
|
|
|
|
-# You may wish to load the tables from a 0.8.10 database. The script
|
|
|
|
-# copy_to_psql can be modified to open your mysql database and it outputs
|
|
|
|
-# the necessary commands to populate the tables of the postgres database.
|
|
|
|
-#
|
|
|
|
-# To use the postgres module in your ser.cfg file is just like using the
|
|
|
|
-# mysql module. Ie:
|
|
|
|
-# loadmodule "/usr/local/lib/ser/modules/postgres.so"
|
|
|
|
-#
|
|
|
|
-# That's it. Good luck.
|
|
|
|
-# ---greg
|
|
|
|
-# Greg Fausak, August.Net Services, [email protected]
|
|
|
|
|
|
+
|
|
|
|
+postgres Module
|
|
|
|
+
|
|
|
|
+Greg Fausak
|
|
|
|
+
|
|
|
|
+ August.net
|
|
|
|
+
|
|
|
|
+Edited by
|
|
|
|
+
|
|
|
|
+Greg Fausak
|
|
|
|
+
|
|
|
|
+ Copyright © 2003 Greg Fausak
|
|
|
|
+ _________________________________________________________
|
|
|
|
+
|
|
|
|
+ Table of Contents
|
|
|
|
+ 1. User's Guide
|
|
|
|
+
|
|
|
|
+ 1.1. Overview
|
|
|
|
+ 1.2. Dependencies
|
|
|
|
+
|
|
|
|
+ 1.2.1. SER Modules
|
|
|
|
+ 1.2.2. External Libraries or Applications
|
|
|
|
+
|
|
|
|
+ 1.3. Exported Parameters
|
|
|
|
+
|
|
|
|
+ 1.3.1. param_name (param_type)
|
|
|
|
+
|
|
|
|
+ 1.4. Exported Functions
|
|
|
|
+
|
|
|
|
+ 1.4.1. function_name(param1, param2)
|
|
|
|
+
|
|
|
|
+ 1.5. Installation & Running
|
|
|
|
+
|
|
|
|
+ 2. Developer's Guide
|
|
|
|
+ 3. Frequently Asked Questions
|
|
|
|
+
|
|
|
|
+ List of Examples
|
|
|
|
+ 1-1. Set param_name parameter
|
|
|
|
+ 1-2. function_name usage
|
|
|
|
+ _________________________________________________________
|
|
|
|
+
|
|
|
|
+Chapter 1. User's Guide
|
|
|
|
+
|
|
|
|
+1.1. Overview
|
|
|
|
+
|
|
|
|
+ Module description
|
|
|
|
+ _________________________________________________________
|
|
|
|
+
|
|
|
|
+1.2. Dependencies
|
|
|
|
+
|
|
|
|
+1.2.1. SER Modules
|
|
|
|
+
|
|
|
|
+ The following modules must be loaded before this module:
|
|
|
|
+
|
|
|
|
+ * No dependencies on other SER modules.
|
|
|
|
+ _________________________________________________________
|
|
|
|
+
|
|
|
|
+1.2.2. External Libraries or Applications
|
|
|
|
+
|
|
|
|
+ The following libraries or applications must be installed
|
|
|
|
+ before running SER with this module loaded:
|
|
|
|
+
|
|
|
|
+ * None.
|
|
|
|
+ _________________________________________________________
|
|
|
|
+
|
|
|
|
+1.3. Exported Parameters
|
|
|
|
+
|
|
|
|
+1.3.1. param_name (param_type)
|
|
|
|
+
|
|
|
|
+ Param description.
|
|
|
|
+
|
|
|
|
+ Default value is "value".
|
|
|
|
+
|
|
|
|
+ Example 1-1. Set param_name parameter
|
|
|
|
+...
|
|
|
|
+modparam("module", "param_name", "param_value")
|
|
|
|
+...
|
|
|
|
+ _________________________________________________________
|
|
|
|
+
|
|
|
|
+1.4. Exported Functions
|
|
|
|
+
|
|
|
|
+1.4.1. function_name(param1, param2)
|
|
|
|
+
|
|
|
|
+ Description
|
|
|
|
+
|
|
|
|
+ Meaning of the parameters is as follows:
|
|
|
|
+
|
|
|
|
+ * param1 - description.
|
|
|
|
+ * param2 - description.
|
|
|
|
+
|
|
|
|
+ Example 1-2. function_name usage
|
|
|
|
+...
|
|
|
|
+function_name("sample_param1", "sample_param2");
|
|
|
|
+...
|
|
|
|
+ _________________________________________________________
|
|
|
|
+
|
|
|
|
+1.5. Installation & Running
|
|
|
|
+
|
|
|
|
+ Notes about installation and running.
|
|
|
|
+ _________________________________________________________
|
|
|
|
+
|
|
|
|
+Chapter 2. Developer's Guide
|
|
|
|
+
|
|
|
|
+ The module does not provide any sort of API to use in other
|
|
|
|
+ SER modules.
|
|
|
|
+ _________________________________________________________
|
|
|
|
+
|
|
|
|
+Chapter 3. Frequently Asked Questions
|
|
|
|
+
|
|
|
|
+ 3.1. Where can I find more about SER?
|
|
|
|
+ 3.2. Where can I post a question about this module?
|
|
|
|
+ 3.3. How can I report a bug?
|
|
|
|
+
|
|
|
|
+ 3.1. Where can I find more about SER?
|
|
|
|
+
|
|
|
|
+ Take a look at http://iptel.org/ser.
|
|
|
|
+
|
|
|
|
+ 3.2. Where can I post a question about this module?
|
|
|
|
+
|
|
|
|
+ First at all check if your question was already answered on
|
|
|
|
+ one of our mailing lists:
|
|
|
|
+
|
|
|
|
+ * http://mail.iptel.org/mailman/listinfo/serusers
|
|
|
|
+ * http://mail.iptel.org/mailman/listinfo/serdev
|
|
|
|
+
|
|
|
|
+ E-mails regarding any stable version should be sent to
|
|
|
|
+ <[email protected]> and e-mail regarding development versions
|
|
|
|
+ or CVS snapshots should be send to <[email protected]>.
|
|
|
|
+
|
|
|
|
+ If you want to keep the mail private, send it to
|
|
|
|
+ <[email protected]>.
|
|
|
|
+
|
|
|
|
+ 3.3. How can I report a bug?
|
|
|
|
+
|
|
|
|
+ Please follow the guidelines provided at:
|
|
|
|
+ http://iptel.org/ser/bugs
|