<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Dears,<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>I am using freeradius with wichorus ASN-GW (WiMAX), I have problem with Calling-Station-Id value<o:p></o:p></p><p class=MsoNormal> The ASN-GW sent Calling-Station-Id in binary format like this "\000&\031\001\000K"<o:p></o:p></p><p class=MsoNormal> I checked the debug radius –X result and I found the AAA got the correct value for Calling-Station-Id but when insert it to database it’s will be empty value like <o:p></o:p></p><p class=MsoNormal> Calling-Station-Id=’’ (Empty Value)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> What’s the problem? And how can insert the Calling-Station-Id value to radacct table?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> The SQL statement for accounting_start_query for example is:<o:p></o:p></p><p class=MsoNormal> accounting_start_query = "INSERT into ${acct_table1} (AccStatusType, AcctSessionId, AcctUniqueId, UserName, \<o:p></o:p></p><p class=MsoNormal> NASIPAddress, NASPortId, NASPortType, WiMAXGMTTimezoneoffset, WiMAXBSId, EventTimestamp, CallingStationId, \<o:p></o:p></p><p class=MsoNormal> AcctStartTime, AcctStopTime, AcctSessionTime, AcctInputOctets, \<o:p></o:p></p><p class=MsoNormal> AcctOutputOctets, AcctTerminateCause, FramedIPAddress ) \<o:p></o:p></p><p class=MsoNormal> select '%{Acct-Status-Type}', '%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', \<o:p></o:p></p><p class=MsoNormal> '%{SQL-User-Name}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', '%{WiMAX-GMT-Timezone-offset}', \<o:p></o:p></p><p class=MsoNormal> '%{WiMAX-BS-Id}', '%{Event-Timestamp}', '%{Calling-Station-Id}', '%S', '0', '0', '0', '0','', \<o:p></o:p></p><p class=MsoNormal> '%{Framed-IP-Address}' from dual where not exists (select * from ${acct_table1} where UserName='%{SQL-User-Name}' and AcctSessionId='%{Acct-Session-Id}' \<o:p></o:p></p><p class=MsoNormal> and AcctStartTime='%S')"<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal>Moayad<o:p></o:p></p></div></body></html>