i tried change to &#39;h323-conf-id&#39; to &#39;h323-call-origin&#39; in 02_unitest_rad-ANI-auth.xml, rad_auth.conf.xml, however, it still prompt &#39;[ERR] mod_rad_auth.c:428 Unknown attribute: key:<span style="background-color: rgb(255, 255, 0);">h323-conf-id</span>, not found in dictionary&#39;, so where the mod_rad_auth read out the &#39;h323-conf-id&#39;? very very strange, which dictionary it was using...<br>
<br>Regards,<br>Charles<br><br><div class="gmail_quote">2011/8/2 fieldpeak <span dir="ltr">&lt;<a href="mailto:fieldpeak@gmail.com">fieldpeak@gmail.com</a>&gt;</span><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 &#39;unknown attribute&#39;, 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">  &lt;extension name=&quot;unitest_rad-ANI-auth&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^601$&quot;&gt;<br>      &lt;!-- &lt;action application=&quot;log&quot; data=&quot;INFO  Before Auth &quot;/&gt; --&gt;<br>

<br>      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;CALLID=<span style="background-color:rgb(255, 255, 0)">h323-conf-id</span>=${uuid}&quot;/&gt;<br><br></div>      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;USERNAME=1001&quot;/&gt;<br>

      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;PASSWD=1111&quot;/&gt;<div class="im"><br><br>      &lt;action application=&quot;sleep&quot; data=&quot;2000&quot;/&gt;<br>      &lt;action application=&quot;auth_function&quot; data=&quot;in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT&quot;/&gt;<br>

   <br></div>    &lt;/condition&gt;<br>  &lt;/extension&gt;<div class="im"><br><br><br>&lt;configuration name=&quot;rad_auth.conf&quot; description=&quot;radius authentification module&quot;&gt;<br></div>  &lt;settings&gt;<br>
 <br>  &lt;/settings&gt;<br>
<br>  &lt;client&gt;<br>    &lt;param name=&quot;authserver&quot; value=&quot;127.0.0.1:1812:gateway&quot;/&gt;<br>    &lt;param name=&quot;dictionary&quot; value=&quot;/usr/local/etc/radiusclient/dictionary&quot;/&gt;<br>

    &lt;param name=&quot;seqfile&quot; value=&quot;/var/run/radius.seq&quot;/&gt;<br>    &lt;param name=&quot;mapfile&quot; value=&quot;/usr/local/etc/radiusclient/port-id-map&quot;/&gt;<br>    &lt;param name=&quot;default_realm&quot; value=&quot;&quot;/&gt;<br>

    &lt;param name=&quot;radius_timeout&quot; value=&quot;3&quot;/&gt;<br>    &lt;param name=&quot;radius_retries&quot; value=&quot;2&quot;/&gt;<br>    &lt;param name=&quot;radius_deadtime&quot; value=&quot;0&quot;/&gt;<br>

    &lt;param name=&quot;bindaddr&quot; value=&quot;*&quot;/&gt;<br>  &lt;/client&gt;<br><br>  &lt;vsas&gt;<div class="im"><br>   <br>    &lt;param name=&quot;<span style="background-color:rgb(255, 255, 0)">h323-conf-id</span>&quot; id=&quot;24&quot; value=&quot;CALLID&quot; pec=&quot;9&quot; expr=&quot;1&quot; direction=&quot;in&quot;/&gt;<br>

  <br></div>  &lt;/vsas&gt;<br> &lt;/configuration&gt;<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">2011/8/2 Tihomir Culjaga <span dir="ltr">&lt;<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>&gt;</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 &lt;pathname&gt; at the end of the dictionary file you reference in rad_auth.conf.xml.<br>


if the INCLUDE doesn&#39;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">&lt;<a href="mailto:fieldpeak@gmail.com" target="_blank">fieldpeak@gmail.com</a>&gt;</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 &quot;unitest_rad-ANI-auth&quot; as wiki above, however,<br>
when i dialed 601 to trigger the dial plan, the console show errors,<br>
it looks &quot;h323-conf-id&quot; 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 &lt;param<br>
name=&quot;dictionary&quot;<br>
value=&quot;/usr/local/etc/radiusclient/dictionary.all&quot;/&gt;, however i did<br>
not find the file &quot;dictionary.all&quot; 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>
&lt;extension name=&quot;unitest_rad-ANI-auth&quot;&gt;<br>
    &lt;condition field=&quot;destination_number&quot; expression=&quot;^601$&quot;&gt;<br>
      &lt;action application=&quot;log&quot; data=&quot;INFO  Before Auth &quot;/&gt;<br>
