Module: sip-router
Branch: master
Commit: ea772b354f84eccff0190234025f057879ff33ed
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ea772b3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Jun 15 22:03:58 2013 +0200
kamctl: new commands can be defined in separate files
- write new kamctl commands either in CFGDIR/kamctl.newcmd.ext or
~/.kamctl/kamctl.newcmd.ext
- 'newcmd' has …
[View More]to be replaced with the name of the command
- the file must include cmd_newcmd() function which is executed with the
parameters after the command name
- example: adding new command 'sample'
- content of ~/.kamctl/kamctl.sample.ext file:
usage_sample() {
echo
mecho " -- command 'sample' - kamctl sample extension command"
echo
cat <<EOF
test ............................... print test message
help ............................... help text
EOF
}
cmd_sample() {
case $1 in
test)
echo "message from sample test command"
;;
*)
usage_sample
;;
esac
exit 1;
}
- new command 'sample' can be executed with:
kamctl sample test
---
utils/kamctl/kamctl | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index 4583926..0dee374 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -2524,6 +2524,25 @@ tls_ca() {
fi
}
+extcmd() {
+ if [ -f $ETCDIR/kamctl.${1}.ext ]; then
+ . $ETCDIR/kamctl.${1}.ext
+ else
+ if [ -f ~/.kamctl/kamctl.${1}.ext ]; then
+ . ~/.kamctl/kamctl.${1}.ext
+ else
+ return
+ fi
+ fi
+
+ XCMD=cmd_${1}
+
+ shift
+ $XCMD "$@"
+
+ exit 1
+}
+
#
##### ================================================ #####
### main command switch
@@ -2705,6 +2724,8 @@ case $1 in
;;
*)
+ extcmd "$@"
+
usage
exit 1
;;
[View Less]
Module: sip-router
Branch: master
Commit: 5f1b144a7e63b464af3e5e0e7b74cf7e7e1e8668
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5f1b144…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Jun 15 19:30:59 2013 +0200
tm: documented dn_reuse_rcv_socket parameter
---
modules/tm/doc/params.xml | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)…
[View More]
diff --git a/modules/tm/doc/params.xml b/modules/tm/doc/params.xml
index 767a5fc..4d3bf26 100644
--- a/modules/tm/doc/params.xml
+++ b/modules/tm/doc/params.xml
@@ -1378,4 +1378,34 @@ modparam("tm", "failure_exec_mode", 1)
</example>
</section>
+
+ <section id="tm.p.dns_reuse_rcv_socket">
+ <title><varname>dns_reuse_rcv_socket</varname> (boolean)</title>
+ <para>
+ Control reuse of the receive socket for additional branches added
+ by dns failover. If set to 1, the receive socket is used for
+ sending out the new branches, unless the socket is forced
+ explicitely in configuration file. If set to 0, selected socket
+ is done depending on value of global parameter mhomed (if mhomed=0,
+ then the first listen socket is used, otherwise the socket is
+ selected based on routing rules).
+ </para>
+ <para>
+ Do enable it with caution, it might create troubles on dns results
+ with different transport layer. Better let it disabled and enable
+ mhomed.
+ </para>
+ <para>
+ Default value is 0 (disabled).
+ </para>
+ <example>
+ <title>Set <varname>dns_reuse_rcv_socket</varname> parameter</title>
+ <programlisting>
+...
+modparam("tm", "dns_reuse_rcv_socket", 1)
+...
+ </programlisting>
+ </example>
+ </section>
+
</section>
[View Less]
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#307 - modules/debugger: add dbg_pv_dump config function. It dumps on json format the content of pv_cache
User who did this - Víctor Seva (linuxmaniac)
----------
Refreshed patch:
- added more checks.
- fixed xavp dump output.
- changed some messages from ERR to WARN
----------
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/…
[View More]index.php?do=details&task_id=307#comment957
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
[View Less]
Hi,
I am thinking about whether it makes sense to send a CANCEL Request to a
branch, that did not reply within the fr_timer when using DNS-Failover.
It is possible, that the first gateway (because of various reasons)
takes too long to reply, but nevertheless processes the call.
This can lead to the result, that the callee receives 2 calls (from both
gateways), which is in fact one call from the caller.
It should be possible to prevent that in most cases, if DNS failover
sends a CANCEL to …
[View More]a timed out branch and then forgets about it (stateless).
Are there any comments or feedback/experiences on that idea?
Cheers
Jasmin
[View Less]