Hello,
It appears that Debian Squeeze does not use Bash as interpreter for system
scripts and for scripts executed via /bash/sh anymore. It uses dash by default
which claims to be POSIX compliant, but does not support "bashisms" typically
found in more complex scripts.
As result it can happen that some of our shell scripts won't work on recent
installations of Debian and Ubunty. There are two easy remedies:
* Switch back to bash with sudo dpkg-reconfigure dash for the entire system.
* Replace /bin/sh with /bin/bash if you find a broken script
See also: https://wiki.ubuntu.com/DashAsBinSh
-Jan
Module: sip-router
Branch: master
Commit: 2022176637c54f4727e1e57942978b876072a614
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2022176…
Author: Jan Janak <jan(a)ryngle.com>
Committer: Jan Janak <jan(a)ryngle.com>
Date: Mon Feb 1 19:24:47 2010 -0500
ser_mysql.sh: Switch to /bin/bash
The ser_mysql.sh script is probably not POSIX clean and currently does
not work with dash (the new default interpreter for /bin/sh in debian).
Switch back to /bin/bash, this makes the script work again across
distributions.
---
scripts/mysql/sip-router_mysql.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/mysql/sip-router_mysql.sh b/scripts/mysql/sip-router_mysql.sh
index 63b656a..3b40132 100755
--- a/scripts/mysql/sip-router_mysql.sh
+++ b/scripts/mysql/sip-router_mysql.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# $Id$
#
Module: sip-router
Branch: master
Commit: 641e5b958b3a81242745203f9bef2654f8787e37
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=641e5b9…
Author: Jan Janak <jan(a)ryngle.com>
Committer: Jan Janak <jan(a)ryngle.com>
Date: Mon Feb 1 19:04:19 2010 -0500
packaging: Make postinst scripts dash compatible
Debian Squeeze uses dash as the shell for systems scripts by default
and dash does not support the keyword "function" like bash does.
---
pkg/debian/postinst | 2 +-
pkg/debian/ser-oob.postinst | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/debian/postinst b/pkg/debian/postinst
index 71ecbe1..de0f5d1 100644
--- a/pkg/debian/postinst
+++ b/pkg/debian/postinst
@@ -36,7 +36,7 @@ fi
# ----------------------------------------------------------------------
-function fn_config_replace
+fn_config_replace ()
{
if test $# -ne 2; then
echo "Error - bad number of input parameters"
diff --git a/pkg/debian/ser-oob.postinst b/pkg/debian/ser-oob.postinst
index 71c7e09..d86a107 100644
--- a/pkg/debian/ser-oob.postinst
+++ b/pkg/debian/ser-oob.postinst
@@ -35,7 +35,7 @@ if ! test -e $DEFAULTFILE; then
fi
-function fn_config_replace
+fn_config_replace ()
{
if test $# -ne 2; then
echo "Error - bad number of input parameters"
Hello,
if you follow the sr-dev mailing list, you may have noticed some new
features added in master branch (for the 3.1.0). I will send more
details about each, now: remote user registration.
The uac module can register in behalf of users to remote servers. The
user details (credentials, local and remote username/domain) are loaded
from database. The module sends registration at start-up and then
refreshes just before expiration time. If the REGISTER is challenged for
authentication, uac will re-send the REGISTER with proper credentials.
A typical scenario is when users have accounts to many voip providers
and they want to receive calls to those accounts via your sip server
(inbound traffic). Of course, the user has to give details such as
username/password to you.
Other use case can be dynamic interconnection/peering. you can imagine a
scalable solution where you have a traffic dispatcher and worker
servers. When an worker becomes active, it registers to traffic
dispatcher for receiving traffic... and examples can continue.
Hope will help you in various cases! Readme at:
http://sip-router.org/docbook/sip-router/branch/master/modules_k/uac/uac.ht…
SQL to create the mysql table is in utils/kamctl/mysql/uac-create.sql
Cheers,
Daniel
--
Daniel-Constantin Mierla
* http://www.asipto.com/
Hello,
in about two and a half week the annual open source developer conference
FOSDEM (http://fosdem.org/2010/) takes place in Brussels. As in the last year
we would like to meet here for a social event, probably a dinner on Saturday
evening, 6th February.
This developers already confirmed their participance:
- Daniel-Constantin Mierla - he is also giving a talk about Kamailio 3.0.0 on
Saturday: http://fosdem.org/2010/schedule/events/kamailio_sip_server
- Elena-Ramona Modroiu
- Marius Zbihlei - 1&1 kamailio and sip-router development Bucharest
- Timo Reimann - 1&1 kamailio and sip-router development Karlsruhe
- Henning Westerholt
Participation at the event is free of charge, everybody pays for its own
expenses. In order to organize a restaurant and do a reservation please send
me a short mail if you would like to attend. Suggestions for a nice place with
good food and beer are also welcome.
Looking forward to see you in Brussels.
Best regards,
Henning
P.S.: Photos of the last year event can be found on our web site:
http://www.kamailio.org/events/2009-FOSDEM/FOSDEM2009-Album/
--
Henning Westerholt - Development Consumer Products / Consumer Core
1&1 Internet AG, Ernst-Frey-Str. 9, 76135 Karlsruhe, Germany
Hi,
we've updated the automatic packaging building process on the devel machine.
This builds now every night from the git master packages for debian lenny,
squeeze and sid. Hints about your archive configuration in order to use the
packages can be found on http://devel.kamailio.org/
They are build from the control files in pkg/debian, so at the moment some
packages with special dependencies are missing, and they are named with
'ser-$name'. The only thing that is modified at the moment is the version
number.
This packages are of course only for tests and not for production use. Please
let me know if there are any problems with the building service.
Henning