Hi!
Currently, to have AVPs also in in-dialog transaction I store them in RR
parameters. Would it be possible to store them inside the dialog module
- from script and from within other modules?
regards
klaus
Hi,
I have setup openser with its accounting in freebsd 6.2, I am wondering how to test its accounting capability.
I also have setup xlite users (2 xlite numbers), but I heard that we can't record accounting info in this way.
Thanks
Sam
Hello,
I am happy to announce the release of SEMS 0.10.0 (final). This release
brings applications, improvements and features to simplify the creation
of integrated VoIP services, many useful examples for application
development, eases installation and fixes some issues related to stability.
Check it out at http://www.iptel.org/sems .
Thanks a lot all sponsors, contributors and users.
From the changelog:
- new module for exposing internal DI APIs via XMLRPC
- new module for triggering calls via DI interface
- new DI/XMLRPC controlled conference application, that can for example
be used for conference rooms with web interface
- CallWatcher and a more powerful dialout function simplifies
interfacing to external applications
- many examples for quick start of custom service development,
for example new serviceline (auto-attendant) application
- b2bua implementation with media relay
- language awareness of conference application
- DB support for conference and voicemail prompts, and announcements
- PromptCollection simplifies usage of prompts in applications
- b2bua support in py_sems embedded python interpreter
- corrected RTP timeout detection
- new api for custom logging modules, new in-memory ring buffer
logging module
- accept all possible payloads and payload switching on the fly
(thanks to Maxim Sobolyev/sippysoft)
- changing callgroups (media processing threads) in running sessions
- support for setting sessions on hold
- support for OpenSer 1.3
- substantially improved documentation
- 'bundle' install method for easy installation
- support for OpenWRT package build
... and many bugfixes
SEMS - the media-S in the SLAMP.
- apologies if you receive this email several times -
--
Stefan Sayer
VoIP Services
stefan.sayer(a)iptego.de
www.iptego.de
iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
Hi
For high availabilty iam doing with loadbalance with Round Robin
could some one suggest what is the best method to do
I have a domain xyz.com not static IP use will authenticate
I have 2 openser Servers, with 1 Mysql, both teh server need to talk to one
Mysql
and user should be able to connect any server, depends on availability
could some suggest me how can i do this. to have less downtime. or failover
ram
Hello all,
I thank you people who given me help to find out a solution to prepaid
billng
so as per one of the users suggestion i tried to install the patch of the
b2bua
with asterisk 1.4.2 and i want to test whether the radius server is
communicating
with asterisk or not
the few doubts i have at present are
1)how to set radius attributes to radcheck table as i was unable to pass
the digest credentials to the radius server
2)the default library file provided with the b2bua is sufficient to talk
to
the readius server or shall i need to include as we did with openser
3)what about this gateways information in the config file of b2bua
help is required
thanks in advance
srinivas antarvedi
i
After remeoved the support of DIAMETER mmodule from openser, tt works fine now.
I have registered some numbers to it and will test it tonight with remote xlite users.
BUT, what is DIAMETER? I read some post in voip forum, someone said it is far too outdated.
I am wondering what it is, and what should be used to replace DIAMETER.
Thanks for helping me along to solve the issues.
Sam
----- Original Message ----
From: Christian Schlatter <cs(a)unc.edu>
To: norm(a)goes.com
Cc: Live Great <livegreat007(a)yahoo.com>; users(a)openser.org
Sent: Wednesday, October 3, 2007 10:44:06 AM
Subject: Re: [OpenSER-Users] Re: can't get code for the src-leg attribute
Norman Brandinger wrote:
> First,
>
> The three radius messages from the radius log are just INFO messages,
> not error messages. This is a good thing.
>
> Try using the lowest possible unused number for the attributes. My
> attributes are in the 240 range. Again, I haven't tested it but perhaps
> radius has an upper limit of maybe 255 or maybe 1024.
The upper limit is 255 because there is only one byte for RADIUS
attribute types.
http://www.iana.org/assignments/radius-types
I'd suggest to either use 124-223 or 241-255 for things like src/dst-leg.
/Christian
>
> Norm
>
>
>
> > Hi Norman,
> >
> > Thanks for the reply.
> > According to your suggestion, I have added the following lines in
> raddb/dicitionary:
> > ATTRIBUTE Src-Leg 1075 integer
> >
> > ATTRIBUTE Dst-Leg 1076 integer
> >
> >
> > change in radiusclient-ng/dictionary:
> > ATTRIBUTE Src-Leg 1075 integer
> > ATTRIBUTE Dst-Leg 1076 integer
> >
> > change in openser/openser.cfg:
> > #modparam("acc", "multi_leg_info",
> "src_leg=$avp(i:901);dst_leg=$avp(i:902)")
> > modparam("acc", "multi_leg_info",
> "Src-Leg=$avp(i:901);Dst-Leg=$avp(i:902)")
> >
> > Note, I have commented out the original src_leg/dst_leg definition.
> > I don't know what is that i:901 and i:902 means, so I simply change
> the first letter to upper
> > case and change "_" to "-".
> >
> > Restarted radiusd, and try to start openser then found the following
> error in the
> > /var/log/messages file:
> > ERROR:acc:extra2int: <Src-Leg> is not a number
> >
> > When I started radiusd, there are info messages written to
> /var/log/radiusd.log file:
> > Wed Oct 3 09:28:45 2007 : Info: Using deprecated naslist file.
> Support for this will go away
> > soon.
> > Wed Oct 3 09:28:45 2007 : Info: rlm_exec: Wait=yes but no output
> defined. Did you mean
> > output=none?
> > Wed Oct 3 09:28:45 2007 : Info: Ready to process requests.
> >
> > Thanks
> > Sam
> >
> > ----- Original Message ----
> >
> From: Norman Brandinger <norm(a)goes.com>
> > To: Live Great <livegreat007(a)yahoo.com>
> > Cc: users(a)openser.org
> > Sent: Wednesday, October 3, 2007 3:26:40 AM
> > Subject: Re: can't get code for the Failed attribute
> >
> > Hi Sam,
> >
> > If you altered the dictionary entries, you MUST make sure that your
> > openser.cfg, has also been updated.
> >
> > For example:
> >
> > modparam("acc", "radius_extra", "Src-Leg=$avp(s:source_leg);
> > Dst-Leg=$avp(s:destination_leg)")
> >
> > Note that Src-Leg and Dst-Leg MUST be in the dictionary for BOTH
> > radiusclient-ng AND radiusd.
> >
> > Regards,
> > Norm
> >
> > Live Great wrote:
> >> 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 <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
> >> > > >
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
> >
> >
> >
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
Hi Norman,
Thanks for the reply.
According to your suggestion, I have added the following lines in raddb/dicitionary:
ATTRIBUTE Src-Leg 1075 integer
ATTRIBUTE Dst-Leg 1076 integer
change in radiusclient-ng/dictionary:
ATTRIBUTE Src-Leg 1075 integer
ATTRIBUTE Dst-Leg 1076 integer
change in openser/openser.cfg:
#modparam("acc", "multi_leg_info", "src_leg=$avp(i:901);dst_leg=$avp(i:902)")
modparam("acc", "multi_leg_info", "Src-Leg=$avp(i:901);Dst-Leg=$avp(i:902)")
Note, I have commented out the original src_leg/dst_leg definition.
I don't know what is that i:901 and i:902 means, so I simply change the first letter to upper case and change "_" to "-".
Restarted radiusd, and try to start openser then found the following error in the /var/log/messages file:
ERROR:acc:extra2int: <Src-Leg> is not a number
When I started radiusd, there are info messages written to /var/log/radiusd.log file:
Wed Oct 3 09:28:45 2007 : Info: Using deprecated naslist file. Support for this will go away soon.
Wed Oct 3 09:28:45 2007 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Wed Oct 3 09:28:45 2007 : Info: Ready to process requests.
Thanks
Sam
----- Original Message ----
From: Norman Brandinger <norm(a)goes.com>
To: Live Great <livegreat007(a)yahoo.com>
Cc: users(a)openser.org
Sent: Wednesday, October 3, 2007 3:26:40 AM
Subject: Re: can't get code for the Failed attribute
Hi Sam,
If you altered the dictionary entries, you MUST make sure that your
openser.cfg, has also been updated.
For example:
modparam("acc", "radius_extra", "Src-Leg=$avp(s:source_leg);
Dst-Leg=$avp(s:destination_leg)")
Note that Src-Leg and Dst-Leg MUST be in the dictionary for BOTH
radiusclient-ng AND radiusd.
Regards,
Norm
Live Great wrote:
> 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 <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
> > > >
> > >
> > >
> >
> >
> >
>
>
I just made another attempt by using your suggestion in the openser.cfg file, it started successfully for a while, that means it has passed the dictionary.
But failed another issue with DIAMETER.
The configuration I used in openser.cfg is:
modparam("acc", "radius_extra", "Src-Leg=$avp(s:source_leg); Dst-Leg=$avp(s:destination_leg)")
The error is:
acc:init_mytcp(): error connecting to the DIAMETER client
ERROR:acc:child_init:: TCP connection not established
ERROR:init_mod_child: Error while initializing module acc, rank -5
init_unixsock_server: Error in init_child
ERROR: Could not initialize unix domain socket server
In the log, I can see Openser is trying to connect 127.0.0:3000.
Thanks
Sam
----- Original Message ----
From: Live Great <livegreat007(a)yahoo.com>
To: Norman Brandinger <norm(a)goes.com>
Cc: users(a)openser.org
Sent: Wednesday, October 3, 2007 9:34:49 AM
Subject: Re: can't get code for the src-leg attribute
Hi Norman,
Thanks for the reply.
According to your suggestion, I have added the following lines in raddb/dicitionary:
ATTRIBUTE Src-Leg 1075 integer
ATTRIBUTE Dst-Leg 1076 integer
change in radiusclient-ng/dictionary:
ATTRIBUTE Src-Leg 1075 integer
ATTRIBUTE Dst-Leg 1076 integer
change in openser/openser.cfg:
#modparam("acc", "multi_leg_info", "src_leg=$avp(i:901);dst_leg=$avp(i:902)")
modparam("acc", "multi_leg_info", "Src-Leg=$avp(i:901);Dst-Leg=$avp(i:902)")
Note, I have commented out the original src_leg/dst_leg definition.
I don't know what is that i:901 and i:902 means, so I simply change the first letter to upper case and change "_" to "-".
Restarted radiusd, and try to start openser then found the following error in the /var/log/messages file:
ERROR:acc:extra2int: <Src-Leg> is not a number
When I started radiusd, there are info messages written to /var/log/radiusd.log
file:
Wed Oct 3 09:28:45 2007 : Info: Using deprecated naslist file. Support for this will go away soon.
Wed Oct 3 09:28:45 2007 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Wed Oct 3 09:28:45 2007 : Info: Ready to process requests.
Thanks
Sam
----- Original Message ----
From: Norman Brandinger <norm(a)goes.com>
To: Live Great <livegreat007(a)yahoo.com>
Cc: users(a)openser.org
Sent: Wednesday, October 3, 2007 3:26:40 AM
Subject: Re: can't get code for the Failed attribute
Hi Sam,
If you altered the dictionary entries, you MUST make sure that your
openser.cfg, has also been updated.
For example:
modparam("acc", "radius_extra", "Src-Leg=$avp(s:source_leg);
Dst-Leg=$avp(s:destination_leg)")
Note that Src-Leg and Dst-Leg
MUST be in the dictionary for BOTH
radiusclient-ng AND radiusd.
Regards,
Norm
Live Great wrote:
> 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 <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
> > > >
> > >
> > >
> >
> >
> >
>
>
Hi to all,
i'm using openser 1.2.2 no tls and i use exec_dset to get list of
gateways in destination set to be serialized.
After execution of exec_dset i get in output:
sip:123456@10.10.10.1:5062;q=0.2
sip:123456@10.10.10.10:5060;q=0.1
$ds become : Contact: sip:123456@10.10.10.1:5062;q=0.2,
sip:123456@10.10.10.10:5060;q=0.1
RURI become: sip:123456@10.10.10.1:5062;q=0.2
$bR become: sip:123456@10.10.10.10:5060;q=0.1
All seems to be fine but when i run serialize_branches() i get:
DEBUG:serialize_branches: nothing to do - all same q!
Any ideas on what i'm missing?
May be something in the output of exec_dset??
I'm using the \n between lines in my custom LCR scripts to get gateways
from DB.
Thanks,
Bye,
Marcello
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 <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
> > >
> >
> >
>
>
>