Hi Norman,
Thank you for the reply.
With the definition of "ATTRIBUTE src_leg 0 string", I got an error "src_leg is not a number".
After changed it to the following definition,
ATTRIBUTE Acct-Status-Type 40 integer
ATTRIBUTE Service-Type 6 integer
ATTRIBUTE Event-Timestamp 55 integer
ATTRIBUTE Acct-Session-Id 44 string
ATTRIBUTE src_leg 1 integer
ATTRIBUTE dst_leg 1 integer
VALUE Acct-Status-Type Start 1
VALUE Acct-Status-Type Stop 2
VALUE Acct-Status-Type Failed 0
VALUE Service-Type Sip-Session 15
I still got this error:
ERROR:acc:extra2int: <src_leg> is not a number
Thanks
Sam
----- Original Message ----
From: Norman Brandinger <norm(a)goes.com>
To: Live Great <livegreat007(a)yahoo.com>
Cc: users(a)openser.org
Sent: Tuesday, October 2, 2007 9:43:41 AM
Subject: Re: can't get code for the Failed attribute
Hi Sam,
In /usr/local/share/freeradius/dictionary.rfc2866 there exists the
following entry:
VALUE Acct-Status-Type Failed 15
I'm not an expert in this area, but it appears that "Failed" is sort of
predefined. You probably should NOT use "Failed", instead create a
unique attribute such as "failed-reason". This is of course assuming
the rest of your definitions are good.
Please do not cross-post configuration questions of this type to the
developers mailing list.
Regards,
Norm
Live Great wrote:
> Hi,
>
> After added the following Attributes in the radiusclient-ng/dictionary
> file:
> ATTRIBUTE src_leg 0 string
> ATTRIBUTE dst_leg 0 string
> ATTRIBUTE Failed 0 string
>
> I got the following error:
> ERROR: acc: can't get code for the Failed attribute value
>
> How to define a proper attribute in the dictionary file?
> Thanks
> Sam
>
> ----- Original Message ----
> From: Norman Brandinger <norm(a)goes.com>
> To: Live Great <livegreat007(a)yahoo.com>
> Cc: devel(a)openser.org
> Sent: Monday, October 1, 2007 9:01:54 PM
> Subject: Re: [OpenSER-Devel] can't get code for the Sip-Response-Code
> attribute
>
> Good Morning,
>
> You need to make sure the dictionary settings are correct and exactly
> match what you have specified in OpenSER.
>
> The dictionaries are specified in radiusclient-ng and in radiusd (and
> mediaproxy if you use it)
>
> The error is telling you that "Sip-Response-Code" cannot be found in any
> of the dictionaries you have specified..
>
> Regards,
> Norm
>
> Live Great wrote:
> > Hi,
> >
> > I still can't this work, that's why I posted in the development forum.
> >
> > I have installed openser with *_ACC=ture uncommented in the acc/Makfile.
> > But I can't start openser now.
> > Here is the error when I executed /usr/local/etc/rc.d/openser start:
> >
> > core:rc.d # ./openser start
> > Command Monit to start OpenSER...
> > 'openser' start: /usr/local/etc/rc.d/openser
> > 'openser' failed to start
> > Starting Open SIP Router:
> > Listening on
> > udp: 127.0.0.1 [127.0..0.1]:5060
> > udp: 12x.x.x.x [12x.x.x.x]:5060
> > Aliases:
> > udp: xxx.xxx.com.au:5060
> > udp: localhost.xxx.com.au:5060
> > udp: localhost:5060
> >
> > In /var/log/messages:
> > ERROR: acc: can't get code for the Sip-Response-Code attribute
> > ERROR:acc:mod_init: failed to init radius
> >
> > core:rc.d # ps -auxww | grep openser
> > root 35219 0.0 0.1 1520 728 p2 R+ 12:03AM 0:00.00 grep
> openser
> > core:rc.d # ps -auxww | grep radius
> > root 35230 0.0 0.3 5004 3256 ?? Ss 12:04AM 0:00.00
> > /usr/local/sbin/radiusd
> > core:rc.d # ps -auxww | grep mysql
> > mysql 75881 0.0 0.1 1732 1116 p1- I 20Sep07 0:00.02 /bin/sh
> > /usr/local/bin/mysqld_safe
> > --defaults-extra-file=/usr/local/var/db/mysql/my.cnf --user=mysql
> > --datadir=/usr/local/var/db/mysql
> > --pid-file=/usr/local/var/db/mysql/core.xxx.com.au.pid
> > mysql 75924 0.0 2.7 49016 28336 p1- S 20Sep07 10:52.77 [mysqld]
> > root 35237 0.0 0.1 1544 644 p2 RL+ 12:05AM 0:00.00 grep mysql
> >
> > Why I got thos acc errors when starting openser?
> >
> > Thanks
> > SW
> >
> >
> >
> > ----- Original Message ----
> > From: Norman Brandinger <norm(a)goes.com>
> > To: Live Great <livegreat007(a)yahoo.com>
> > Cc: FreeRadius users mailing list
> > <freeradius-users(a)lists.freeradius.org>; users(a)openser.org
> > Sent: Friday, September 28, 2007 11:11:23 PM
> > Subject: Re: [OpenSER-Users] Failed to compile openser with freeradius
> > support
> >
> > Comment the FREERADIUS=1 in the openser/Makefile
> >
> > Make sure that in modules/acc/Makefile ENABLE_RADIUS_ACC=true is not
> > commented
> >
> > Regards,
> > Norm
> >
> >
> > Live Great wrote:
> > > HI,
> > >
> > > In FreeBSD 6.2, I got this error when I compiled openser with
> > > freeradius support.
> > >
> > > ../../radius.h:36:32: freeradius-client.h: No such file or directory
> > > acc.c: In function `init_acc_rad':
> > > acc.c:464: warning: assignment makes pointer from integer without
> a cast
> > > acc..c:475: error: `DICT_ATTR' undeclared (first use in this function)
> > > acc.c:475: error: (Each undeclared identifier is reported only once
> > > acc.c:475: error: for each function it appears in.)
> > > acc.c:475: error: `da' undeclared (first use in this function)
> > > acc.c:475: error: `DICT_VALUE' undeclared (first use in this function)
> > > acc.c:475: error: `dv' undeclared (first use in this function)
> > > acc.c: In function `acc_rad_request':
> > > acc.c:509: error: `VALUE_PAIR' undeclared (first use in this function)
> > > acc.c:514: error: invalid lvalue in assignment
> > > acc.c:555: error: `OK_RC' undeclared (first use in this function)
> > > gmake[1]: *** [acc.o] Error 1
> > > gmake[1]: Leaving directory
> > > `/usr/ports/net/openser/work/openser-1.2.2-tls/modules/acc'
> > > gmake: *** [modules] Error 2
> > > *** Error code 2
> > >
> > > Stop in /usr/ports/net/openser.
> > > *** Error code 1
> > >
> > > Is there any way I can compile openser with freeradius support?
> > >
> > > Thanks
> > > SW
> > >
> ------------------------------------------------------------------------
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Devel mailing list
> > Devel(a)openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/devel
> >
>
>
Hi,
After added the following Attributes in the radiusclient-ng/dictionary file:
ATTRIBUTE src_leg 0 string
ATTRIBUTE dst_leg 0 string
ATTRIBUTE Failed 0 string
I got the following error:
ERROR: acc: can't get code for the Failed attribute value
How to define a proper attribute in the dictionary file?
Thanks
Sam
----- Original Message ----
From: Norman Brandinger <norm(a)goes.com>
To: Live Great <livegreat007(a)yahoo.com>
Cc: devel(a)openser.org
Sent: Monday, October 1, 2007 9:01:54 PM
Subject: Re: [OpenSER-Devel] can't get code for the Sip-Response-Code attribute
Good Morning,
You need to make sure the dictionary settings are correct and exactly
match what you have specified in OpenSER.
The dictionaries are specified in radiusclient-ng and in radiusd (and
mediaproxy if you use it)
The error is telling you that "Sip-Response-Code" cannot be found in any
of the dictionaries you have specified.
Regards,
Norm
Live Great wrote:
> Hi,
>
> I still can't this work, that's why I posted in the development forum.
>
> I have installed openser with *_ACC=ture uncommented in the acc/Makfile.
> But I can't start openser now.
> Here is the error when I executed /usr/local/etc/rc.d/openser start:
>
> core:rc.d # ./openser start
> Command Monit to start OpenSER...
> 'openser' start: /usr/local/etc/rc.d/openser
> 'openser' failed to start
> Starting Open SIP Router:
> Listening on
> udp: 127.0.0.1 [127.0.0.1]:5060
> udp: 12x.x.x.x [12x.x.x.x]:5060
> Aliases:
> udp: xxx.xxx.com.au:5060
> udp: localhost.xxx.com.au:5060
> udp: localhost:5060
>
> In /var/log/messages:
> ERROR: acc: can't get code for the Sip-Response-Code attribute
> ERROR:acc:mod_init: failed to init radius
>
> core:rc.d # ps -auxww | grep openser
> root 35219 0.0 0.1 1520 728 p2 R+ 12:03AM 0:00.00 grep openser
> core:rc.d # ps -auxww | grep radius
> root 35230 0.0 0.3 5004 3256 ?? Ss 12:04AM 0:00.00
> /usr/local/sbin/radiusd
> core:rc.d # ps -auxww | grep mysql
> mysql 75881 0.0 0.1 1732 1116 p1- I 20Sep07 0:00.02 /bin/sh
> /usr/local/bin/mysqld_safe
> --defaults-extra-file=/usr/local/var/db/mysql/my.cnf --user=mysql
> --datadir=/usr/local/var/db/mysql
> --pid-file=/usr/local/var/db/mysql/core.xxx.com.au.pid
> mysql 75924 0.0 2.7 49016 28336 p1- S 20Sep07 10:52.77 [mysqld]
> root 35237 0.0 0.1 1544 644 p2 RL+ 12:05AM 0:00.00 grep mysql
>
> Why I got thos acc errors when starting openser?
>
> Thanks
> SW
>
>
>
> ----- Original Message ----
> From: Norman Brandinger <norm(a)goes.com>
> To: Live Great <livegreat007(a)yahoo.com>
> Cc: FreeRadius users mailing list
> <freeradius-users(a)lists.freeradius.org>; users(a)openser.org
> Sent: Friday, September 28, 2007 11:11:23 PM
> Subject: Re: [OpenSER-Users] Failed to compile openser with freeradius
> support
>
> Comment the FREERADIUS=1 in the openser/Makefile
>
> Make sure that in modules/acc/Makefile ENABLE_RADIUS_ACC=true is not
> commented
>
> Regards,
> Norm
>
>
> Live Great wrote:
> > HI,
> >
> > In FreeBSD 6.2, I got this error when I compiled openser with
> > freeradius support.
> >
> > ../../radius.h:36:32: freeradius-client.h: No such file or directory
> > acc.c: In function `init_acc_rad':
> > acc.c:464: warning: assignment makes pointer from integer without a cast
> > acc.c:475: error: `DICT_ATTR' undeclared (first use in this function)
> > acc.c:475: error: (Each undeclared identifier is reported only once
> > acc.c:475: error: for each function it appears in.)
> > acc.c:475: error: `da' undeclared (first use in this function)
> > acc.c:475: error: `DICT_VALUE' undeclared (first use in this function)
> > acc.c:475: error: `dv' undeclared (first use in this function)
> > acc.c: In function `acc_rad_request':
> > acc.c:509: error: `VALUE_PAIR' undeclared (first use in this function)
> > acc.c:514: error: invalid lvalue in assignment
> > acc.c:555: error: `OK_RC' undeclared (first use in this function)
> > gmake[1]: *** [acc.o] Error 1
> > gmake[1]: Leaving directory
> > `/usr/ports/net/openser/work/openser-1.2.2-tls/modules/acc'
> > gmake: *** [modules] Error 2
> > *** Error code 2
> >
> > Stop in /usr/ports/net/openser.
> > *** Error code 1
> >
> > Is there any way I can compile openser with freeradius support?
> >
> > Thanks
> > SW
> > ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>
Hi Fredrik,
Have you take a look at Citrusdb its a very good open-Source billing
project i think with some slight tweaking to enable it to extract CDRs
from Asterisk or Openser it can work great.
Cheers.
ive searched for the radius module
ldconfig -v | grep radius
and found
/usr/lib64:
libradiusclient-ng.so.2 -> libradiusclient-ng.so.2.0.0
/usr/lib
libradius-1.0.1.so -> libradius.so
tried to build in root ser dir
Still not sure what i am missing same error below
make[1]: Entering directory `/usr/src/ser/ser-0.9.6/modules/acc'
gcc -shared -Wl,-O2 -Wl,-E acc.o acc_mod.o diam_avp.o diam_message.o diam_tcp.o -L/usr/local/lib -lradiusclient-ng -o acc.so
/usr/bin/ld: cannot find -lradiusclient-ng
collect2: ld returned 1 exit status
make[1]: *** [acc.so] Error 1
make[1]: Leaving directory `/usr/src/ser/ser-0.9.6/modules/acc'
**************************************************************************
First off, make sure /etc/ld.so.conf points to the correct radius client
dir, rerun ldconfig.
Then do what it says. Don't make the module FROM the module directory.
There's info in the INSTALL file on how to compile the modules one at a
time properly.
From the root src tree:
make modules=modules/acc modules
David Adade wrote:
>
>
> first problem running make in /usr/src/ser/ser-0.9.6/modules/acc
>
> i get the following error
> acc.c:56:33: radiusclient-ng.h: No such file or directory
>
> So i installed the following
>
> freeradius-1.0.1-3.RHEL4.5.
> radiusclient-ng-devel-0.5.2-4
> radiusclient-ng-0.5.2-4
>
> now i get the error
>
> ../../Makefile.modules:21: "you should run make from the main ser
> directory"
> gcc -shared -Wl,-O2 -Wl,-E acc.o acc_mod.o diam_avp.o
> diam_message.o diam_tcp.o -L/usr/local/lib -lradiusclient-ng -o acc.so
> /usr/bin/ld: cannot find -lradiusclient-ng
> collect2: ld returned 1 exit status
> make: *** [acc.so] Error 1
>
> vi /etc/ld.so.conf reads
>
> /usr/ofed/lib
> /usr/lib64/
> /etc/radiusclient
> /usr/sbin
> /usr/bin
>
> I am running centos 4. The radius server works fine no problems
>
>
> vi /usr/src/ser/ser-0.9.6/modules/acc/Makefile reads
>
> # uncomment the next line if you wish to enable SQL accounting
> DEFS+=-DSQL_ACC
>
> # uncomment the next two lines if you wish to enable RADIUS accounting
> DEFS+=-DRAD_ACC
> include ../../Makefile.radius
> # DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
> # LIBS=-L$(LOCALBASE)/lib -lradiusclient-
>
> Can anyone help
>
>
>
>
>
>
>
>
> ***********************************************************************
> IMPORTANT NOTICE:
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. If you receive this in error, please contact the sender and
> delete the material from any computer.
> This e-mail is intended for the above named addressee only.
> Should you receive this e-mail in error please contact
> Customer Services on Tel: + 44 (0)870 241 2439
> ************************************************************************
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serusers mailing list
> Serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
--
Neil Fusillo
CEO
Infinideas, inc.
http://www.ideasip.com
***********************************************************************
IMPORTANT NOTICE:
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. If you receive this in error, please contact the sender and
delete the material from any computer.
This e-mail is intended for the above named addressee only.
Should you receive this e-mail in error please contact
Customer Services on Tel: +44 (0)870 241 2439
************************************************************************