<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;">Hi,<br><br>In your example, do you meant openser will trainsform Src-Leg to 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 src_leg instead Src-Leg.<br><br>Thanks<br>Sam.<br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<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><div>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>> 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>> 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 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 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>> > 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 Sip-Response-Code<br>> > attribute<br>> ><br>> > Good Morning,<br>> ><br>> > You need to make sure the dictionary settings are correct and exactly<br>> > match what you have specified in OpenSER.<br>> ><br>> > The dictionaries are
specified in radiusclient-ng and in radiusd (and<br>> > mediaproxy if you use it)<br>> ><br>> > The error is telling you that "Sip-Response-Code" cannot be found 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 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 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 /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 [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>> > > 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 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 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 directory<br>> > > > acc.c: In function `init_acc_rad':<br>> > > > acc.c:464: warning: assignment makes pointer from integer 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 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 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>> > > 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></div></div><br></div></div></body></html>