Does anyone have any configuration sample on setting up SER + SEMS in
order to "put a call on hold and listen to MoH" while SER reaches the
destination peer(s)? Or at least point to some documentation
referencing this?
Thanks,
Waldo
Hello, I'm using fedora core 4 and radiusclient-0.4.3. installing SER 0.9.4
with support for radius I can't install radius modules and when run my SER I
view this mesasge error
0(441) ERROR: load_module: could not open module </usr/local/lib/ser/modules/auth_radius.so>: /usr/local/lib/ser/modules/auth_radius.so: cannot open shared object file: No such file or directory
0(441) parse error (41,13-14): failed to load module
0(441) set_mod_param_regex: No module matching auth_radius found
| 0(441) parse error (71,20-21): Can't set module parameter
0(441) set_mod_param_regex: No module matching auth_radius found
| 0(441) parse error (72,20-21): Can't set module parameter
0(441) parse error (326,34-35): unknown command, missing loadmodule?
Anybody can help me ?
Thanks
Guido
matthias,
i looked at partiSIPpation documentation and didn't quite understand why
microphone and speaker volumes are part of the api. i would think that
those are internal matters of the gui component. when gui places a
call, i would imagine it gives to core an ip address and port that it
wants to use for the media plus a list of codecs it supports. i don't
understand what volume issue have to do with communication between gui
and core.
-- juha
Hi,
to get multi-leg accounting to work,
is it necessary to avp_write "something" to the
src_leg_avp_id/dst_leg_avp_id avp's?
Right now I only get "n/a" in those columns.
I've tried to use avp_write without any success.
br, hw
--
Helge Waastad
Senior Engineer
Systemavdelingen
Smartnet
Ok, I tried using the FreeTDS driver for unixodbc and I got a more detailed
error message that might shine a light:
Failed to connect
The driver reported the following diagnostics whilst running
SQLDriverConnect
IM007:1:0:[unixODBC][FreeTDS][SQL Server]Could not find UID parameter
HYC00:2:0:[unixODBC][FreeTDS][SQL Server]Driver not capable
0(0) auth_db:str_fixup: Unable to open database connection
0(0) ERROR: fix_expr : fix_actions error
ERROR: error -1 while trying to fix configuration
These are my entries in /etc/odbc.ini
[SYBASE]
Driver = /usr/local/lib/libtdsodbc.so
Description = Sybase Server
Trace = Yes
Trafcefile = /tmp/odbc.log
#Servername = JDBC
Server = xx.xx.xx.xx
Port = 5000
DSN = database
Database = database
#UserID = username # I tried using both UID and UserID, had same
results
UID = username
Password = passwd
TDS_Version = 5
These are my entries in /etc/freetds.conf:
[SYBASE]
host = xx.xx.xx.xx
port = 5000
tds version = 5
For whatever reason the module is not picking up the UID and PWD from the
db_url parameter i.e. modparam("usrloc|auth_db", "db_url",
"unixodbc://username:passwd@xx.xx.xx.xx/SYBASE")
The way I fixed the problem was by changing the file my_con.c, line 69:
From:
sprintf( stringDNS, "%s%s%s", "DSN=", id->database, ";");
to:
sprintf( stringDNS, "%s%s%s", "DSN=", id->database,
";UID=username;PWD=passwd;");
And now works fine. Also, to add debug to figure out which SQL queries fail,
I changed the file dbase.c line 75:
From:
LOG(L_ERR, "Return value: %d\n", ret);
To:
LOG(L_ERR, "Return value: %d, Performing query: %s\n", ret,
_s);
Now everytime a query fails it'll say the result msg, as well as the actual
query that failed.
Lenir
_____
From: devel-bounces(a)openser.org [mailto:devel-bounces@openser.org] On Behalf
Of lenirsantiago(a)yahoo.com
Sent: Thursday, December 08, 2005 12:59 PM
To: devel(a)openser.org; users(a)openser.org
Subject: [Devel] unixODBC Database Connection Problem
Guys,
Im trying to use unixodbc.so to connect to a Sybase database using Sybase
native ODBC drivers. This is the entry that I have on:
/etc/odbc.ini:
=============
[SYBASE]
Description = Sybase ODBC Data Source
UserID = username
Password = passwd
Driver = ASE
Server = xx.xx.xx.xx
Port = 5000
Database = database
UseCursor = 1
/etc/odbcinst.ini
============
[ASE]
Description = Sybase ODBC Driver
Driver = /opt/sybase/ODBC-12_5/lib/libsybdrvodb.so
FileUsage = -1
UsageCount = 1
The database is on a remote host. I can connect from the openser server
using unixodbc's isql tool, as such:
[root@ser openser]# isql SYBASE username passwd
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>
This proves that unixodbc is installed correctly and that the Sybase odbc
driver is installed and functioning properly.
However when I try to run openser (debug=4) I get the following:
0(0) fixing /usr/local/lib/openser/modules/auth_db.so www_authorize
0(0) db_init: Connection 'unixodbc://username:passwd@xx.xx.xx.xx/SYBASE'
not found in pool
Failed to connect
The driver reported the following diagnostics whilst running
SQLDriverConnect
0(0) auth_db:str_fixup: Unable to open database connection
0(0) ERROR: fix_expr : fix_actions error
ERROR: error -1 while trying to fix configuration
0(0) XLOG: destroy module ...
0(0) DEBUG: tm_shutdown : start
0(0) DEBUG: unlink_timer_lists : emptying DELETE list
0(0) DEBUG: tm_shutdown : emptying hash table
0(0) DEBUG: tm_shutdown : releasing timers
0(0) DEBUG: tm_shutdown : removing semaphores
0(0) DEBUG: tm_shutdown : destroying tmcb lists
0(0) DEBUG: tm_shutdown : done
0(22871) shm_mem_destroy
0(22871) destroying the shared memory lock
[root@ser openser]#
This is a snippet of my openser.cfg
------------------------------START--------------------------------
debug=4
fork=no
log_stderror=yes
listen=yy.yy.yy.yy
port=5060
children=4
server_signature=no
dns=no
rev_dns=no
check_via=no
syn_branch=yes
memlog=1000
sip_warning=no
fifo_mode=0666
fifo="/tmp/openser_fifo"
fifo_db_url="unixodbc://username:passwd@xx.xx.xx.xx/SYBASE"
reply_to_via=no
loadmodule "/usr/local/lib/openser/modules/mysql.so"
loadmodule "/usr/local/lib/openser/modules/postgres.so"
loadmodule "/usr/local/lib/openser/modules/unixodbc.so"
loadmodule "/usr/local/lib/openser/modules/sl.so"
loadmodule "/usr/local/lib/openser/modules/tm.so"
loadmodule "/usr/local/lib/openser/modules/rr.so"
loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
loadmodule "/usr/local/lib/openser/modules/usrloc.so"
loadmodule "/usr/local/lib/openser/modules/registrar.so"
loadmodule "/usr/local/lib/openser/modules/acc.so"
loadmodule "/usr/local/lib/openser/modules/auth.so"
loadmodule "/usr/local/lib/openser/modules/auth_db.so"
loadmodule "/usr/local/lib/openser/modules/auth_radius.so"
loadmodule "/usr/local/lib/openser/modules/uri.so"
loadmodule "/usr/local/lib/openser/modules/uri_radius.so"
loadmodule "/usr/local/lib/openser/modules/mediaproxy.so"
loadmodule "/usr/local/lib/openser/modules/nathelper.so"
loadmodule "/usr/local/lib/openser/modules/textops.so"
loadmodule "/usr/local/lib/openser/modules/domain.so"
loadmodule "/usr/local/lib/openser/modules/avpops.so"
loadmodule "/usr/local/lib/openser/modules/avp_radius.so"
loadmodule "/usr/local/lib/openser/modules/permissions.so"
loadmodule "/usr/local/lib/openser/modules/xlog.so"
loadmodule "/usr/local/lib/openser/modules/options.so"
#loadmodule "/usr/local/lib/openser/modules/group.so"
loadmodule "/usr/local/lib/openser/modules/speeddial.so"
loadmodule "/usr/local/lib/openser/modules/group_radius.so"
modparam("usrloc", "db_mode", 0)
modparam("usrloc", "timer_interval", 60)
modparam("usrloc", "desc_time_order", 1)
modparam("permissions", "db_mode", 1)
modparam("permissions", "trusted_table", "trusted")
modparam("permissions", "default_allow_file", "/etc/ser/permissions.allow")
modparam("permissions", "default_deny_file", "/etc/ser/permissions.deny")
modparam("usrloc|auth_db", "db_url",
"unixodbc://username:passwd@xx.xx.xx.xx/SYBASE")
---------------------------------END----------------------------------------
-
Any suggestions?
Lenir
Hi folks,
I need an advice regarding failure routes.
I want the (Open)SER to route all incoming calls to a PSTN gateway. If
that route fails (e.g. because the gateway is down) it shall route the
calls to another gateway.
I managed to archieve that in the failure case the second gateway
receives the call. But the ACK request that the caller sends when
receiving the 200 OK is delivered to the primary target again, not to
the fallback gateway.
My configuration (excerpt):
route {
...
record_route();
if (loose_route()) {
t_relay();
exit;
};
t_on_failure("1");
t_relay_udp("192.168.0.37","5060");
}
failure_route[1] {
append_branch();
t_relay_to_udp("192.168.0.39", "5060");
}
Thanks in advance.
Regards,
Stefan
Hiya,
I'm trying to use RADIUS server to authorize (authenticate) SIP users. I'm
using auth_radius module.
My radius server is the same machine, FreeRadius wich is configured to use
LDAP as DB.
Whe I try to authenticate a SIP user I've got a problem, SIP SER sends a
radius request with digest method, but my Radius needs a User-Password
suplied in order to bind in LDAP.
How can intruct SIP SER in order to pass auth password as User-Password
althout Digest???
Thanks in advance.
--
-------------------------------------
Aquel que planta árboles bajo los
que sabe muy bien que nunca se
sentara, ha descubierto el auténtico
significado de la vida.
Hi,
based on Juha's patch - saving in usrloc the supported methods
advertised during REGISTER - I extended lookup() function to perform
method based filtering. What this means: lookup() may return only
contacts which supports the method of the processed request.
Ex: there are two clients registering as same user:
1) a SIP phone which support INVITE & family, but no presence and
messaging.
2) a soft messaging client : supports only MESSAGE
When a call hits the server, the lookup() will send it only to contact
(1), to the phone, since the contact (2) does not support INVITE. When a
MESSAGE hits the server, the lookup() will send it only to contact (2),
to the soft client, since the contact (1) does not support MESSAGE.
the advantage is that you avoid un-necessary parallel forking and extra
signalling. Also there are SIP implementation which does not even reply
to methods they are not supporting, forcing the proxy to generate
timeout..:(
The feature may be turned on or off via the module parameter
"method_filtering":
http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN247
For more, see also the script snapshot from :
http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN288
regards,
bogdan
That worked. Thanks.
I am not sure why this (fifo_mode=0777) wasn't inserted in either the
ser.cfg or ser.cfg.sample files.
Chee
-----Original Message-----
From: Steve Blair [mailto:blairs@isc.upenn.edu]
Sent: 08 December 2005 18:39
To: Yong, Chee Yeew
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] What does SER/FIFO error usually mean?
Permissions problem I'm guessing. Do you have the following in your
config file?
fifo="/tmp/ser_fifo" # named pipe needed by serctl
fifo_mode = 0777
Yong, Chee Yeew wrote:
> Hello all,
>
> I am trying to add a user to my MySql database with the command:
>
> serctl add joeuser passwd joeuser(a)here.com <mailto:joeuser@here.com>
>
> but I am getting an error:
> error: SER/FIFO not accessible: 2
>
> Any pointers to where to start debuging this error?
>
> Thanks.
>
> chee
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>
--
ISC Network Engineering
The University of Pennsylvania
3401 Walnut Street, Suite 221A
Philadelphia, PA 19104
voice: 215-573-8396
215-746-8001
fax: 215-898-9348
sip:blairs@net.isc.upenn.edu
It doesn't work. It seems 'mhomed = 1' binds ser to localhost. So when I
try to forward the request to my SIP server after I did the local
forward to save the user alias, it says 'can't access to the net'.
Anthony
Michal Matyska a écrit :
>Try to add following line into your config file:
>mhomed=1
>
>Michal
>
>On Fri, Dec 09, 2005 at 01:46:26PM +0100, Anthony Chapellier wrote:
>
>
>>I'm using SER 0.9.4.
>>
>>Michal Matyska a écrit :
>>
>>
>>
>>>Which version did you use?
>>>I'm getting the same error... looking into the code, but nothing found yet.
>>>
>>>Michal
>>>
>>>On Fri, Dec 09, 2005 at 12:19:20PM +0100, Anthony Chapellier wrote:
>>>
>>>
>>>
>>>
>>>>I've got a problem with forwarding in loopback. I tried to forward the
>>>>request with the following code (tested both) :
>>>>
>>>>t_relay_to_udp("127.0.0.1", "5060");
>>>>
>>>>or
>>>>
>>>>forward(127.0.0.1, 5060);
>>>>
>>>>In both of them, I got an error 477 : Can't process to the next hop -
>>>>127.0.0.1:5060 Noisy Feefback... Do you know where it could come from ?
>>>>
>>>>Thanks,
>>>>
>>>>Anthony
>>>>
>>>>Jan Janak a écrit :
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Forward the request to the same proxy again over loopback. In the 2nd
>>>>>run you can detect that the request is coming from 127.0.0.1 and save it
>>>>>in aliases table instead of location.
>>>>>
>>>>>jan.
>>>>>
>>>>>On 08-12-2005 11:15, Anthony Chapellier wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>When a register request is incoming, I save user location and rewrite
>>>>>>contact header after that. I'd like to save this new rewriten user
>>>>>>location as an alias, is there a way to set up an alias in the fly ?
>>>>>>
>>>>>>I saw you need to use serctl command to add aliases but can you do it
>>>>>>in SER in real time ?
>>>>>>
>>>>>>Thanks,
>>>>>>
>>>>>>_______________________________________________
>>>>>>Serusers mailing list
>>>>>>serusers(a)lists.iptel.org
>>>>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>_______________________________________________
>>>>Serusers mailing list
>>>>serusers(a)lists.iptel.org
>>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>>
>>>>
>>>>
>>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers(a)lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
>
>