Hello,
I try to compile UAC module for SER. And I have error.
Please, give me advice.
ser-0.8.14
extract uac-0.9.0-0.tgz to ser-0.8.14/modules/uac
gmake
RESULT:
# gmake
../../Makefile.modules:21: "you should run make from the main ser directory"
../../Makefile.modules:21: "you should run make from the main ser directory"
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
-minline-all-stringops -malign-double -falign-loops -mcpu=athlon
-DNAME='"uac.so"' -DVERSION='"0.8.14"' -DARCH='"i386"' -DOS='"freebsd"'
-DCOMPILER='"gcc 3.4"' -D__CPU_i386 -D__OS_freebsd
-DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DDNS_IP_HACK -DUSE_IPV6 -DUSE_TCP -DDISABLE_NAGLE -DF_MALLOC
-DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL -c auth.c -o auth.o
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
auth.c: In function `uac_auth':
auth.c:336: error: structure has no member named `t_gett'
gmake: *** [auth.o] Ошибка 1
I can't find function with that name in all SER tree.
# grep -R t_gett *
modules/sms/sms_funcs.c: set_gettime_function();
modules/sms/sms_report.c:void set_gettime_function()
modules/sms/sms_report.c: LOG(L_INFO,"INFO:sms:set_gettime_function:
using system time func.\n");
modules/sms/sms_report.c: LOG(L_INFO,"INFO:sms:set_gettime_function:
using ser time func.\n");
modules/sms/sms_report.h:void set_gettime_function();
Binary file modules/sms/sms_funcs.o matches
Binary file modules/sms/sms_report.o matches
Binary file modules/sms/sms.so matches
modules/uac/auth.c: t = uac_tmb.t_gett();
# uname -a
FreeBSD megalink.com.ru 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Sun Nov 7
19:44:39 MSK 2004
dwl@megalink.com.ru:/usr/src/sys/i386/compile/megalink.com.ru-5.3 i386
How can I compile this module?
I'm on Debian Sarge, i want to build SER modules, radius and mysql and jabber in one time. With Mandrake and Red Hat there was no problem but now experiencing difficulties with Debian and can't find information regarding to this...
rapid:/ser-0.9.0# make modules=modules/mysql modules >> it's done without problems :)
rapid:/ser-0.9.0# make modules=modules/auth_radius modules
make[1]: Entering directory `/ser-0.9.0/modules/auth_radius'
make[1]: Leaving directory `/ser-0.9.0/modules/auth_radius'
make[1]: Entering directory `/ser-0.9.0/modules/auth_radius'
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -malign-double -falign-loops -mcpu=athlon -DNAME='"ser"' -DVERSION='"0.9.0"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.3"' -D__CPU_i386 -D__OS_linux -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DDBG_QM_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -I/ser-0.9.0/include -c authorize.c -o authorize.o
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -malign-double -falign-loops -mcpu=athlon -DNAME='"ser"' -DVERSION='"0.9.0"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.3"' -D__CPU_i386 -D__OS_linux -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DDBG_QM_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -I/ser-0.9.0/include -c authrad_mod.c -o authrad_mod.o
authrad_mod.c: In function `mod_init':
authrad_mod.c:110: error: `DICT_VENDOR' undeclared (first use in this function)
authrad_mod.c:110: error: (Each undeclared identifier is reported only once
authrad_mod.c:110: error: for each function it appears in.)
authrad_mod.c:110: error: `vend' undeclared (first use in this function)
authrad_mod.c:134: warning: assignment makes pointer from integer without a cast
authrad_mod.c:139: error: too many arguments to function `rc_conf_str'
authrad_mod.c:139: error: too many arguments to function `rc_read_dictionary'
authrad_mod.c:144: warning: implicit declaration of function `rc_dict_findvend'
authrad_mod.c:159: error: too many arguments to function `rc_dict_findattr'
authrad_mod.c:159: error: too many arguments to function `rc_dict_findval'
make[1]: *** [authrad_mod.o] Error 1
make[1]: Leaving directory `/ser-0.9.0/modules/auth_radius'
rapid:/ser-0.9.0#
Hello,
I posted to you and serusers mailing list many mails
about serweb in the past .
You have been adding new features to serweb however I
would have liked to find more documentation and
roadmap for serweb project (and other projects) .
Could you tell us more about XXL ?
I downloaded the latest release today (unstable)
by hoping it would run well with ser (unstable) .
I still wish to test accounting, missed call, message
stored, ... but after setting up serweb I get these
messages after a user is logged.
However I can't fix these errors messages:
from my_account.php:
Attribute named 'fw_voicemail' does not exists
Attribute named 'sw_user_status_visible' does not
exists
from missed_calls.php:
DB Error: syntax error
Regards
Harry
__________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
Hi all,
I'm trying to configure SER 0.8.14 to use authentication with NavisRadius
4.5.0.
On my X-Lite (X-Lite v2.0 Build 1103m) client I'm getting "Login Failed!
Contact Network Admin."
I'm getting following message from NavisRadius. Why? => Reply-Message = "No
check.password"
I would be very grateful if someone could look at my ser.cfg and output from
NavisRadius.
Best regards
****************************************************************************
*
This is what I get on RADIUS server (different from SER machine)
Client:
Client-Class = "#default"
Nas_Port_Normalization = off
Radius_Remove_Trailing_Nul = TRUE
Radius_Append_Trailing_Nul = FALSE
Auto_Remove_Check_Items = TRUE
Check_Authenticators = TRUE
Session_Time_From_Time_Of_Day = FALSE
Radius_Charset = "UTF8"
Client-Class = "video"
Client-Dictionary = "draft_ietf_radext_digest_auth_01"
**** dictionary of radiusclient on SER machine is adjusted to dictionary of
RADIUS, and RADIUS can recognize attributes - except if I MUST run
sterman_aaa_sip_00 on NavisRadius???? I attached dictionary in radiusclient
to this message ****
Client-Secret = <hidden>
Request:
User-Name = "djovanov.srce"
Digest-Username = "djovanov.srce"
Digest-Realm = "srce.hr"
Digest-Nonce = "427b5aa983df858da94c50d1f8132a69e3e703ad"
Digest-URI = "sip:srce.hr"
Digest-Method = "REGISTER"
Digest-Response = "ca6202fe55c51501295a9bc6ab325420"
Service-Type = IAPP-Register
Anonymous = v0-a208-646A6F76616E6F7669632E73726365
**** RADIUS doesn't recognize code 208, which is Sip-Uri-User ****
****Am I missing Digest-Algorithm? Why SER doesn't send this attribute?****
NAS-IP-Address = 161.53.0.131
NAS-Port = 5060
Packet:
Client-Name = "161.53.0.131"
Packet-Type = Access-Request
Packet-Identifier = 213
Packet-Length = 197
Packet-Authenticator = 2B25D6D4934B930EB21F8E1B6AEFFE50
Source-Address = 161.53.0.131
Source-Port = 33159
Destination-Address = 0.0.0.0
Destination-Port = 1812
Receipt-Time = "2005/05/06 13:44:32"
Full-User-Name = "djovanov.srce"
Base-User-Name = "djovanov.srce"
Normalized-Nas-Port = 5060
19 <engine.worker.0> -> checkDigest[AuthHttpDigest]
19 <plugin.AuthHttpDigest.checkDigest> FAILURE -- No check.password
20 <engine.worker.0> Variable group trace
Reply:
Reply-Message = "No check.password"
**** this is message is which I get from NavisRadius ****
****************************************************************************
************
This is my ser.cfg
fifo_db_url="mysql://ser:heslo@localhost/ser"
# ------------------ module loading ----------------------------------
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/group.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/uri_radius.so"
loadmodule "/usr/local/lib/ser/modules/group_radius.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
loadmodule "/usr/local/lib/ser/modules/msilo.so"
modparam("usrloc", "db_url", "mysql://ser:heslo@localhost/ser")
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "timer_interval", 10)
modparam("rr", "enable_full_lr", 1)
modparam("auth_radius", "radius_config",
"/usr/local/etc/radiusclient-ng/radiusclient.conf")
modparam("auth_radius", "service_type", 15)
modparam("group_radius", "use_domain", 0)
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!radius_www_authorize("")) {
www_challenge("", "0");
break;
};
save("location");
break;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
Woohoo, thanks so much. Actually that lcr patch fixed it, everything
works great now. Also on a related note can qm_malloc cause SER hangs or
any other bad things? Does it actually fix memory leaks or just help
report them? Thanks again, you rock...
Matt
-----Original Message-----
From: Juha Heinanen [mailto:jh@tutpro.com]
Sent: Wednesday, May 04, 2005 8:30 AM
To: Matt Schulte
Subject: RE: [Serusers] LCR failure syntax
Matt Schulte writes:
> FYI, I *finally* got around to doing this. A debug shows that load_gw
is > in fact loading both gateways..
matt,
> 8(30980) DEBUG:load_gws(): Added AVP <lcr_gw_addr,374650ce> >
8(30980) qm_malloc(0xf4edf000, 31) called from usr_avp.c: add_avp(112)
> 8(30980) qm_malloc(0xf4edf000, 32) returns address 0xf509a3ec frag.
> 0xf509a3d4 (size=32) on 1 -th hit > 8(30980) DEBUG:load_gws(): Added
AVP <lcr_gw_port,0> > 8(30980) qm_malloc(0xf4edf000, 31) called from
usr_avp.c: add_avp(112) > 8(30980) qm_malloc(0xf4edf000, 32) returns
address 0xf509a43c frag. > 0xf509a424 (size=32) on 1 -th hit >
8(30980) DEBUG:load_gws(): Added AVP <lcr_gw_addr,511f7d1> > 8(30980)
qm_malloc(0xf4edf000, 31) called from usr_avp.c: add_avp(112) >
8(30980) qm_malloc(0xf4edf000, 32) returns address 0xf509a48c frag. >
0xf509a474 (size=32) on 1 -th hit > 8(30980) DEBUG:load_gws(): Added
AVP <lcr_gw_port,0>
there was a bug in the debug output of DEBUG:load_gws(), which is fixed
on the current CVS HEAD version and also in current
https://tutpro.com/tmp/lcr-0.9.0.tgz. that, however, would not explain
why load_gw() loads two gws, but next_gw() calls succeed only once.
i checked next_gw() code and it calls search_first_avp
avp = search_first_avp(gw_ap_avp_name_str, addr_port_name, &val);
and if that returns an avp, destroys that avp
destroy_avp(avp);
after first saving its value for further processing. these are the only
function calls related to avps in next_gw() function. so there is no
way the second gw would disappear somewhere unless (1) you use the same
avp name/number for something else too or (2) there is a bug in ser
usr_avp code.
i suggest that you try once more with the current lcr backport.
regarding debugging, unless you are looking for memory leaks, i suggest
you turn off qm_malloc debugs by commenting
-DDBG_QM_MALLOC
in Makefile.defs.
-- juha
Hi,
I've got some problems.
When I use the simple ser.cfg, everything is fine, the ser starts, I
can call to other users and I can try to add other users.
When I want to change and try to use MySQL, nothing goes.
I always receive:
Starting SER : PID file /var/run/ser.pid does not exist -- SER start failed
I've tryed to touch it but nothing.
I've installed the libmysqlclient;
I've rebuilt the acc.so according other solutions I saw in this ml...
Using the command ser -c it reply that the cfg is ok.
Same thing if I try to setup to use it with PSTN
What can I do???
I've got to add users, allow them to call to PSTN and accounting the calls...
PLEASE HELP!!!
Best Regards
--
.:FaberK:.