<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">After remeoved the support of DIAMETER mmodule from openser, tt works fine now.<br>I have registered some numbers to it and will test it tonight with remote xlite users.<br>BUT, what is DIAMETER? I read some post in voip forum, someone said it is far too outdated.<br>I am wondering what it is, and what should be used to replace DIAMETER.<br><br>Thanks for helping me along to solve the issues.<br>Sam<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Christian Schlatter <cs@unc.edu><br>To: norm@goes.com<br>Cc: Live Great <livegreat007@yahoo.com>; users@openser.org<br>Sent: Wednesday, October 3, 2007 10:44:06 AM<br>Subject: Re:
[OpenSER-Users] Re: can't get code for the src-leg attribute<br><br><div>Norman Brandinger wrote:<br>> First,<br>> <br>> The three radius messages from the radius log are just INFO messages, <br>> not error messages. This is a good thing.<br>> <br>> Try using the lowest possible unused number for the attributes. My <br>> attributes are in the 240 range. Again, I haven't tested it but perhaps <br>> radius has an upper limit of maybe 255 or maybe 1024.<br><br>The upper limit is 255 because there is only one byte for RADIUS <br>attribute types.<br><br><a target="_blank" href="http://www.iana.org/assignments/radius-types">http://www.iana.org/assignments/radius-types</a><br><br>I'd suggest to either use 124-223 or 241-255 for things like src/dst-leg.<br><br>/Christian<br><br>> <br>> Norm<br>> <br>> <br>> <br>> > Hi
Norman,<br>> ><br>> > Thanks for the reply.<br>> > According to your suggestion, I have added the following lines in <br>> raddb/dicitionary:<br>> > ATTRIBUTE Src-Leg 1075 integer<br>> ><br>> > ATTRIBUTE Dst-Leg 1076 integer<br>> ><br>> ><br>> > change in radiusclient-ng/dictionary:<br>> > ATTRIBUTE Src-Leg 1075 integer<br>> > ATTRIBUTE Dst-Leg 1076 integer<br>> ><br>> > change in openser/openser.cfg:<br>> > #modparam("acc", "multi_leg_info", <br>> "src_leg=$avp(i:901);dst_leg=$avp(i:902)")<br>> > modparam("acc", "multi_leg_info", <br>> "Src-Leg=$avp(i:901);Dst-Leg=$avp(i:902)")<br>> ><br>> > Note, I have commented out the original src_leg/dst_leg
definition.<br>> > I don't know what is that i:901 and i:902 means, so I simply change <br>> the first letter to upper<br>> > case and change "_" to "-".<br>> ><br>> > Restarted radiusd, and try to start openser then found the following <br>> error in the<br>> > /var/log/messages file:<br>> > ERROR:acc:extra2int: <Src-Leg> is not a number<br>> ><br>> > When I started radiusd, there are info messages written to <br>> /var/log/radiusd.log file:<br>> > Wed Oct 3 09:28:45 2007 : Info: Using deprecated naslist file. <br>> Support for this will go away<br>> > soon.<br>> > Wed Oct 3 09:28:45 2007 : Info: rlm_exec: Wait=yes but no output <br>> defined. Did you mean<br>> > output=none?<br>> > Wed Oct 3 09:28:45 2007 : Info:
Ready to process requests.<br>> ><br>> > Thanks<br>> > Sam<br>> ><br>> > ----- Original Message ----<br>> ><br>> From: Norman Brandinger <norm@goes.com><br>> > To: Live Great <livegreat007@yahoo.com><br>> > Cc: users@openser.org<br>> > Sent: Wednesday, October 3, 2007 3:26:40 AM<br>> > Subject: Re: can't get code for the Failed attribute<br>> ><br>> > Hi Sam,<br>> ><br>> > If you altered the dictionary entries, you MUST make sure that your<br>> > openser.cfg, has also been updated.<br>> ><br>> > For example:<br>> ><br>> > modparam("acc", "radius_extra", "Src-Leg=$avp(s:source_leg);<br>> >
Dst-Leg=$avp(s:destination_leg)")<br>> ><br>> > Note that Src-Leg and Dst-Leg MUST be in the dictionary for BOTH<br>> > radiusclient-ng AND radiusd.<br>> ><br>> > Regards,<br>> > Norm<br>> ><br>> > Live Great wrote:<br>> >> Hi,<br>> >><br>> >> In your example, do you meant openser will trainsform Src-Leg to<br>> >> src_leg and Dst-Leg to dst_leg?<br>> >> After I followed your suggestion and changed the definition to,<br>> >> ATTRIBUTE Src-Leg 1075 string<br>> >> ATTRIBUTE Dst-Leg 1076 string<br>> >><br>> >> I get an error:<br>> >> ERROR: acc: can't get code for the src_leg
attribute<br>> >><br>> >> I have a feeling that it is case sensitive, and openser is looking for<br>> >> src_leg instead Src-Leg.<br>> >><br>> >> Thanks<br>> >> Sam.<br>> >><br>> >><br>> >> ----- Original Message ----<br>> >><br>> From: Norman Brandinger <norm@goes.com><br>> >> To: Live Great <livegreat007@yahoo.com><br>> >> Cc: users@openser..org<br>> >> Sent: Tuesday, October 2, 2007 9:42:15 PM<br>> >> Subject: Re: can't get code for the Failed attribute<br>> >><br>> >> Hello Sam,<br>> >><br>> >> The definition you used:<br>> >><br>> >>
ATTRIBUTE src_leg 0 string<br>> >><br>> >> Probably isn't valid because "0" is more than likely already being<br>> >> used. Notice that the various ATTRIBUTE numbers are all unique and just<br>> >> increment. So use the next higher number that is available. If the<br>> >> last ATTRIBUTE was 240 then your definition might look like:<br>> >><br>> >> ATTRIBUTE src_leg 241 string<br>> >><br>> >> You might also want to consider the general naming convention that is<br>> >> used. The above example would then look as follows:<br>> >><br>> >> ATTRIBUTE Src-Leg 241 string<br>> >> Note, when you get around to inserting this data into a database, the<br>> >> column name will probably not
be allowed to have a dash (unless the<br>> >> column name is quoted).<br>> >><br>> >> Regards,<br>> >> Norm<br>> >><br>> >><br>> >> Live Great wrote:<br>> >> > It looks like it doesn't look up the dictionary files in<br>> >> > /usr/local/share/freeradius/ directory.<br>> >> > But src_leg and dst_leg are not defined in the share directory.<br>> >> ><br>> >> > Sam.<br>> >> ><br>> >> ><br>> >> > ----- Original Message ----<br>> >> ><br>> From: Live Great <livegreat007@yahoo.com><br>> >> > To: Norman Brandinger <norm@goes.com><br>> >> > Cc:
users@openser.org<br>> >> > Sent: Tuesday, October 2, 2007 10:17:47 AM<br>> >> > Subject: Re: can't get code for the Failed attribute<br>> >> ><br>> >> > Hi Norman,<br>> >> ><br>> >> > Thank you for the reply.<br>> >> > With the definition of "ATTRIBUTE src_leg 0 string", I got an error<br>> >> > "src_leg is not a number".<br>> >> > After changed it to the following definition,<br>> >> > ATTRIBUTE Acct-Status-Type 40 integer<br>> >> > ATTRIBUTE Service-Type 6 integer<br>> >> > ATTRIBUTE Event-Timestamp 55 integer<br>> >> > ATTRIBUTE Acct-Session-Id 44 string<br>> >> > ATTRIBUTE src_leg 1 integer<br>> >> > ATTRIBUTE
dst_leg 1 integer<br>> >> > VALUE Acct-Status-Type Start 1<br>> >> > VALUE Acct-Status-Type Stop 2<br>> >> > VALUE Acct-Status-Type Failed 0<br>> >> > VALUE Service-Type Sip-Session 15<br>> >> ><br>> >> > I still got this error:<br>> >> > ERROR:acc:extra2int: <src_leg> is not a number<br>> >> ><br>> >> > Thanks<br>> >> > Sam<br>> >> > ----- Original Message ----<br>> >> ><br>> From: Norman Brandinger <norm@goes.com><br>> >> > To: Live Great <livegreat007@yahoo.com><br>> >> > Cc: users@openser.org<br>> >> > Sent: Tuesday, October 2, 2007 9:43:41 AM<br>> >> > Subject: Re:
can't get code for the Failed attribute<br>> >> ><br>> >> > Hi Sam,<br>> >> ><br>> >> > In /usr/local/share/freeradius/dictionary.rfc2866 there exists the<br>> >> > following entry:<br>> >> ><br>> >> > VALUE Acct-Status-Type Failed 15<br>> >> ><br>> >> > I'm not an expert in this area, but it appears that "Failed" is <br>> sort of<br>> >> > predefined. You probably should NOT use "Failed", instead create a<br>> >> > unique attribute such as "failed-reason". This is of course assuming<br>> >> > the rest of your definitions are good.<br>> >> ><br>> >> > Please do not cross-post configuration questions of this type to
the<br>> >> > developers mailing list.<br>> >> ><br>> >> > Regards,<br>> >> > Norm<br>> >> ><br>> >> ><br>> >> > Live Great wrote:<br>> >> > > Hi,<br>> >> > ><br>> >> > > After added the following Attributes in the <br>> radiusclient-ng/dictionary<br>> >> > > file:<br>> >> > > ATTRIBUTE src_leg 0 string<br>> >> > > ATTRIBUTE dst_leg 0 string<br>> >> > > ATTRIBUTE Failed 0 string<br>> >> > ><br>> >> > > I got the following error:<br>> >> > > ERROR: acc: can't get code for the Failed attribute value<br>> >> >
><br>> >> > > How to define a proper attribute in the dictionary file?<br>> >> > > Thanks<br>> >> > > Sam<br>> >> > ><br>> >> > > ----- Original Message ----<br>> >> > ><br>> From: Norman Brandinger <norm@goes..com><br>> >> > > To: Live Great <livegreat007@yahoo.com><br>> >> > > Cc: devel@openser.org<br>> >> > > Sent: Monday, October 1, 2007 9:01:54 PM<br>> >> > > Subject: Re: [OpenSER-Devel] can't get code for the <br>> Sip-Response-Code<br>> >> > > attribute<br>> >> > ><br>> >> > > Good Morning,<br>> >> > ><br>> >> > > You need to make sure the
dictionary settings are correct and <br>> exactly<br>> >> > > match what you have specified in OpenSER.<br>> >> > ><br>> >> > > The dictionaries are specified in radiusclient-ng and in radiusd <br>> (and<br>> >> > > mediaproxy if you use it)<br>> >> > ><br>> >> > > The error is telling you that "Sip-Response-Code" cannot be found<br>> >> in any<br>> >> > > of the dictionaries you have specified.<br>> >> > ><br>> >> > > Regards,<br>> >> > > Norm<br>> >> > ><br>> >> > > Live Great wrote:<br>> >> > > > Hi,<br>> >> > > ><br>> >> > > > I
still can't this work, that's why I posted in the development<br>> >> forum.<br>> >> > > ><br>> >> > > > I have installed openser with *_ACC=ture uncommented in the<br>> >> > acc/Makfile..<br>> >> > > > But I can't start openser now.<br>> >> > > > Here is the error when I executed /usr/local/etc/rc.d/openser <br>> start:<br>> >> > > ><br>> >> > > > core:rc.d # ./openser start<br>> >> > > > Command Monit to start OpenSER....<br>> >> > > > 'openser' start: /usr/local/etc/rc.d/openser<br>> >> > > > 'openser' failed to start<br>> >> > > > Starting Open SIP Router:<br>> >> > > > Listening
on<br>> >> > > > udp: 127.0.0.1 [127.0.0.1]:5060<br>> >> > > > udp: 12x..x.x..x [12x.x.x.x]:5060<br>> >> > > > Aliases:<br>> >> > > > udp: xxx..xxx..com.au:5060<br>> >> > > > udp: localhost.xxx.com.au:5060<br>> >> > > > udp: localhost:5060<br>> >> > > ><br>> >> > > > In /var/log/messages:<br>> >> > > > ERROR: acc: can't get code for the Sip-Response-Code attribute<br>> >> > > > ERROR:acc:mod_init: failed to init radius<br>> >> > > ><br>> >> > > > core:rc.d # ps -auxww | grep openser<br>> >> > > > root 35219 0.0 0.1 1520 728 p2 R+ 12:03AM 0:00.00 grep<br>> >> >
> openser<br>> >> > > > core:rc.d # ps -auxww | grep radius<br>> >> > > > root 35230 0.0 0.3 5004 3256 ?? Ss 12:04AM 0:00.00<br>> >> > > > /usr/local/sbin/radiusd<br>> >> > > > core:rc.d # ps -auxww | grep mysql<br>> >> > > > mysql 75881 0.0 0.1 1732 1116 p1- I 20Sep07 0:00.02<br>> >> /bin/sh<br>> >> > > > /usr/local/bin/mysqld_safe<br>> >> > > > --defaults-extra-file=/usr/local/var/db/mysql/my.cnf --user=mysql<br>> >> > > > --datadir=/usr/local/var/db/mysql<br>> >> > > > --pid-file=/usr/local/var/db/mysql/core.xxx.com.au.pid<br>> >> > > > mysql 75924 0.0 2.7 49016 28336 p1- S 20Sep07 10:52.77<br>> >>
[mysqld]<br>> >> > > > root 35237 0.0 0.1 1544 644 p2 RL+ 12:05AM 0:00.00 grep<br>> >> > mysql<br>> >> > > ><br>> >> > > > Why I got thos acc errors when starting openser?<br>> >> > > ><br>> >> > > > Thanks<br>> >> > > > SW<br>> >> > > ><br>> >> > > ><br>> >> > > ><br>> >> > > > ----- Original Message ----<br>> >> > > ><br>> From: Norman Brandinger <norm@goes.com><br>> >> > > > To: Live Great <livegreat007@yahoo.com><br>> >> > > > Cc: FreeRadius users mailing list<br>> >> > > >
<freeradius-users@lists.freeradius.org>; users@openser.org<br>> >> > > > Sent: Friday, September 28, 2007 11:11:23 PM<br>> >> > > > Subject: Re: [OpenSER-Users] Failed to compile openser with<br>> >> freeradius<br>> >> > > > support<br>> >> > > ><br>> >> > > > Comment the FREERADIUS=1 in the openser/Makefile<br>> >> > > ><br>> >> > > > Make sure that in modules/acc/Makefile ENABLE_RADIUS_ACC=true <br>> is not<br>> >> > > > commented<br>> >> > > ><br>> >> > > > Regards,<br>> >> > > > Norm<br>> >> > > ><br>> >> > > ><br>> >> > >
> Live Great wrote:<br>> >> > > > > HI,<br>> >> > > > ><br>> >> > > > > In FreeBSD 6.2, I got this error when I compiled openser with<br>> >> > > > > freeradius support..<br>> >> > > > ><br>> >> > > > > ../../radius.h:36:32: freeradius-client.h: No such file or<br>> >> directory<br>> >> > > > > acc.c: In function `init_acc_rad':<br>> >> > > > > acc.c:464: warning: assignment makes pointer from integer <br>> without<br>> >> > > a cast<br>> >> > > > > acc.c:475: error: `DICT_ATTR' undeclared (first use in this<br>> >> > function)<br>> >> > > > > acc.c:475: error: (Each
undeclared identifier is reported only<br>> >> once<br>> >> > > > > acc.c:475: error: for each function it appears in.)<br>> >> > > > > acc.c:475: error: `da' undeclared (first use in this function)<br>> >> > > > > acc.c:475: error: `DICT_VALUE' undeclared (first use in this<br>> >> > function)<br>> >> > > > > acc.c:475: error: `dv' undeclared (first use in this function)<br>> >> > > > > acc.c: In function `acc_rad_request':<br>> >> > > > > acc.c:509: error: `VALUE_PAIR' undeclared (first use in this<br>> >> > function)<br>> >> > > > > acc.c:514: error: invalid lvalue in assignment<br>> >> > > > > acc.c:555: error: `OK_RC' undeclared
(first use in this <br>> function)<br>> >> > > > > gmake[1]: *** [acc.o] Error 1<br>> >> > > > > gmake[1]: Leaving directory<br>> >> > > > > `/usr/ports/net/openser/work/openser-1.2.2-tls/modules/acc'<br>> >> > > > > gmake: *** [modules] Error 2<br>> >> > > > > *** Error code 2<br>> >> > > > ><br>> >> > > > > Stop in /usr/ports/net/openser.<br>> >> > > > > *** Error code 1<br>> >> > > > ><br>> >> > > > > Is there any way I can compile openser with freeradius support?<br>> >> > > > ><br>> >> > > > > Thanks<br>> >> > > > >
SW<br>> >> > > > ><br>> >> > ><br>> >> <br>> ------------------------------------------------------------------------<br>> >> > > ><br>> >> > > ><br>> >> > <br>> ------------------------------------------------------------------------<br>> >> > > ><br>> >> > > > _______________________________________________<br>> >> > > > Devel mailing list<br>> >> > > > Devel@openser.org<br>> >> > > > <a target="_blank" href="http://openser.org/cgi-bin/mailman/listinfo/devel">http://openser.org/cgi-bin/mailman/listinfo/devel</a><br>> >> > > ><br>> >> > ><br>> >> >
><br>> >> ><br>> >> ><br>> >> ><br>> >><br>> >><br>> ><br>> ><br>> ><br>> ><br>> ><br>> <br>> <br>> ------------------------------------------------------------------------<br>> <br>> _______________________________________________<br>> Users mailing list<br>> Users@openser.org<br>> <a target="_blank" href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser..org/cgi-bin/mailman/listinfo/users</a><br><br></div></div><br></div></div></body></html>