<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;">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.<br>But failed another issue with DIAMETER. <br>The configuration I used in openser.cfg is:<br>modparam("acc", "radius_extra",&nbsp;&nbsp;"Src-Leg=$avp(s:source_leg); Dst-Leg=$avp(s:destination_leg)")<br><br>The error is:<br>acc:init_mytcp(): error connecting to the DIAMETER client<br>ERROR:acc:child_init:: TCP connection not established<br>ERROR:init_mod_child: Error while initializing module acc, rank -5<br>init_unixsock_server: Error in init_child<br>ERROR: Could not initialize unix domain socket server<br><br>In the log, I can see Openser is trying to connect
 127.0.0:3000.<br><br>Thanks<br>Sam<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Live Great &lt;livegreat007@yahoo.com&gt;<br>To: Norman Brandinger &lt;norm@goes.com&gt;<br>Cc: users@openser.org<br>Sent: Wednesday, October 3, 2007 9:34:49 AM<br>Subject: Re: can't get code for the src-leg attribute<br><br><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 Norman,<br><br>Thanks for the reply.<br>According to your suggestion, I have added the following lines in raddb/dicitionary:<br>ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp; Src-Leg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1075&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer<br>
ATTRIBUTE&nbsp;&nbsp;&nbsp; Dst-Leg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1076&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer<br>
<br>change in radiusclient-ng/dictionary:<br>ATTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp; Src-Leg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1075&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer<br>ATTRIBUTE&nbsp;&nbsp;&nbsp; Dst-Leg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1076&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; integer<br><br>change in openser/openser.cfg:<br>#modparam("acc", "multi_leg_info", "src_leg=$avp(i:901);dst_leg=$avp(i:902)")<br>modparam("acc", "multi_leg_info", "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&nbsp; and i:902 means, so I simply change the first letter to upper case and change "_" to "-".<br><br>Restarted radiusd, and try to start openser then found the following error in the /var/log/messages file:<br>ERROR:acc:extra2int: &lt;Src-Leg&gt; is not a number<br><br>When I started radiusd, there are info messages written to /var/log/radiusd.log
 file:<br>Wed Oct&nbsp; 3 09:28:45 2007 : Info: Using deprecated naslist file.&nbsp; Support for this will go away soon.<br>Wed Oct&nbsp; 3 09:28:45 2007 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?<br>Wed Oct&nbsp; 3 09:28:45 2007 : Info: Ready to process requests.<br><br>Thanks<br>Sam<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: Wednesday, October 3, 2007 3:26:40 AM<br>Subject: Re: can't get code for the Failed attribute<br><br><div>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",&nbsp;&nbsp;"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>&gt; Hi,<br>&gt;<br>&gt; In your example, do you meant openser will trainsform Src-Leg to<br>&gt; src_leg and Dst-Leg to dst_leg?<br>&gt; After I followed your suggestion and changed the definition to,<br>&gt; ATTRIBUTE Src-Leg 1075 string<br>&gt; ATTRIBUTE Dst-Leg 1076 string<br>&gt;<br>&gt; I get an error:<br>&gt; ERROR: acc: can't get code for the src_leg attribute<br>&gt;<br>&gt; I have a feeling that it is case sensitive, and openser is looking for<br>&gt; src_leg instead Src-Leg.<br>&gt;<br>&gt; Thanks<br>&gt; Sam.<br>&gt;<br>&gt;<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:42:15 PM<br>&gt; Subject: Re: can't get code for the Failed attribute<br>&gt;<br>&gt;
 Hello Sam,<br>&gt;<br>&gt; The definition you used:<br>&gt;<br>&gt; ATTRIBUTE src_leg 0 string<br>&gt;<br>&gt; Probably isn't valid because "0" is more than likely already being<br>&gt; used.&nbsp;&nbsp;Notice that the various ATTRIBUTE numbers are all unique and just<br>&gt; increment.&nbsp;&nbsp;So use the next higher number that is available.&nbsp;&nbsp;If the<br>&gt; last ATTRIBUTE was 240 then your definition might look like:<br>&gt;<br>&gt; ATTRIBUTE src_leg 241 string<br>&gt;<br>&gt; You might also want to consider the general naming convention that is<br>&gt; used.&nbsp;&nbsp;The above example would then look as follows:<br>&gt;<br>&gt; ATTRIBUTE Src-Leg 241 string<br>&gt; Note, when you get around to inserting this data into a database, the<br>&gt; column name will probably not be allowed to have a dash (unless the<br>&gt; column name is quoted).<br>&gt;<br>&gt; Regards,<br>&gt; Norm<br>&gt;<br>&gt;<br>&gt; Live Great wrote:<br>&gt; &gt; It
 looks like it doesn't look up the dictionary files in<br>&gt; &gt; /usr/local/share/freeradius/ directory.<br>&gt; &gt; But src_leg and dst_leg are not defined in the share directory.<br>&gt; &gt;<br>&gt; &gt; Sam.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ----- Original Message ----<br>&gt; &gt; From: Live Great &lt;livegreat007@yahoo.com&gt;<br>&gt; &gt; To: Norman Brandinger &lt;norm@goes.com&gt;<br>&gt; &gt; Cc: users@openser.org<br>&gt; &gt; Sent: Tuesday, October 2, 2007 10:17:47 AM<br>&gt; &gt; Subject: Re: can't get code for the Failed attribute<br>&gt; &gt;<br>&gt; &gt; Hi Norman,<br>&gt; &gt;<br>&gt; &gt; Thank you for the reply.<br>&gt; &gt; With the definition of "ATTRIBUTE src_leg 0 string", I got an error<br>&gt; &gt; "src_leg is not a number".<br>&gt; &gt; After changed it to the following definition,<br>&gt; &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; &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; &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; &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; &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; &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; &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; &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; &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; &gt; VALUE Service-Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 Sip-Session&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15<br>&gt; &gt;<br>&gt; &gt; I still got this error:<br>&gt; &gt; ERROR:acc:extra2int: &lt;src_leg&gt; is not a number<br>&gt; &gt;<br>&gt; &gt; Thanks<br>&gt; &gt; Sam<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: users@openser.org<br>&gt; &gt; Sent: Tuesday, October 2, 2007 9:43:41 AM<br>&gt; &gt; Subject: Re: can't get code for the Failed attribute<br>&gt; &gt;<br>&gt; &gt; Hi Sam,<br>&gt; &gt;<br>&gt; &gt; In /usr/local/share/freeradius/dictionary.rfc2866 there exists the<br>&gt; &gt; following entry:<br>&gt; &gt;<br>&gt; &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; &gt;<br>&gt; &gt; I'm not an expert in this area, but it appears that "Failed" is sort of<br>&gt; &gt; predefined.&nbsp;&nbsp;You probably should NOT use "Failed", instead create a<br>&gt; &gt; unique attribute such as "failed-reason".&nbsp;&nbsp;This is of course assuming<br>&gt; &gt; the rest of your definitions are good.<br>&gt; &gt;<br>&gt; &gt; Please do not cross-post configuration questions of this type to the<br>&gt; &gt; developers mailing list.<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; &gt; Norm<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Live Great wrote:<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; After added the following Attributes in the radiusclient-ng/dictionary<br>&gt; &gt; &gt; file:<br>&gt;
 &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; &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; &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; &gt;<br>&gt; &gt; &gt; I got the following error:<br>&gt; &gt; &gt; ERROR: acc: can't get code for the Failed attribute value<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; How to define a proper attribute in the dictionary file?<br>&gt; &gt; &gt; Thanks<br>&gt; &gt; &gt; Sam<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: devel@openser.org<br>&gt; &gt; &gt; Sent: Monday, October 1, 2007 9:01:54 PM<br>&gt; &gt; &gt; Subject: Re: [OpenSER-Devel] can't get code for the Sip-Response-Code<br>&gt; &gt; &gt; attribute<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Good Morning,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; You need to make sure the dictionary settings are correct and exactly<br>&gt; &gt; &gt; match what you have specified in OpenSER.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; The dictionaries are specified in radiusclient-ng and in radiusd (and<br>&gt; &gt; &gt; mediaproxy if you use it)<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; The error is telling you that "Sip-Response-Code" cannot be found<br>&gt; in any<br>&gt; &gt; &gt; of the dictionaries you have specified.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Regards,<br>&gt; &gt; &gt; Norm<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; I still can't this work, that's why I posted in the development<br>&gt; forum.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; I have installed openser with *_ACC=ture uncommented in the<br>&gt; &gt; acc/Makfile..<br>&gt; &gt; &gt; &gt; But I can't start openser now.<br>&gt; &gt; &gt; &gt; Here is the error when I executed /usr/local/etc/rc.d/openser start:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; core:rc.d # ./openser start<br>&gt; &gt; &gt; &gt; Command Monit to start OpenSER...<br>&gt; &gt; &gt; &gt; 'openser' start: /usr/local/etc/rc.d/openser<br>&gt; &gt; &gt; &gt; 'openser' failed to start<br>&gt; &gt; &gt; &gt; Starting Open SIP Router:<br>&gt; &gt; &gt; &gt; Listening on<br>&gt; &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; &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; &gt; Aliases:<br>&gt; &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; &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; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;udp: localhost:5060<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; In /var/log/messages:<br>&gt; &gt; &gt; &gt; ERROR: acc: can't get code for the Sip-Response-Code attribute<br>&gt; &gt; &gt; &gt; ERROR:acc:mod_init: failed to init radius<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; core:rc.d # ps -auxww | grep openser<br>&gt; &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; &gt; openser<br>&gt; &gt;
 &gt; &gt; core:rc.d # ps -auxww | grep radius<br>&gt; &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; &gt; /usr/local/sbin/radiusd<br>&gt; &gt; &gt; &gt; core:rc.d # ps -auxww | grep mysql<br>&gt; &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<br>&gt; /bin/sh<br>&gt; &gt; &gt; &gt; /usr/local/bin/mysqld_safe<br>&gt; &gt; &gt; &gt; --defaults-extra-file=/usr/local/var/db/mysql/my.cnf --user=mysql<br>&gt; &gt; &gt; &gt; --datadir=/usr/local/var/db/mysql<br>&gt; &gt; &gt; &gt; --pid-file=/usr/local/var/db/mysql/core.xxx.com.au.pid<br>&gt; &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<br>&gt; [mysqld]<br>&gt; &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; &gt; mysql<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Why I got thos acc errors when starting openser?<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; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; ----- Original Message ----<br>&gt; &gt; &gt; &gt; From: Norman Brandinger &lt;norm@goes.com&gt;<br>&gt; &gt; &gt; &gt; To: Live Great &lt;livegreat007@yahoo.com&gt;<br>&gt; &gt; &gt; &gt; Cc: FreeRadius users mailing list<br>&gt; &gt; &gt; &gt; &lt;freeradius-users@lists.freeradius.org&gt;; users@openser.org<br>&gt; &gt; &gt; &gt; Sent: Friday, September 28, 2007 11:11:23 PM<br>&gt; &gt; &gt; &gt; Subject: Re: [OpenSER-Users] Failed to compile openser with<br>&gt; freeradius<br>&gt; &gt; &gt; &gt; support<br>&gt; &gt;
 &gt; &gt;<br>&gt; &gt; &gt; &gt; Comment the FREERADIUS=1 in the openser/Makefile<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Make sure that in modules/acc/Makefile ENABLE_RADIUS_ACC=true is not<br>&gt; &gt; &gt; &gt; commented<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Regards,<br>&gt; &gt; &gt; &gt; Norm<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Live Great wrote:<br>&gt; &gt; &gt; &gt; &gt; HI,<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; In FreeBSD 6.2, I got this error when I compiled openser with<br>&gt; &gt; &gt; &gt; &gt; freeradius support.<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; ../../radius.h:36:32: freeradius-client.h: No such file or<br>&gt; directory<br>&gt; &gt; &gt; &gt; &gt; acc..c: In function `init_acc_rad':<br>&gt; &gt; &gt; &gt; &gt; acc.c:464: warning: assignment makes pointer from integer without<br>&gt; &gt; &gt; a cast<br>&gt; &gt; &gt; &gt; &gt; acc.c:475: error:
 `DICT_ATTR' undeclared (first use in this<br>&gt; &gt; function)<br>&gt; &gt; &gt; &gt; &gt; acc.c:475: error: (Each undeclared identifier is reported only<br>&gt; once<br>&gt; &gt; &gt; &gt; &gt; acc.c:475: error: for each function it appears in.)<br>&gt; &gt; &gt; &gt; &gt; acc.c:475: error: `da' undeclared (first use in this function)<br>&gt; &gt; &gt; &gt; &gt; acc.c:475: error: `DICT_VALUE' undeclared (first use in this<br>&gt; &gt; function)<br>&gt; &gt; &gt; &gt; &gt; acc.c:475: error: `dv' undeclared (first use in this function)<br>&gt; &gt; &gt; &gt; &gt; acc.c: In function `acc_rad_request':<br>&gt; &gt; &gt; &gt; &gt; acc.c:509: error: `VALUE_PAIR' undeclared (first use in this<br>&gt; &gt; function)<br>&gt; &gt; &gt; &gt; &gt; acc.c:514: error: invalid lvalue in assignment<br>&gt; &gt; &gt; &gt; &gt; acc.c:555: error: `OK_RC' undeclared (first use in this function)<br>&gt; &gt; &gt; &gt; &gt; gmake[1]: *** [acc.o] Error 1<br>&gt; &gt; &gt;
 &gt; &gt; gmake[1]: Leaving directory<br>&gt; &gt; &gt; &gt; &gt; `/usr/ports/net/openser/work/openser-1.2..2-tls/modules/acc'<br>&gt; &gt; &gt; &gt; &gt; gmake: *** [modules] Error 2<br>&gt; &gt; &gt; &gt; &gt; *** Error code 2<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Stop in /usr/ports/net/openser.<br>&gt; &gt; &gt; &gt; &gt; *** Error code 1<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Is there any way I can compile openser with freeradius support?<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt; Thanks<br>&gt; &gt; &gt; &gt; &gt; SW<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; Devel mailing
 list<br>&gt; &gt; &gt; &gt; Devel@openser.org<br>&gt; &gt; &gt; &gt; <a rel="nofollow" target="_blank" href="http://openser.org/cgi-bin/mailman/listinfo/devel">http://openser.org/cgi-bin/mailman/listinfo/devel</a><br>&gt; &gt; &gt; &gt;&nbsp;&nbsp;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br><br></div></div><br></div></div></div><br></div></div></body></html>