Module: sip-router
Branch: master
Commit: 9a5bc6b1554227920075f361bc3d7780a0eef935
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9a5bc6b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Jan 31 00:20:46 2011 +0100
dispatcher(k): force_dst set default to 1
- readme updated
---
modules_k/dispatcher/README | 7 ++++---
modules_k/dispatcher/dispatcher.c | 2 +-
modules_k/dispatcher/doc/dispatcher_admin.xml | 7 ++++---
3 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/modules_k/dispatcher/README b/modules_k/dispatcher/README
index 1c747c9..d027958 100644
--- a/modules_k/dispatcher/README
+++ b/modules_k/dispatcher/README
@@ -336,10 +336,11 @@ modparam("dispatcher", "priority_col", "dstpriority")
3.8. force_dst (int)
- If set to 1, force overwriting of destination address when that is
- already set.
+ If set to 1, force overwriting of destination address (outbound proxy)
+ when that is already set. If set to 0, will return error when the
+ destination address is already set.
- Default value is “0”.
+ Default value is “1”.
Example 1.8. Set the “force_dst” parameter
...
diff --git a/modules_k/dispatcher/dispatcher.c b/modules_k/dispatcher/dispatcher.c
index ab412a6..6f61edf 100644
--- a/modules_k/dispatcher/dispatcher.c
+++ b/modules_k/dispatcher/dispatcher.c
@@ -79,7 +79,7 @@ MODULE_VERSION
/** parameters */
char *dslistfile = CFG_DIR"dispatcher.list";
-int ds_force_dst = 0;
+int ds_force_dst = 1;
int ds_flags = 0;
int ds_use_default = 0;
static str dst_avp_param = {NULL, 0};
diff --git a/modules_k/dispatcher/doc/dispatcher_admin.xml b/modules_k/dispatcher/doc/dispatcher_admin.xml
index ae857fd..4be1f55 100644
--- a/modules_k/dispatcher/doc/dispatcher_admin.xml
+++ b/modules_k/dispatcher/doc/dispatcher_admin.xml
@@ -223,12 +223,13 @@ modparam("dispatcher", "priority_col", "dstpriority")
<section>
<title><varname>force_dst</varname> (int)</title>
<para>
- If set to 1, force overwriting of destination address when that is
- already set.
+ If set to 1, force overwriting of destination address (outbound proxy)
+ when that is already set. If set to 0, will return error when the
+ destination address is already set.
</para>
<para>
<emphasis>
- Default value is <quote>0</quote>.
+ Default value is <quote>1</quote>.
</emphasis>
</para>
<example>