<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>


<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style><font class="Apple-style-span" face="Tahoma" size="4"><span class="Apple-style-span" style="font-size: 10pt;">

Dear Tihomir,</span></font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">I pointed to these lines before in a previous message.&nbsp;Anyway we had already fixed the issue ourselves. It was due to dictionary not having proper values for the attributes. We found the following problems with the information provided on the Wiki.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">1- The default dictionary mentioned as dictionary.all is not present in the mentioned path so we had to change the config to point to exact name of dictionary.</div><div style="font-family: Tahoma; font-size: 10pt; ">2- The default dictionary does not contain these Cisco attributes like "h323-credit-amount", "h323-credit-time" etc. So we had to add these attributes.</div><div style="font-family: Tahoma; font-size: 10pt; ">3- Even after adding the attributes, it does not work because the radiusclient does not recognize the vendor from its vendor id = 9 but it checks another field like "vendor=Cisco". So for this module to work properly, the entries in the dictionary for Cisco should be like this.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div><font class="Apple-style-span" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px;">VENDOR<span class="Apple-tab-span" style="white-space: pre; ">                </span>Cisco<span class="Apple-tab-span" style="white-space: pre; ">                                </span>9</span></font></div><div><div><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">ATTRIBUTE</span><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; "><span class="Apple-tab-span" style="white-space:pre">        </span></span><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">h323-credit-amount</span><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; "><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">101</span><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; "><span class="Apple-tab-span" style="white-space:pre">        </span></span><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">string</span><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; "><span class="Apple-tab-span" style="white-space:pre">        </span></span><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; ">vendor=Cisco</span></div><div><font class="Apple-style-span" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px;">ATTRIBUTE<span class="Apple-tab-span" style="white-space:pre">        </span>h323-credit-time<span class="Apple-tab-span" style="white-space:pre">                                </span>102<span class="Apple-tab-span" style="white-space:pre">        </span>string<span class="Apple-tab-span" style="white-space:pre">        </span>vendor=Cisco</span></font></div><div><font class="Apple-style-span" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px;">ATTRIBUTE<span class="Apple-tab-span" style="white-space: pre; ">        </span>h323-return-code<span class="Apple-tab-span" style="white-space: pre; ">                        </span>103<span class="Apple-tab-span" style="white-space: pre; ">        </span>string<span class="Apple-tab-span" style="white-space: pre; ">        </span>vendor=Cisco</span></font></div></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">I did not test the dictionary you have sent but it might be working because it has vendor name as Cxss. So may I update the Wiki?</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Thank you for all the time I took from you and sorry for inconvenience.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Regards</div><div style="font-family: Tahoma; font-size: 10pt; ">--------</div><div style="font-family: Tahoma; font-size: 10pt; ">Abid Saleem<br><br><hr id="stopSpelling">Date: Sat, 13 Nov 2010 22:38:31 +0100<br>From: tculjaga@gmail.com<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] Radius AAA<br><br><br><br><div class="ecxgmail_quote">On Sat, Nov 13, 2010 at 9:04 AM, Abid Saleem <span dir="ltr">&lt;<a href="mailto:abid_freeswitch@live.com">abid_freeswitch@live.com</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left:1ex">




<div>
<font face="Tahoma" size="4"><span style="font-size:10pt">Dear Tihomir,</span></font><div style="font-family:Tahoma;font-size:10pt"><br></div><div style="font-family:Tahoma;font-size:10pt">I think you did not understand what my problem is. Let me explain.</div>
<div style="font-family:Tahoma;font-size:10pt"><br></div><div><font face="Tahoma" size="4"><span style="font-size:10pt">I know that I can&nbsp;evaluate the response from auth_function and act accordingly (bridge or not bridge the call according to auth result). This part is ok and I can do it because I am getting OK or NOK in AUTH_RESULT. The issue is I need to disconnect the call after scheduled number of seconds returned by radius in h323-credit-time attribute&nbsp;</span></font><font face="Tahoma" size="3"><span style="font-size:13px">whose</span></font><font face="Tahoma" size="4"><span style="font-size:10pt">&nbsp;value in this case is not being populated into credit_time parameter of FS.</span></font></div>
<div><font face="Tahoma" size="3"><span style="font-size:13px"><br></span></font></div></div></blockquote><div>well, you could have pointed the finger on this before :P<br><br><div><br></div><div>2010-11-04 18:09:53.396212 [DEBUG] mod_rad_auth.c:491 sending radius packet ...</div>
<div>2010-11-04 18:09:54.571999 [DEBUG] mod_rad_auth.c:497 RADIUS Authentication OK</div><div>2010-11-04 18:09:54.571999 [DEBUG] mod_rad_auth.c:519 Handle attribute: BILING_MODEL</div><div style="color:rgb(255, 0, 0)"><b>2010-11-04 18:09:54.571999 [DEBUG] mod_rad_auth.c:529 &nbsp; No found out attribute id: 109, pec:9, (BILING_MODEL)</b></div>
<div>2010-11-04 18:09:54.571999 [DEBUG] mod_rad_auth.c:519 Handle attribute: CREDIT_AMOUNT</div><div>2010-11-04 18:09:54.571999 [DEBUG] mod_rad_auth.c:529 &nbsp; No found out attribute id: 101, pec:9, (CREDIT_AMOUNT)</div><br>
the attribute with id:109 and pec:9 is not found in the returning radius message. This can just mean 2 things:<br><br>1. really not present in the returning radius message<br>2. the module doesn't have an appropriate dictionary referencing pec 9 and id 102.<br>
<br>well, here its the dictionary im positive of that... so find attached the one im using. Put this on your server and its gonna work.<br><div></div><br><br>&nbsp;</div><blockquote class="ecxgmail_quote" style="padding-left:1ex">
<div><div><font face="Tahoma" size="3"><span style="font-size:13px"></span></font></div><div><font face="Tahoma" size="3"><span style="font-size:13px">If you still do not understand, lets put it this way that even if I use the mod_rad_auth.conf.xml and&nbsp;</span></font><span style="font-size:13px;font-family:Tahoma">dialplan&nbsp;</span><font face="Tahoma" size="3"><span style="font-size:13px">configuration you sent, still the FS is not able to obtain the value of credit_amount and credit_time although radius response parameters are&nbsp;received&nbsp;by the server.</span></font></div>
</div></blockquote><div><br>as i said before ... check your dictionary.<br><br>&nbsp;</div><blockquote class="ecxgmail_quote" style="padding-left:1ex"><div><div>
<font face="Tahoma" size="3"><span style="font-size:13px"><br></span></font></div><div><font face="Tahoma" size="3"><span style="font-size:13px">Also I have checked in mod_rad_auth.c file that all entries related to credit_amount, billing_model etc are commented and credit_time does not even exist in that file.</span></font></div>
<div><font face="Tahoma" size="3"><span style="font-size:13px"></span></font>&nbsp;</div></div></blockquote><div><br>you are missing the point of this module ... the VSAs are configurable via config file.<br></div></div><br>
<br>
<br>_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org</div>
                                               </body>
</html>