<br>
      &lt;action inline=&quot;true&quot; application=&quot;set&quot;<br>
data=&quot;CALLID=h323-conf-id=${uuid}&quot;/&gt;<br>
      &lt;action inline=&quot;true&quot; application=&quot;set&quot;<br>
data=&quot;SERVICENUM=h323-prompt-id=${destination_number}&quot;/&gt;<br>
      &lt;action inline=&quot;true&quot; application=&quot;set&quot;<br>
data=&quot;TRANSACTIONID=h323-ivr-out=transactionID:1234&quot;/&gt;<br>
 &lt;!--      &lt;action inline=&quot;true&quot; application=&quot;set&quot;<br>
data=&quot;CALLINGNUMBER=${caller_id_number}&quot;/&gt; --&gt;<br>
      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;CALLINGNUMBER=38516060333&quot;/&gt;<br>
      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;USERNAME=38516060333&quot;/&gt;<br>
 &lt;!--      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;USERNAME=209354&quot;/&gt; --&gt;<br>
      &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;PASSWD=003282&quot;/&gt;<br>
 &lt;!--      &lt;action inline=&quot;true&quot; application=&quot;set&quot;<br>
data=&quot;DIALED_NUMBER=16094191500&quot;/&gt;  --&gt;<br>
<br>
      &lt;action application=&quot;sleep&quot; data=&quot;2000&quot;/&gt;<br>
      &lt;action application=&quot;auth_function&quot; data=&quot;in ${DIALED_NUMBER},<br>
in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT&quot;/&gt;<br>
<br>
<br>
      &lt;action application=&quot;log&quot; data=&quot;INFO  AUTH_RESULT=${AUTH_RESULT}&quot;/&gt;<br>
      &lt;action application=&quot;log&quot; data=&quot;INFO  billing_model=${billing_model}&quot;/&gt;<br>
      &lt;action application=&quot;log&quot; data=&quot;INFO  credit_amount=${credit_amount}&quot;/&gt;<br>
      &lt;action application=&quot;log&quot; data=&quot;INFO  currency=${currency}&quot;/&gt;<br>
      &lt;action application=&quot;log&quot; data=&quot;INFO  preffered_lang=${preffered_lang}&quot;/&gt;<br>
      &lt;action application=&quot;log&quot; data=&quot;INFO  credit_time=${credit_time}&quot;/&gt;<br>
      &lt;action application=&quot;log&quot; data=&quot;INFO<br>
h323_ivr_duration=${h323_ivr_duration}&quot;/&gt;<br>
      &lt;action application=&quot;log&quot; data=&quot;INFO  return_code=${return_code}&quot;/&gt;<br>
      &lt;!-- &lt;action application=&quot;execute_extension&quot; data=&quot;AUTH XML default&quot;/&gt; --&gt;<br>
    &lt;/condition&gt;<br>
  &lt;/extension&gt;<br>
<br>
 radius_cdr.conf.xml:<br>
 &lt;configuration name=&quot;radius_cdr.conf&quot; description=&quot;RADIUS CDR Configuration&quot;&gt;<br>
<br>
        &lt;settings&gt;<br>
<br>
                &lt;!-- location of the radius dictionary files --&gt;<br>
<br>
                &lt;param name=&quot;dictionary&quot;<br>
value=&quot;/usr/local/freeswitch/conf/radius/dictionary&quot;/&gt;<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>
                &lt;!-- number of retries for each server --&gt;<br>
<br>
                &lt;param name=&quot;radius_retries&quot; value=&quot;3&quot;/&gt;<br>
<br>
                &lt;!-- number of seconds to wait between retries --&gt;<br>
<br>
                &lt;param name=&quot;radius_timeout&quot; value=&quot;5&quot;/&gt;<br>
<br>
                &lt;!-- accounting servers, up to 8 allowed --&gt;<br>
<br>
                &lt;!-- value is &quot;host:port:secret&quot;, port is optional --&gt;<br>
<br>
                &lt;!-- use IP ADDRESSES, not hostnames --&gt;<br>
<br>
                &lt;param name=&quot;acct_server&quot; value=&quot;127.0.0.1:1813:testing123&quot;/&gt;<br>
<br>
<br>
        &lt;/settings&gt;<br>
<br>
&lt;/configuration&gt;<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></blockquote></div><br>