Hi,
In your example, do you meant openser will trainsform Src-Leg to src_leg and Dst-Leg to dst_leg?
After I followed your suggestion and changed the definition to,
ATTRIBUTE Src-Leg 1075 string
ATTRIBUTE Dst-Leg 1076 string
I get an error:
ERROR: acc: can't get code for the src_leg attribute
I have a feeling that it is case sensitive, and openser is looking for src_leg instead Src-Leg.
Thanks
Sam.
----- Original Message ----
From: Norman Brandinger <norm(a)goes.com>
To: Live Great …
[View More]<livegreat007(a)yahoo.com>
Cc: users(a)openser.org
Sent: Tuesday, October 2, 2007 9:42:15 PM
Subject: Re: can't get code for the Failed attribute
Hello Sam,
The definition you used:
ATTRIBUTE src_leg 0 string
Probably isn't valid because "0" is more than likely already being
used. Notice that the various ATTRIBUTE numbers are all unique and just
increment. So use the next higher number that is available. If the
last ATTRIBUTE was 240 then your definition might look like:
ATTRIBUTE src_leg 241 string
You might also want to consider the general naming convention that is
used. The above example would then look as follows:
ATTRIBUTE Src-Leg 241 string
Note, when you get around to inserting this data into a database, the
column name will probably not be allowed to have a dash (unless the
column name is quoted).
Regards,
Norm
Live Great wrote:
> It looks like it doesn't look up the dictionary files in
> /usr/local/share/freeradius/ directory.
> But src_leg and dst_leg are not defined in the share directory.
>
> Sam.
>
>
> ----- Original Message ----
> From: Live Great <livegreat007(a)yahoo.com>
> To: Norman Brandinger <norm(a)goes.com>
> Cc: users(a)openser.org
> Sent: Tuesday, October 2, 2007 10:17:47 AM
> Subject: Re: can't get code for the Failed attribute
>
> 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
> > >
> >
> >
>
>
>
[View Less]
I forgot to cc the list
/Fredrik
----- Original Message -----
From: Fredrik Lundmark
To: srinivas Antarvedi
Sent: Sunday, September 30, 2007 11:34 AM
Subject: Re: [OpenSER-Users] Prepaid SIP
I believe SEMS (http://ftp.iptel.org/pub/sems/doc/current/AppDocExample.html) together with CDRTool (http://cdrtool.ag-projects.com/) can be adjusted to your needs - any feedback from anyone out there that's done it?
BR///
Fredrik
----- Original Message -----
From: srinivas Antarvedi
To: users(…
[View More]a)openser.org
Sent: Friday, September 28, 2007 12:27 PM
Subject: [OpenSER-Users] Prepaid SIP
Hello all,
Actually i have a testing setup which facilitates to give accounting
details to mysql db once call was end by any one of the uac.
But if i want to have a prepaid solution like our mobiles i dont
found any solution till now on open source
some of my friend suggested to go for B2BUA from vovida.org
does anybody using this ?
is this real that this can work for prepaid stuff?
if not just let me know otherwise i will waste my time in doing
some research on something not useful
if not what might be the other ways to get around the problem
of prepaid billing
i know we can do this using b2bua, can we go ahead with asterisk?
waiting for valuable suggestions
--
Srinivas Antarvedi
--------------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
[View Less]
Hi, I've multidomain OpenSer and I want the possibility of adding new domains
without having to write in conf file and restart OpenSer, so I use "domain"
module and functions. It works fine.
The problem is that WengoPhone includes a "Route" in the REGISTER so it is
matches in "loose_route" and creates an infinite loop:
-------------------------------------------
U 2007/09/12 11:00:47.770226 212.121.235.18:1029 -> 88.95.0.210:5060
REGISTER sip:sip.domain.net SIP/2.0
Via: SIP/2.0/UDP 192.…
[View More]168.1.58:5061;rport;branch=123456789
Route: <sip:sip.domain.net;lr>
U 2007/09/12 11:00:47.772884 88.95.0.210:5060 -> 88.95.0.210:5060
REGISTER sip:sip.domain.net SIP/2.0
Max-Forwards: 10
Via: SIP/2.0/UDP 88.95.0.210;branch=z9hG4bK734e.08122386.0
Via: SIP/2.0/UDP
192.168.1.58:5061;received=212.121.235.18;rport=1029;branch=123456789
Route: <sip:sip.domain.net;lr>
U 2007/09/12 11:00:47.775153 88.95.0.210:5060 -> 88.95.0.210:5060
REGISTER sip:sip.domain.net SIP/2.0
Max-Forwards: 9
Via: SIP/2.0/UDP 88.95.0.210;branch=z9hG4bK734e.18122386.0
Via: SIP/2.0/UDP 88.95.0.210;rport=5060;branch=z9hG4bK734e.08122386.0
Via: SIP/2.0/UDP
192.168.1.58:5061;received=212.121.235.18;rport=1029;branch=123456789
Route: <sip:sip.domain.net;lr>
etc etc...
-------------------------------------------
A developer of WengoPhone said me that this "Route" header is not necessary
but still valid, and that I can solve it by adding:
alias=sip.domain.org
But I don't want to write in conf file for each new added domain, and I don't
want to restart OpenSer when it.
I'm thinking in change:
if (loose_route()) {
by
if (loose_route() && method!="REGISTER") {
but it doesn't seem very ellegatn solution.
How could I solve it? Thanks for any help.
--
Iñaki Baz Castillo
ibc(a)in.ilimit.es
[View Less]
Hello,
Can you please help me to interpret the meaning this warning message?
/usr/local/sbin/ser[22017]: WARNING: run_actions: null action list
(rec_level=15)
The message is recurring many times in my /var/log/messages.
Thank you,
Brian
I should have Cc'd this to the list...
-------- Original Message --------
Subject: Re: [Serusers] How to change INVITE From field
Date: Tue, 02 Oct 2007 13:57:49 +0200
From: Olaf Bergmann <Olaf.Bergmann(a)freenet.ag>
Organization: Freenet Cityline GmbH
To: SIP <sip(a)arcdiv.com>
References: <b222g3dmntvc38gk3v2uq7vau6vmfcjem1(a)4ax.com>
<4701F388.7020109(a)freenet.ag> <470217DF.9020607(a)arcdiv.com>
SIP wrote:
[RFC 2543]
> The implication of this is that the …
[View More]ENTIRE From/To headers are not
> necessarily immutable, as the tag is used to identify them as unique.
Well, transaction matching in RFC 2543 has used the nameaddr part of
the From/To headers, therefore implementations were required not to
change these. Tags at that time have been introduced primarily for
dealing with forked requests.
In RFC 3261, this has been re-designed mainly for robustness of
transaction matching. Since there were many pre-3261
implementations, the requirement of immutable From and To headers is
still valid. (Nowadays, people start discussing if this is still
necessary.) To ensure interoperability, carriers typically use
dialog-stateful intermediaries (back-to-back user agents) to change
these headers.
> The question is, is there something elsewhere which contradicts this
> (and therefore enforced the rule of immutable From/To headers), or is
> this just a SER idiosyncrasy? If it's just a SER thing, might it not be
> different in other systems (something we might have to watch out for),
> or might it not be coded around within SER to allow modification of the
> From header?
IMHO it is a SER thing, and you could probably change the function
for branch creation (the problem is that you must find another way
for stateless generation of recognizable branch tags).
Regards,
Olaf
[View Less]
For outbound pstn calls, I want to change the INVITE message's From:
header field to specify my caller id. For example, I want to change
it from this:
From: 201 <sip:201@67.32.47.145:5060>;tag=4f3c1a5892c015f
to this:
From: Forte Inc <sip:9195551234@67.32.47.145:5060>;tag=4f3c1a5892c015f
What's the best way to change the "comment" and LHS of the address?
Many thanks!
--
Mark Sidell
Partner
Forte, Inc.
919-942-7068
fax 919-969-2844
www.forteinc.com
Hello Daniel,
I added a debug statement in mysql/dbase.c/db_mysql_submit_query() and
here is the output.
1(1950) Checking pkt for caller sip:demo2@altecnet.gr
1(2318) submit_query(): select value,attribute,type from
usr_preferences where username='demo2' AND domain='altecnet.gr' AND
attribute='111'
1(1950) close avp query
1(1950) DEBUG:avpops:load_avps: loaded avps = 0
My config looks like
avp_aliases="pkt=i:111"
...
xlog("L_ERR","Checking pkt for caller $avp(…
[View More]caller)\n");
if (is_avp_set("$avp(caller)") &&
avp_db_load("$avp(caller)/uri", "$avp(pkt)")) {
xlog("L_ERR", "Use large pkt=$avp(pkt) for caller
$avp(caller)\n");
...
}
I see now what is happening. So I am guessing that avp_db_load() cannot
be used this way unless I rename my records in DB from 'pkt' to '111'
which does not make much sense. Second alternative would be to use some
custom db_scheme.
best regards
George
> -----Original Message-----
> From: Daniel-Constantin Mierla [mailto:daniel@voice-system.ro]
> Sent: Tuesday, October 02, 2007 12:14 PM
> To: Papadopoulos Georgios
> Cc: users(a)openser.org
> Subject: Re: [OpenSER-Users] avp_db_load() with avp aliases
>
> Hello,
>
> can you get the debug messages with debug=7 and the sql query
> sent to the mysql server?
>
> Cheers,
> Daniel
>
>
> On 10/01/07 10:09, Papadopoulos Georgios wrote:
> > Hello all,
> >
> > Recently I changed all my avps from string names to
> aliases. I noticed
> > that all my avp_db_load() calls are failing. From the tests that I
> > did, I conclude that it fails when the 2nd argument to the
> function is
> > an avp with an alias:
> >
> > avp_aliases="caller = i:100;
> > pkt = i:111"
> > avp_db_load("$avp(s:caller)/uri", "$avp(s:pkt)") works ok
> > avp_db_load("$avp(caller)/uri", "$avp(s:pkt)") works ok
> > avp_db_load("$avp(caller)/uri", "$avp(pkt)") fails
> > What am I doing wrong? My version is 1.2 from svn (rev. 2826)
> >
> > thank you for any help
> >
> > George
> >
> >
> >
> > Disclaimer
> >
> > The information in this e-mail and any attachments is
> confidential. It
> > is intended solely for the attention and use of the named
> > addressee(s). If you are not the intended recipient, or person
> > responsible for delivering this information to the intended
> recipient,
> > please notify the sender immediately. Unless you are the intended
> > recipient or his/her representative you are not authorized to, and
> > must not, read, copy, distribute, use or retain this message or any
> > part of it. E-mail transmission cannot be guaranteed to be
> secure or
> > error-free as information could be intercepted, corrupted, lost,
> > destroyed, arrive late or incomplete, or contain viruses.
> >
> >
> ----------------------------------------------------------------------
> > --
> >
> > _______________________________________________
> > Users mailing list
> > Users(a)openser.org
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
>
[View Less]
It looks like it doesn't look up the dictionary files in /usr/local/share/freeradius/ directory.
But src_leg and dst_leg are not defined in the share directory.
Sam.
----- Original Message ----
From: Live Great <livegreat007(a)yahoo.com>
To: Norman Brandinger <norm(a)goes.com>
Cc: users(a)openser.org
Sent: Tuesday, October 2, 2007 10:17:47 AM
Subject: Re: can't get code for the Failed attribute
Hi Norman,
Thank you for the reply.
With the definition of "ATTRIBUTE src_leg 0 …
[View More]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
> >
>
>
[View Less]
Sorted a bit of info got me on the right track.
rpm -e radiusclient-ng-devel-0.5.2-4
rpm -e radiusclient-ng-0.5.2-4
rpm -e radiusclient
as per documentation used
wget http://download.berlios.de/radiusclient-ng/radiusclient-ng-0.5.6.tar.gz
vi /etc/ld.so.conf
/usr/local/lib
ldconfig
i read another post you can run make in the root of ser or ../modules/acc/ it only complains that you shoud run it in the root.
-----Original Message-----
From: Jiri Kuthan [mailto:jiri@iptel.org]
Sent: …
[View More]30 September 2007 17:52
To: David Adade; serusers(a)lists.iptel.org
Subject: [SPAM] - Re: [Serusers] acc.so wont build - Found word(s) list
error in the Text body
At 17:19 28/09/2007, David Adade wrote:
>Content-Type: multipart/alternative;
> boundary="----_=_NextPart_001_01C801E2.EB90C040"
>Content-Class: urn:content-classes:message
>
>
>
>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"
have you tried it?
-jiri
>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
--
Jiri Kuthan http://iptel.org/~jiri/
***********************************************************************
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
************************************************************************
[View Less]
Hello all,
Recently I changed all my avps from string names to aliases. I noticed
that all my avp_db_load() calls are failing. From the tests that I did,
I conclude that it fails when the 2nd argument to the function is an avp
with an alias:
avp_aliases="caller = i:100;
pkt = i:111"
avp_db_load("$avp(s:caller)/uri", "$avp(s:pkt)") works ok
avp_db_load("$avp(caller)/uri", "$avp(s:pkt)") works ok
avp_db_load("$avp(caller)/uri", "$avp(pkt)") fails
…
[View More]What am I doing wrong? My version is 1.2 from svn (rev. 2826)
thank you for any help
George
Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
[View Less]