<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 &lt;norm@goes.com&gt;<br>To: Live Great &lt;livegreat007@yahoo.com&gt;<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.&nbsp;&nbsp;Notice that the various ATTRIBUTE numbers are all unique and just<br>increment.&nbsp;&nbsp;So use the next higher number that is available.&nbsp;&nbsp;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.&nbsp;&nbsp;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>&gt; It looks like it doesn't look up the dictionary
 files in<br>&gt; /usr/local/share/freeradius/ directory.<br>&gt; But src_leg and dst_leg are not defined in the share directory.<br>&gt;<br>&gt; Sam.<br>&gt;<br>&gt;<br>&gt; ----- Original Message ----<br>&gt; From: Live Great &lt;livegreat007@yahoo.com&gt;<br>&gt; To: Norman Brandinger &lt;norm@goes.com&gt;<br>&gt; Cc: users@openser.org<br>&gt; Sent: Tuesday, October 2, 2007 10:17:47 AM<br>&gt; Subject: Re: can't get code for the Failed attribute<br>&gt;<br>&gt; Hi Norman,<br>&gt;<br>&gt; Thank you for the reply.<br>&gt; With the definition of "ATTRIBUTE src_leg 0 string", I got an error<br>&gt; "src_leg is not a number".<br>&gt; After changed it to the following definition,<br>&gt; ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;Acct-Status-Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;40&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;integer<br>&gt;
 ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;Service-Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer<br>&gt; ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;Event-Timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 55&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;integer<br>&gt; ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;Acct-Session-Id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 44&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string<br>&gt; ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp; src_leg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;integer<br>&gt; ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;dst_leg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer<br>&gt;
 VALUE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Acct-Status-Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<br>&gt; VALUE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Acct-Status-Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stop&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2<br>&gt; VALUE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Acct-Status-Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Failed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>&gt; VALUE Service-Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 Sip-Session&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15<br>&gt;<br>&gt; I still got this error:<br>&gt; ERROR:acc:extra2int: &lt;src_leg&gt; is not a number<br>&gt;<br>&gt; Thanks<br>&gt; Sam<br>&gt; ----- Original Message ----<br>&gt; From: Norman Brandinger &lt;norm@goes.com&gt;<br>&gt; To: Live Great &lt;livegreat007@yahoo.com&gt;<br>&gt; Cc: users@openser.org<br>&gt; Sent: Tuesday, October 2, 2007 9:43:41 AM<br>&gt; Subject: Re: can't get code for the Failed attribute<br>&gt;<br>&gt; Hi Sam,<br>&gt;<br>&gt; In /usr/local/share/freeradius/dictionary.rfc2866 there exists the<br>&gt; following entry:<br>&gt;<br>&gt; VALUE&nbsp;&nbsp; Acct-Status-Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Failed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15<br>&gt;<br>&gt; I'm not an expert in this area, but it appears that "Failed" is sort of<br>&gt;
 predefined.&nbsp;&nbsp;You probably should NOT use "Failed", instead create a<br>&gt; unique attribute such as "failed-reason".&nbsp;&nbsp;This is of course assuming<br>&gt; the rest of your definitions are good.<br>&gt;<br>&gt; Please do not cross-post configuration questions of this type to the<br>&gt; developers mailing list.<br>&gt;<br>&gt; Regards,<br>&gt; Norm<br>&gt;<br>&gt;<br>&gt; Live Great wrote:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; After added the following Attributes in the radiusclient-ng/dictionary<br>&gt; &gt; file:<br>&gt; &gt; ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; src_leg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string<br>&gt; &gt; ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dst_leg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string<br>&gt; &gt; ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 Failed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string<br>&gt; &gt;<br>&gt; &gt; I got the following error:<br>&gt; &gt; ERROR: acc: can't get code for the Failed attribute value<br>&gt; &gt;<br>&gt; &gt; How to define a proper attribute in the dictionary file?<br>&gt; &gt; Thanks<br>&gt; &gt; Sam<br>&gt; &gt;<br>&gt; &gt; ----- Original Message ----<br>&gt; &gt; From: Norman Brandinger &lt;norm@goes.com&gt;<br>&gt; &gt; To: Live Great &lt;livegreat007@yahoo.com&gt;<br>&gt; &gt; Cc: devel@openser.org<br>&gt; &gt; Sent: Monday, October 1, 2007 9:01:54 PM<br>&gt; &gt; Subject: Re: [OpenSER-Devel] can't get code for the Sip-Response-Code<br>&gt; &gt; attribute<br>&gt; &gt;<br>&gt; &gt; Good Morning,<br>&gt; &gt;<br>&gt; &gt; You need to make sure the dictionary settings are correct and exactly<br>&gt; &gt; match what you have specified in OpenSER.<br>&gt; &gt;<br>&gt; &gt; The dictionaries are
 specified in radiusclient-ng and in radiusd (and<br>&gt; &gt; mediaproxy if you use it)<br>&gt; &gt;<br>&gt; &gt; The error is telling you that "Sip-Response-Code" cannot be found in any<br>&gt; &gt; of the dictionaries you have specified.<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; &gt; Norm<br>&gt; &gt;<br>&gt; &gt; Live Great wrote:<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I still can't this work, that's why I posted in the development forum.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I have installed openser with *_ACC=ture uncommented in the<br>&gt; acc/Makfile.<br>&gt; &gt; &gt; But I can't start openser now.<br>&gt; &gt; &gt; Here is the error when I executed /usr/local/etc/rc.d/openser start:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; core:rc.d # ./openser start<br>&gt; &gt; &gt; Command Monit to start OpenSER...<br>&gt; &gt; &gt; 'openser' start: /usr/local/etc/rc.d/openser<br>&gt; &gt; &gt; 'openser' failed to start<br>&gt; &gt; &gt;
 Starting Open SIP Router:<br>&gt; &gt; &gt; Listening on<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;udp: 127.0.0.1 [127.0.0.1]:5060<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;udp: 12x.x.x..x [12x.x.x.x]:5060<br>&gt; &gt; &gt; Aliases:<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;udp: xxx.xxx..com.au:5060<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;udp: localhost.xxx.com.au:5060<br>&gt; &gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;udp: localhost:5060<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; In /var/log/messages:<br>&gt; &gt; &gt; ERROR: acc: can't get code for the Sip-Response-Code attribute<br>&gt; &gt; &gt; ERROR:acc:mod_init: failed to init radius<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;
 core:rc.d # ps -auxww | grep openser<br>&gt; &gt; &gt; root&nbsp;&nbsp;35219&nbsp;&nbsp;0.0&nbsp;&nbsp;0.1&nbsp;&nbsp;1520&nbsp;&nbsp; 728&nbsp;&nbsp;p2&nbsp;&nbsp;R+&nbsp;&nbsp; 12:03AM&nbsp;&nbsp; 0:00.00 grep<br>&gt; &gt; openser<br>&gt; &gt; &gt; core:rc.d # ps -auxww | grep radius<br>&gt; &gt; &gt; root&nbsp;&nbsp;35230&nbsp;&nbsp;0.0&nbsp;&nbsp;0.3&nbsp;&nbsp;5004&nbsp;&nbsp;3256&nbsp;&nbsp;??&nbsp;&nbsp;Ss&nbsp;&nbsp; 12:04AM&nbsp;&nbsp; 0:00.00<br>&gt; &gt; &gt; /usr/local/sbin/radiusd<br>&gt; &gt; &gt; core:rc.d # ps -auxww | grep mysql<br>&gt; &gt; &gt; mysql 75881&nbsp;&nbsp;0.0&nbsp;&nbsp;0.1&nbsp;&nbsp;1732&nbsp;&nbsp;1116&nbsp;&nbsp;p1- I&nbsp;&nbsp;&nbsp;&nbsp;20Sep07&nbsp;&nbsp; 0:00.02 /bin/sh<br>&gt; &gt; &gt; /usr/local/bin/mysqld_safe<br>&gt; &gt; &gt; --defaults-extra-file=/usr/local/var/db/mysql/my.cnf --user=mysql<br>&gt; &gt; &gt; --datadir=/usr/local/var/db/mysql<br>&gt; &gt; &gt;
 --pid-file=/usr/local/var/db/mysql/core.xxx.com.au.pid<br>&gt; &gt; &gt; mysql 75924&nbsp;&nbsp;0.0&nbsp;&nbsp;2.7 49016 28336&nbsp;&nbsp;p1- S&nbsp;&nbsp;&nbsp;&nbsp;20Sep07&nbsp;&nbsp;10:52.77 [mysqld]<br>&gt; &gt; &gt; root&nbsp;&nbsp;35237&nbsp;&nbsp;0.0&nbsp;&nbsp;0.1&nbsp;&nbsp;1544&nbsp;&nbsp; 644&nbsp;&nbsp;p2&nbsp;&nbsp;RL+&nbsp;&nbsp;12:05AM&nbsp;&nbsp; 0:00.00 grep<br>&gt; mysql<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Why I got thos acc errors when starting openser?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thanks<br>&gt; &gt; &gt; SW<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; ----- Original Message ----<br>&gt; &gt; &gt; From: Norman Brandinger &lt;norm@goes.com&gt;<br>&gt; &gt; &gt; To: Live Great &lt;livegreat007@yahoo.com&gt;<br>&gt; &gt; &gt; Cc: FreeRadius users mailing list<br>&gt; &gt; &gt; &lt;freeradius-users@lists.freeradius.org&gt;; users@openser.org<br>&gt; &gt; &gt; Sent: Friday, September 28, 2007 11:11:23
 PM<br>&gt; &gt; &gt; Subject: Re: [OpenSER-Users] Failed to compile openser with freeradius<br>&gt; &gt; &gt; support<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Comment the FREERADIUS=1 in the openser/Makefile<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Make sure that in modules/acc/Makefile ENABLE_RADIUS_ACC=true is not<br>&gt; &gt; &gt; commented<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Regards,<br>&gt; &gt; &gt; Norm<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Live Great wrote:<br>&gt; &gt; &gt; &gt; HI,<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; In FreeBSD 6.2, I got this error when I compiled openser with<br>&gt; &gt; &gt; &gt; freeradius support.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; ../../radius.h:36:32: freeradius-client.h: No such file or directory<br>&gt; &gt; &gt; &gt; acc.c: In function `init_acc_rad':<br>&gt; &gt; &gt; &gt; acc.c:464: warning: assignment makes pointer from integer without<br>&gt; &gt; a cast<br>&gt; &gt; &gt; &gt;
 acc.c:475: error: `DICT_ATTR' undeclared (first use in this<br>&gt; function)<br>&gt; &gt; &gt; &gt; acc.c:475: error: (Each undeclared identifier is reported only once<br>&gt; &gt; &gt; &gt; acc.c:475: error: for each function it appears in.)<br>&gt; &gt; &gt; &gt; acc.c:475: error: `da' undeclared (first use in this function)<br>&gt; &gt; &gt; &gt; acc.c:475: error: `DICT_VALUE' undeclared (first use in this<br>&gt; function)<br>&gt; &gt; &gt; &gt; acc.c:475: error: `dv' undeclared (first use in this function)<br>&gt; &gt; &gt; &gt; acc.c: In function `acc_rad_request':<br>&gt; &gt; &gt; &gt; acc.c:509: error: `VALUE_PAIR' undeclared (first use in this<br>&gt; function)<br>&gt; &gt; &gt; &gt; acc.c:514: error: invalid lvalue in assignment<br>&gt; &gt; &gt; &gt; acc.c:555: error: `OK_RC' undeclared (first use in this function)<br>&gt; &gt; &gt; &gt; gmake[1]: *** [acc.o] Error 1<br>&gt; &gt; &gt; &gt; gmake[1]: Leaving directory<br>&gt; &gt; &gt; &gt;
 `/usr/ports/net/openser/work/openser-1.2.2-tls/modules/acc'<br>&gt; &gt; &gt; &gt; gmake: *** [modules] Error 2<br>&gt; &gt; &gt; &gt; *** Error code 2<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Stop in /usr/ports/net/openser.<br>&gt; &gt; &gt; &gt; *** Error code 1<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Is there any way I can compile openser with freeradius support?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Thanks<br>&gt; &gt; &gt; &gt; SW<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Devel mailing list<br>&gt; &gt; &gt; Devel@openser.org<br>&gt; &gt; &gt; <a target="_blank"
 href="http://openser.org/cgi-bin/mailman/listinfo/devel">http://openser.org/cgi-bin/mailman/listinfo/devel</a><br>&gt; &gt; &gt;&nbsp;&nbsp;<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt;<br><br></div></div><br></div></div></body></html>