<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=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","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.apple-style-span
{mso-style-name:apple-style-span;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</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-AU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>What operator are you using? I have multi AVPairs and i have :=
on the first one and += on the others working for me.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<FONT face=Arial size=2><STRONG><FONT color=#ff8000><BR>Andrew Paternoster</FONT></STRONG><BR><FONT color=#a0a0a4>Senior System Engineer</FONT></FONT><br><BR>
<TABLE style="WIDTH: 475px" cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="WIDTH: 120px"><FONT color=#818a8f size=2 face=Arial><A title=""
href="http://www.gpk.net.au/"><IMG style="WIDTH: 125px; HEIGHT: 50px"
border=0 hspace=0 alt="" src="cid:logo1af4.jpg"></A></FONT></TD>
<TD style="WIDTH: 11px"><FONT color=#818a8f size=2 face=Arial><A title=""
href="http://www.gpk.net.au"><IMG style="WIDTH: 11px; HEIGHT: 60px"
border=0 hspace=0 alt="" src="cid:spacerecc.jpg" width=11
height=60></A></FONT></TD>
<TD><SPAN class=style1><FONT color=#818a8f size=2 face=Arial>2/94 Abbott
Road, Hallam, VIC 3083</FONT></SPAN><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #818a8f; FONT-SIZE: 9pt; mso-ansi-language: EN-AU; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-AU; mso-bidi-language: AR-SA"><BR><STRONG><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'">Phone:</SPAN></STRONG> <SPAN
style="FONT-FAMILY: 'Arial','sans-serif'">1300 854 223<STRONG>
Fax:</STRONG></SPAN> 1300 854 228<BR></SPAN><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #aa272f; FONT-SIZE: 9pt; mso-ansi-language: EN-AU; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-AU; mso-bidi-language: AR-SA"><STRONG><A
title=""
href="http://www.gpk.net.au/">www.gpk.net.au</A></STRONG></SPAN></TD></TR></TBODY></TABLE>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: black; mso-ansi-language: EN-US"
lang=EN-US></SPAN> <BR><FONT style="BACKGROUND-COLOR: #ffffff" size=2
face=Arial><EM>Did you know that you can now log faults by just sending an
email to </EM></FONT><A href="mailto:support@gpk.net.au"><FONT
style="BACKGROUND-COLOR: #ffffff" color=#808080 size=2
face=Arial><EM><STRONG>support@gpk.net.au</STRONG></EM></FONT></A></P><br>
<DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">The
information contained in or accompanying this e-mail is intended only for the
use of the stated recipient and may contain information that is confidential
and/or privileged. If the reader is not the intended recipient or the agent
thereof, you are hereby notified that any dissemination, distribution or copying
of this e-mail is strictly prohibited and may constitute a breach of confidence
and/or privilege. If you have received this e-mail in error, please notify us
immediately. Any views or opinions presented are those solely of the author and
do not necessarily represent those of GPK Computers Pty Ltd..</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'"><?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: black; FONT-FAMILY: 'Arial','sans-serif'"> </SPAN><SPAN
style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">Warning:
Although the company has taken reasonable precautions to ensure no viruses are
present in this e-mail, the company cannot accept responsibility for any loss or
damage arising from the use of this e-mail or attachments</SPAN><SPAN lang=EN-US
style="COLOR: black; FONT-FAMILY: 'Arial','sans-serif'; mso-ansi-language: EN-US"><o:p></o:p></SPAN></P></DIV><br><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>
freeradius-users-bounces+andrew=gpk.net.au@lists.freeradius.org
[mailto:freeradius-users-bounces+andrew=gpk.net.au@lists.freeradius.org] <b>On
Behalf Of </b>Robert White<br>
<b>Sent:</b> Tuesday, 17 November 2009 1:05 PM<br>
<b>To:</b> FreeRadius users mailing list<br>
<b>Subject:</b> Accessing a second AV Pair<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi,<o:p></o:p></p>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>I have a Radius message which has two AV Pairs and I want to
insert them both in to a database. However, I'm unable to access the
second AVPair. <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Here is the Radius packet....<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<div>
<p class=MsoNormal>rad_recv: Accounting-Request packet from host 10.152.0.7
port 20001, id=87, length=662<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> NAS-IP-Address = 10.152.0.7<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-NAS-Port = "0
7/7/24"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> NAS-Port-Type = Async<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> User-Name =
"99999999"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Called-Station-Id =
"990006"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Calling-Station-Id =
"1002"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Acct-Status-Type = Stop<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Acct-Delay-Time = 0<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Acct-Input-Octets = 0<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Acct-Output-Octets = 0<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Acct-Session-Id =
"000000AA00000039"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Acct-Session-Time = 75<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Acct-Input-Packets = 0<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Acct-Output-Packets = 0<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Service-Type = Login-User<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span class=apple-style-span><span style='background:#FFFF66'>
Quintum-AVPair = "h323-ivr-out=ACCESSCODE:990006"</span></span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-h323-conf-id =
"h323-conf-id=34623032 38616662 32630030 37333300"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><span class=apple-style-span><span style='background:#FFFF66'>
Quintum-AVPair = "h323-incoming-conf-id=34623032
38616662 32630030 37333300"</span></span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-h323-gw-id =
"h323-gw-id=au-syd-test1"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-h323-call-origin =
"h323-call-origin=answer"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-h323-call-type =
"h323-call-type=Telephony"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-h323-setup-time =
"h323-setup-time=01:37:31.685 UTC Tue Nov 17 2009"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-h323-connect-time =
"h323-connect-time=01:37:31.885 UTC Tue Nov 17 2009"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
Quintum-h323-disconnect-time = "h323-disconnect-time=01:38:46.495
UTC Tue Nov 17 2009"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>
Quintum-h323-disconnect-cause = "h323-disconnect-cause=10"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-h323-voice-quality
= "h323-voice-quality=0"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-Trunkid-In =
"0 7/7/24"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> Quintum-Trunkid-Out =
"10.0.20.36"<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>When using the standard dictionary.quintum %{Quintum-AVPair}
= h323-ivr-out=ACCESSCODE:990006. I couldn't read the second AVPair.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>I did some Googling and read <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>"<span class=apple-style-span><span style='font-size:
10.0pt;font-family:"Verdana","sans-serif"'>if it [the preprocess module] founds
Cisco-AVPair attribute like</span></span><o:p></o:p></p>
</div>
<p class=MsoNormal><span class=apple-style-span><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Cisco-AVPair =
"gw-rxd-cdn=ton:0,npi:1,#:XXXXXXXX"</span></span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><br>
<span class=apple-style-span>and there's dictionary attribute gw-rxd-cdn, then
it adds new attribute</span><br>
<span class=apple-style-span>"gw-rxd-cdn" with value
"ton:0,npi:1,#:XXXXXXXX".</span><br>
<span class=apple-style-span>So if you have Cisco-AVPair attributes which you
would like to insert</span><br>
<span class=apple-style-span>into SQL, you need to create them in cisco
dictionary."</span></span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>As Quintum
and Cisco are very similar I tried the same thing and edited the
dictionary.quintum file adding in the following lines:</span><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>ATTRIBUTE
h323-ivr-out
3000 string<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>ATTRIBUTE
h323-incoming-conf-id
3001 string<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>I noted
that there is already a very similar attribute for h323-incoming-conf-id - it
just has the word 'Quintum' prepended to it.<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>However,
after the dictionary edit, Radius failed to load. I got the following error:<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>"Errors
reading dictionary: dict_init:
/usr/local/share/freeradius/dictionary.quintum[53]: dict_init:
/usr/local/share/freeradius/dictionary.quintum[53]:"<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>Am I on the
right track here?<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>Any help
appreciated.<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>Rob<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'><o:p> </o:p></span></p>
</div>
</div>
</div>
</body>
</html>