<param name="dictionary" value="/usr/local/etc/radiusclient/dictionary"/><br><div id=":1i0"><br>this is your path to your dictionary ... you can put any path there.<br><br>[ ~]$ cd /usr/local/etc/radiusclient/<br>
[radiusclient]$ ls -l<br>total 100<br>-rw-r--r-- 1 root root 7329 Aug 10 2010 dictionary<br>-rw-r--r-- 1 root root 21152 Apr 17 2010 dictionary.all<br>-rw-r--r-- 1 root root 11557 Mar 14 2010 dictionary.all.working<br>
-rw-r--r-- 1 root root 12388 Aug 10 2010 dictionary.ascend<br>-rw-r--r-- 1 root root 5793 Mar 14 2010 dictionary.cisco<br>-rw-r--r-- 1 root root 1517 Aug 10 2010 dictionary.compat<br>-rw-r--r-- 1 root root 599 Aug 10 2010 dictionary.merit<br>
-rw-r--r-- 1 root root 1117 Mar 11 2010 dictionary.rfc2869<br>-rw-r--r-- 1 root root 2489 Aug 10 2010 dictionary.sip<br>-rw-r--r-- 1 root root 135 Aug 10 2010 issue<br>-rw-r--r-- 1 root root 410 Aug 10 2010 port-id-map<br>
-rw-r--r-- 1 root root 3299 Aug 10 2010 radiusclient.conf<br>-rw------- 1 root root 299 Aug 10 2010 servers<br><br><br><br>you cannot use just cisco dictionary. ... you either include cisco dictionary in the radius client default dictionary or you append the values you need.<br>
<br><br>use attached dictionary ... this one works fine.<br><br></div>T.<br><br><div class="gmail_quote">On Tue, Aug 2, 2011 at 9:50 AM, fieldpeak <span dir="ltr"><<a href="mailto:fieldpeak@gmail.com">fieldpeak@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="color:#5b1094">Hi Tihomir</span>,<br><br>Finally the answer coming, i see the hope, thanks for your reply, :)<br>
<br>As your advise, i only use one attribute(h323-conf-id) in my dialplan, and only one attribute(h323-conf-id) in rad_auth.conf.xml, and using the attached dictionary (from ciso) which contains this attribute, however, it still prompt 'unknown attribute', so i suspected if it was reading /usr/local/etc/radiusclient/dictionary, so i copy the same dictionary to /usr/local/freeswitch/radius/, it did not any help at all... very strange...<br>
<br>Log:<br>2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:318 set default_realm := .<br>2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:318 set radius_timeout := 3.<br>2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:318 set radius_retries := 2.<br>
2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:318 set radius_deadtime := 0.<br>2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:318 set bindaddr := *.<br>2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:371 ... radius: User-Name: 38516060333<br>
2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:380 ... radius: User-Password: 003282<br>2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:396 ... radius: Called-station-Id: 16094191500<br>2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:413 Handle attribute: h323-conf-id<br>
<span style="background-color:rgb(255, 255, 0)">2011-08-02 15:37:26.578217 [ERR] mod_rad_auth.c:428 Unknown attribute: key:h323-conf-id, not found in dictionary</span><br>2011-08-02 15:37:26.578217 [DEBUG] mod_rad_auth.c:538 abort sending radius packet.<br>
2011-08-02 15:37:26.578217 [ERR] mod_rad_auth.c:546 An error occured during RADIUS Authentication(RC=-1)<br>2011-08-02 15:37:26.578217 [ERR] mod_rad_auth.c:702 An error occured during radius authorization.<div class="im">
<br>EXECUTE sofia/internal/<a href="mailto:1001@124.193.106.104" target="_blank">1001@124.193.106.104</a> log(INFO AUTH_RESULT=)<br>
<br><br><br></div><div class="im"> <extension name="unitest_rad-ANI-auth"><br> <condition field="destination_number" expression="^601$"><br> <!-- <action application="log" data="INFO Before Auth "/> --><br>
<br> <action inline="true" application="set" data="CALLID=<span style="background-color:rgb(255, 255, 0)">h323-conf-id</span>=${uuid}"/><br><br></div> <action inline="true" application="set" data="USERNAME=1001"/><br>
<action inline="true" application="set" data="PASSWD=1111"/><div class="im"><br><br> <action application="sleep" data="2000"/><br> <action application="auth_function" data="in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/><br>
<br></div> </condition><br> </extension><div class="im"><br><br><br><configuration name="rad_auth.conf" description="radius authentification module"><br></div> <settings><br>
<br> </settings><br>
<br> <client><br> <param name="authserver" value="127.0.0.1:1812:gateway"/><br> <param name="dictionary" value="/usr/local/etc/radiusclient/dictionary"/><br>
<param name="seqfile" value="/var/run/radius.seq"/><br> <param name="mapfile" value="/usr/local/etc/radiusclient/port-id-map"/><br> <param name="default_realm" value=""/><br>
<param name="radius_timeout" value="3"/><br> <param name="radius_retries" value="2"/><br> <param name="radius_deadtime" value="0"/><br>
<param name="bindaddr" value="*"/><br> </client><br><br> <vsas><div class="im"><br> <br> <param name="<span style="background-color:rgb(255, 255, 0)">h323-conf-id</span>" id="24" value="CALLID" pec="9" expr="1" direction="in"/><br>
<br></div> </vsas><br> </configuration><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">2011/8/2 Tihomir Culjaga <span dir="ltr"><<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi, <br><br>dictionary.all is just the name of a file containing all attributes i needed at that time.<br><br>you can include other dictionaries by putting #INCLUDE <pathname> at the end of the dictionary file you reference in rad_auth.conf.xml.<br>
if the INCLUDE doesn't work, just append dictionary.cisco to your dictionary file... and make your own file.<br><br><br>check inline comments down below...<br><br><br>T.<br><br><br><div class="gmail_quote"><div>
On Sun, Jul 31, 2011 at 10:46 AM, fieldpeak <span dir="ltr"><<a href="mailto:fieldpeak@gmail.com" target="_blank">fieldpeak@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Gurus,<br>
<br>
i met a issue when using<br>
mod_rad_auth(<a href="http://wiki.freeswitch.org/wiki/Mod_rad_auth" target="_blank">http://wiki.freeswitch.org/wiki/Mod_rad_auth</a>) to works<br>
with freeradius server+mysql for AAA, the details is below, Could<br>
anyone give any hints, Thanks in advance.<br>
<br>
i setup a dial plan "unitest_rad-ANI-auth" as wiki above, however,<br>
when i dialed 601 to trigger the dial plan, the console show errors,<br>
it looks "h323-conf-id" is not in the directory, then i tried to add<br>
this attribute to the dictionary, however, it does not help, in the<br>
wiki, it mentioned the rad_auth.conf.xml contains <param<br>
name="dictionary"<br>
value="/usr/local/etc/radiusclient/dictionary.all"/>, however i did<br>
not find the file "dictionary.all" at that directory, so i use<br>
dictionary. BTW, the freeradius server + mysql works well.<br></blockquote></div><div><br>i just appended the information needed into dictionary.all file... (vendor and attribute definition).<br><br> </div><div><div></div>
<div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<br>
console errors:<br>
<br>
EXECUTE sofia/internal/<a href="mailto:1001@124.193.106.104" target="_blank">1001@124.193.106.104</a> auth_function(in , in<br>
38516060333, in 003282, out AUTH_RESULT)<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:301 allocate initial<br>
structure.<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:313 initialzed configuration.<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:318 set authserver<br>
:= 127.0.0.1:1812:gateway.<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:318 set dictionary<br>
:= /usr/local/etc/radiusclient/dictionary.<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:318 set seqfile :=<br>
/var/run/radius.seq.<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:318 set mapfile :=<br>
/usr/local/etc/radiusclient/port-id-map.<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:318 set default_realm := .<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:318 set radius_timeout := 3.<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:318 set radius_retries := 2.<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:318 set radius_deadtime := 0.<br>
2011-07-31 16:23:24.717088 [DEBUG] mod_rad_auth.c:318 set bindaddr := *.<br>
2011-07-31 16:23:24.737004 [DEBUG] mod_rad_auth.c:371 ... radius:<br>
User-Name: 38516060333<br>
2011-07-31 16:23:24.737004 [DEBUG] mod_rad_auth.c:380 ... radius:<br>
User-Password: 003282<br>
2011-07-31 16:23:24.737004 [DEBUG] mod_rad_auth.c:391 ... radius:<br>
Called-station-Id is empty, ignoring...<br>
2011-07-31 16:23:24.737004 [DEBUG] mod_rad_auth.c:413 Handle<br>
attribute: h323-conf-id<br>
2011-07-31 16:23:24.737004 [ERR] mod_rad_auth.c:428 Unknown attribute:<br>
key:h323-conf-id, not found in dictionary<br>
2011-07-31 16:23:24.737004 [DEBUG] mod_rad_auth.c:538 abort sending<br>
radius packet.<br>
2011-07-31 16:23:24.737004 [ERR] mod_rad_auth.c:546 An error occured<br>
during RADIUS Authentication(RC=-1)<br>
2011-07-31 16:23:24.737004 [ERR] mod_rad_auth.c:702 An error occured<br>
during radius authorization.<br>
EXECUTE sofia/internal/<a href="mailto:1001@124.193.106.104" target="_blank">1001@124.193.106.104</a> log(INFO AUTH_RESULT=)<br>
2011-07-31 16:23:24.737004 [INFO] mod_dptools.c:1202 AUTH_RESULT=<br>
EXECUTE sofia/internal/<a href="mailto:1001@124.193.106.104" target="_blank">1001@124.193.106.104</a> log(INFO billing_model=)<br>
2011-07-31 16:23:24.737004 [INFO] mod_dptools.c:1202 billing_model=<br>
EXECUTE sofia/internal/<a href="mailto:1001@124.193.106.104" target="_blank">1001@124.193.106.104</a> log(INFO credit_amount=)<br>
2011-07-31 16:23:24.737004 [INFO] mod_dptools.c:1202 credit_amount=<br>
EXECUTE sofia/internal/<a href="mailto:1001@124.193.106.104" target="_blank">1001@124.193.106.104</a> log(INFO currency=)<br>
2011-07-31 16:23:24.737004 [INFO] mod_dptools.c:1202 currency=<br>
EXECUTE sofia/internal/<a href="mailto:1001@124.193.106.104" target="_blank">1001@124.193.106.104</a> log(INFO preffered_lang=)<br>
2011-07-31 16:23:24.737004 [INFO] mod_dptools.c:1202 preffered_lang=<br>
<br>
added below in the dictionary(/usr/local/etc/radiusclient/dictionary):<br>
<br>
ATTRIBUTE h323-conf-id 1008 string<br></blockquote></div></div><div><br>you need the vendor definition as well<br> </div><div><div></div><div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<br>
<br>
dial plan:<br>
<extension name="unitest_rad-ANI-auth"><br>
<condition field="destination_number" expression="^601$"><br>
<action application="log" data="INFO Before Auth "/><br>
<br>
<action inline="true" application="set"<br>
data="CALLID=h323-conf-id=${uuid}"/><br>
<action inline="true" application="set"<br>
data="SERVICENUM=h323-prompt-id=${destination_number}"/><br>
<action inline="true" application="set"<br>
data="TRANSACTIONID=h323-ivr-out=transactionID:1234"/><br>
<!-- <action inline="true" application="set"<br>
data="CALLINGNUMBER=${caller_id_number}"/> --><br>
<action inline="true" application="set" data="CALLINGNUMBER=38516060333"/><br>
<action inline="true" application="set" data="USERNAME=38516060333"/><br>
<!-- <action inline="true" application="set" data="USERNAME=209354"/> --><br>
<action inline="true" application="set" data="PASSWD=003282"/><br>
<!-- <action inline="true" application="set"<br>
data="DIALED_NUMBER=16094191500"/> --><br>
<br>
<action application="sleep" data="2000"/><br>
<action application="auth_function" data="in ${DIALED_NUMBER},<br>
in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/><br>
<br>
<br>
<action application="log" data="INFO AUTH_RESULT=${AUTH_RESULT}"/><br>
<action application="log" data="INFO billing_model=${billing_model}"/><br>
<action application="log" data="INFO credit_amount=${credit_amount}"/><br>
<action application="log" data="INFO currency=${currency}"/><br>
<action application="log" data="INFO preffered_lang=${preffered_lang}"/><br>
<action application="log" data="INFO credit_time=${credit_time}"/><br>
<action application="log" data="INFO<br>
h323_ivr_duration=${h323_ivr_duration}"/><br>
<action application="log" data="INFO return_code=${return_code}"/><br>
<!-- <action application="execute_extension" data="AUTH XML default"/> --><br>
</condition><br>
</extension><br>
<br>
radius_cdr.conf.xml:<br>
<configuration name="radius_cdr.conf" description="RADIUS CDR Configuration"><br>
<br>
<settings><br>
<br>
<!-- location of the radius dictionary files --><br>
<br>
<param name="dictionary"<br>
value="/usr/local/freeswitch/conf/radius/dictionary"/><br>
<br></blockquote></div></div><div><br>your dictionary file need to contain all the attributes you are trying to use or to include other dictionaries (In this case dictionary.cisco) from the dictionary file you are referencing here.<br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div>
<!-- number of retries for each server --><br>
<br>
<param name="radius_retries" value="3"/><br>
<br>
<!-- number of seconds to wait between retries --><br>
<br>
<param name="radius_timeout" value="5"/><br>
<br>
<!-- accounting servers, up to 8 allowed --><br>
<br>
<!-- value is "host:port:secret", port is optional --><br>
<br>
<!-- use IP ADDRESSES, not hostnames --><br>
<br>
<param name="acct_server" value="127.0.0.1:1813:testing123"/><br>
<br>
<br>
</settings><br>
<br>
</configuration><br>
<br>
the FS version:<br>
FreeSWITCH Version 1.0.head (git-492bc6b 2011-07-23 12-53-04 -0400)<br>
<br>
Regards,<br>
Charles<br>
<br></div>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<div><br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
</div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>
<br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>