Module: sip-router Branch: master Commit: a32f948029dcd9f5875d6244b5d4c2efd23a1b88 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a32f9480...
Author: Elena-Ramona Modroiu ramona@asipto.com Committer: Elena-Ramona Modroiu ramona@asipto.com Date: Thu Jun 30 15:50:14 2011 +0200
pdt(k): removed add/delete mi commands
- pdt_add and pdt_delete were just insert/delete sql queries followed by internal call of pdt_reload, creating unecessary code maintenace, thus they were removed. SQL queries can be executed directly from terminal and then pdt_reload to get same functionality
---
modules_k/pdt/README | 60 ++++++--------------------------------- modules_k/pdt/doc/pdt_admin.xml | 56 +----------------------------------- 2 files changed, 10 insertions(+), 106 deletions(-)
diff --git a/modules_k/pdt/README b/modules_k/pdt/README index e306acc..4523390 100644 --- a/modules_k/pdt/README +++ b/modules_k/pdt/README @@ -48,10 +48,8 @@ Elena-Ramona Modroiu
5. Exported MI Functions
- 5.1. pdt_add - 5.2. pdt_delete - 5.3. pdt_list - 5.4. pdt_reload + 5.1. pdt_list + 5.2. pdt_reload
6. Installation and Running
@@ -99,10 +97,8 @@ Chapter 1. Admin Guide
5. Exported MI Functions
- 5.1. pdt_add - 5.2. pdt_delete - 5.3. pdt_list - 5.4. pdt_reload + 5.1. pdt_list + 5.2. pdt_reload
6. Installation and Running
@@ -148,8 +144,7 @@ sip:12391001@mydomain.com => sip:91001@alpha.org adding/deleting prefix-domain pairs or reloading from database at runtime. * Sample shell scripts to manage prefix-domain pairs are also located - in './doc/' (pdt_fifo_add.sh, pdt_fifo_delete.sh, - pdt_fifo_list.sh). + in './doc/' (pdt_fifo_list.sh).
2. Dependencies
@@ -351,10 +346,8 @@ prefix2domain();
5. Exported MI Functions
- 5.1. pdt_add - 5.2. pdt_delete - 5.3. pdt_list - 5.4. pdt_reload + 5.1. pdt_list + 5.2. pdt_reload
The database is loaded by Kamailio at start up time. The module uses only the cache to look up domains. If you want to add or delete a new @@ -362,42 +355,7 @@ prefix2domain(); changes made via these commands are applied to database and the cache is updated correspondingly.
-5.1. pdt_add - - Adds a new sdomain-prefix-domain entry. - - Name: pdt_add - - Parameters: - * _sdomain_ : source domain - * _prefix_: prefix - * _domain_: domain corresponding to a pair of source domain and - prefix - - MI FIFO Command Format: - :pdt_add:_reply_fifo_file_ - _sdomain_ - _prefix_ - _domain_ - _empty_line_ - -5.2. pdt_delete - - Removes a sdomain-prefix-domain entry. - - Name: pdt_delete - - Parameters: - * _sdomain_ : a source domain - * _domain_: a domain associated via a prefix with the source domain - - MI FIFO Command Format: - :pdt_delete:_reply_fifo_file_ - _sdomain_ - _domain_ - _empty_line_ - -5.3. pdt_list +5.1. pdt_list
Produces a listing of the entries prefixes/domains/sdomains.
@@ -428,7 +386,7 @@ prefix2domain(); * “pdt_list . 2 open” : Lists the entries where sdomain is anything, prefix starts with '2' and domain starts with 'open'.
-5.4. pdt_reload +5.2. pdt_reload
Reload all sdomain-prefix-domain records from database.
diff --git a/modules_k/pdt/doc/pdt_admin.xml b/modules_k/pdt/doc/pdt_admin.xml index cf4270d..230b82e 100644 --- a/modules_k/pdt/doc/pdt_admin.xml +++ b/modules_k/pdt/doc/pdt_admin.xml @@ -80,7 +80,7 @@ sip:12391001@mydomain.com => sip:91001@alpha.org <listitem> <para> Sample shell scripts to manage prefix-domain pairs are also located - in './doc/' (pdt_fifo_add.sh, pdt_fifo_delete.sh, pdt_fifo_list.sh). + in './doc/' (pdt_fifo_list.sh). </para> </listitem> </itemizedlist> @@ -425,60 +425,6 @@ prefix2domain();
<section> <title> - <function moreinfo="none">pdt_add</function> - </title> - <para> - Adds a new sdomain-prefix-domain entry. - </para> - <para> - Name: <emphasis>pdt_add</emphasis> - </para> - <para>Parameters:</para> - <itemizedlist> - <listitem><para>_sdomain_ : source domain</para></listitem> - <listitem><para>_prefix_: prefix</para></listitem> - <listitem><para>_domain_: domain corresponding to a pair of source domain and prefix</para></listitem> - </itemizedlist> - <para> - MI FIFO Command Format: - </para> - <programlisting format="linespecific"> - :pdt_add:_reply_fifo_file_ - _sdomain_ - _prefix_ - _domain_ - _empty_line_ - </programlisting> - </section> - - <section> - <title> - <function moreinfo="none">pdt_delete</function> - </title> - <para> - Removes a sdomain-prefix-domain entry. - </para> - <para> - Name: <emphasis>pdt_delete</emphasis> - </para> - <para>Parameters:</para> - <itemizedlist> - <listitem><para>_sdomain_ : a source domain</para></listitem> - <listitem><para>_domain_: a domain associated via a prefix with the source domain</para></listitem> - </itemizedlist> - <para> - MI FIFO Command Format: - </para> - <programlisting format="linespecific"> - :pdt_delete:_reply_fifo_file_ - _sdomain_ - _domain_ - _empty_line_ - </programlisting> - </section> - - <section> - <title> <function moreinfo="none">pdt_list</function> </title> <para>