Hi, for the spanish speakers community there is a maillist about Sip-Router:
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users-es
This maillist has been merged with the previous Kamailio Users-es
maillist, so the maillist history remains.
Best regards.
--
Iñaki Baz Castillo
<ibc(a)aliax.net>
Module: sip-router
Branch: master
Commit: 024a23ebba44e94f2e6fe588bb06ef5a84740304
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=024a23e…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Apr 20 14:22:54 2009 +0000
tls: don't start if tcp is in async mode
- added check for tcp async mode on startup. If tcp is in async
mode and tls_force_run is not set, refuse to start and print an
error message (tls does not support yet tcp async mode).
---
modules/tls/tls_mod.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/tls/tls_mod.c b/modules/tls/tls_mod.c
index 436785f..7f79ce8 100644
--- a/modules/tls/tls_mod.c
+++ b/modules/tls/tls_mod.c
@@ -308,6 +308,12 @@ static int mod_init(void)
"(set enable_tls=1 in the config to enable it)\n");
return 0;
}
+
+ if (cfg_get(tcp, tcp_cfg, async) && !tls_force_run){
+ ERR("tls does not support tcp in async mode, please use"
+ " tcp_async=no in the config file\n");
+ return -1;
+ }
/* Convert tls_method parameter to integer */
method = tls_parse_method(&tls_method);
if (method < 0) {
Module: sip-router
Branch: master
Commit: 8843ff67a4714b735fd8d00a770671a5e7f950c3
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8843ff6…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Apr 3 13:37:27 2009 +0000
tls: ser_cert.sh portability fixes
- check if hostname supports -f, before trying it (else fallback to
hostname without parameters).
- check if getops supports long options (bsd and darwin versions do not).
If not use only short options.
---
modules/tls/ser_cert.sh | 51 +++++++++++++++++++++++++++++++++++++---------
1 files changed, 41 insertions(+), 10 deletions(-)
diff --git a/modules/tls/ser_cert.sh b/modules/tls/ser_cert.sh
index 046f1c6..4bfb8fc 100755
--- a/modules/tls/ser_cert.sh
+++ b/modules/tls/ser_cert.sh
@@ -19,8 +19,33 @@ DEFAULT_KEY_FILENAME="ser-selfsigned.key"
DEFAULT_OPENSSL='openssl'
HOSTNAME=`hostname -s`
-FQDN=`hostname -f`
-MAILNAME=`cat /etc/mailname 2> /dev/null || hostname -f`
+if hostname -f >/dev/null 2>/dev/null ; then
+ FQDN=`hostname -f`
+else
+ FQDN=`hostname`
+fi
+MAILNAME=`cat /etc/mailname 2> /dev/null || echo $FQDN`
+
+# test if we have the normal or enhanced getopt
+getopt -T >/dev/null
+if [ $? == 4 ]; then
+ LONGOPTS_SUPPORTED=1
+fi
+
+longopts() {
+ if [ -z "${LONGOPTS_SUPPORTED}"]; then
+ exit;
+ fi
+ case "$1" in
+ -h) echo ', --help';;
+ -d) echo ', --dir' ;;
+ -c) echo ', --certificate';;
+ -k) echo ', --key';;
+ -e) echo ', --expires';;
+ -i) echo ', --info';;
+ -o) echo ', --overwrite' ;;
+ esac
+}
usage() {
cat <<EOF
@@ -41,30 +66,30 @@ DESCRIPTION
the options below).
OPTIONS
- -h, --help
+ -h`longopts -h`
Display this help text.
- -d, --dir=DIRECTORY
+ -d`longopts -d`
The path to the directory where cert and key files will be stored.
(Default value is '$DEFAULT_DIR')
- -c, --certificate=FILENAME
+ -c`longopts -c`
The name of the file where the certificate will be stored.
(Default value is '$DEFAULT_CERT_FILENAME')
- -k, --key=FILENAME
+ -k`longopts -k`
The name of the file where the private key will be stored.
(Default value is '$DEFAULT_KEY_FILENAME')
- -e, --expires=DAYS
+ -e`longopts -e`
Number of days for which the certificate will be valid.
(Default value is '$DEFAULT_DAYS')
- -i, --info=TEXT
+ -i`longopts -i`
The description text to be embedded in the certificate.
(Default value is '$DEFAULT_INFO')
- -o, --overwrite
+ -o`longopts -o`
Overwrite certificate and key files if they exist already.
(By default they will be not overwritten.)
@@ -88,7 +113,13 @@ if [ -z "$CERT_FILENAME" ] ; then CERT_FILENAME=$DEFAULT_CERT_FILENAME; fi;
if [ -z "$KEY_FILENAME" ] ; then KEY_FILENAME=$DEFAULT_KEY_FILENAME; fi;
if [ -z "$OPENSSL" ] ; then OPENSSL=$DEFAULT_OPENSSL; fi;
-TEMP=`getopt -o hd:c:k:e:i:o --long help,dir:,certificate:,key:,expires:,info:,overwrite -n $COMMAND -- "$@"`
+if [ -n "${LONGOPTS_SUPPORTED}" ]; then
+ # enhanced version
+ TEMP=`getopt -o hd:c:k:e:i:o --long help,dir:,certificate:,key:,expires:,info:,overwrite -n $COMMAND -- "$@"`
+else
+ # basic version
+ TEMP=`getopt hd:c:k:e:i:o "$@"`
+fi
if [ $? != 0 ] ; then exit 1; fi
eval set -- "$TEMP"