Revision: 5972
http://openser.svn.sourceforge.net/openser/?rev=5972&view=rev
Author: mariuszbihlei
Date: 2010-02-02 10:03:07 +0000 (Tue, 02 Feb 2010)
Log Message:
-----------
Fixes based on Andrei Pelinescu-Onciul's patch for sip-router
Added ifdefs for USE_IPV6,
error handling in case of EISCONN
Modified Paths:
--------------
branches/1.5/forward.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
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/