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