<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ramdyne (Posts about radius)</title><link>https://www.ramdyne.nl/</link><description></description><atom:link href="https://www.ramdyne.nl/categories/radius.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sat, 07 Mar 2026 00:09:00 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Voice quality reporting for Cisco VoIP using FreeRadius</title><link>https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/</link><dc:creator>ramdyne</dc:creator><description>&lt;p&gt;This is an, I hope, comprehensive writeup on how to configure a Cisco gateway to send RADIUS Accounting details to a RADIUS server running FreeRadius. Among other things, these RADIUS packets contain &amp;lt;a href="&lt;a class="reference external" href="http://www.cisco.com/en/US/docs/ios/voice/cdr/developer/guide/cdrdefs.html#wp1011077"&gt;http://www.cisco.com/en/US/docs/ios/voice/cdr/developer/guide/cdrdefs.html#wp1011077&lt;/a&gt;"&amp;gt;useful information about the quality of the audio&amp;lt;/a&amp;gt; as perceived by the calling and called parties of the call.&lt;/p&gt;
&lt;p&gt;First we have to configure the Cisco hardware to send the RADIUS packets. I'm using a Cisco AS5350XM configured to send only RADIUS accounting details at the end of the call. Note that although the configuration suggests as much, you're not required to use H.323, SIP will also work just as well.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-1" name="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-1" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_3f6dc1b9c4534cc0bf71c5633d452168-1"&gt;&lt;/a&gt;aaa new-model
&lt;a id="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-2" name="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-2" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_3f6dc1b9c4534cc0bf71c5633d452168-2"&gt;&lt;/a&gt;aaa group server radius voip-accounting
&lt;a id="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-3" name="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-3" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_3f6dc1b9c4534cc0bf71c5633d452168-3"&gt;&lt;/a&gt; server [ip address] auth-port 1812 acct-port 1813
&lt;a id="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-4" name="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-4" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_3f6dc1b9c4534cc0bf71c5633d452168-4"&gt;&lt;/a&gt; ip radius source-interface GigabitEthernet0/0
&lt;a id="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-5" name="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-5" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_3f6dc1b9c4534cc0bf71c5633d452168-5"&gt;&lt;/a&gt;aaa accounting connection h323 stop-only group voip-accounting
&lt;a id="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-6" name="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-6" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_3f6dc1b9c4534cc0bf71c5633d452168-6"&gt;&lt;/a&gt;radius-server host [ip address] auth-port 1812 acct-port 1813 key 7 [secret]
&lt;a id="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-7" name="rest_code_3f6dc1b9c4534cc0bf71c5633d452168-7" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_3f6dc1b9c4534cc0bf71c5633d452168-7"&gt;&lt;/a&gt;radius-server vsa send accounting
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Note how I'm telling it basically the same thing twice. Apparently this is really necessary, haven't had the time to properly test. This was the easy part.&lt;/p&gt;
&lt;p&gt;Setting "aaa new-model" is, as far as I know, required but it will also mess up the way logging in to your Cisco equipment works. Setting this will mean that you will need a username + password combination to log in and the enable password, instead of just a password and the enable password.&lt;/p&gt;
&lt;p&gt;Now make sure FreeRADIUS is up and running on a server reachable by the Cisco hardware. Edit /etc/freeradius/radiusd and make sure that the "with_cisco_vsa_hack" is set to yes:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_bd1bcbad92c8440bbae01ee46ca39276-1" name="rest_code_bd1bcbad92c8440bbae01ee46ca39276-1" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_bd1bcbad92c8440bbae01ee46ca39276-1"&gt;&lt;/a&gt;with_cisco_vsa_hack = yes
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Edit /etc/freeradius/dictionary so that the Cisco dictionary is NOT specifically loaded&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_2ba23eb198d441b3af1b913374ec2e5a-1" name="rest_code_2ba23eb198d441b3af1b913374ec2e5a-1" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_2ba23eb198d441b3af1b913374ec2e5a-1"&gt;&lt;/a&gt;$INCLUDE        /usr/share/freeradius/dictionary
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Add the following to the dictionary file to be able to use the values the Cisco equipment is sending you (there's lots more information in the RADIUS packets, this is just what I needed):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-1" name="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-1" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-1"&gt;&lt;/a&gt;ATTRIBUTE       coder-type-rate         118     string  Cisco
&lt;a id="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-2" name="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-2" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-2"&gt;&lt;/a&gt;ATTRIBUTE       hiwater-playout-delay   119     string  Cisco
&lt;a id="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-3" name="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-3" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-3"&gt;&lt;/a&gt;ATTRIBUTE       lowater-playout-delay   120     string  Cisco
&lt;a id="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-4" name="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-4" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-4"&gt;&lt;/a&gt;ATTRIBUTE       round-trip-delay        121     string  Cisco
&lt;a id="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-5" name="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-5" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-5"&gt;&lt;/a&gt;ATTRIBUTE       late-packets            122     string  Cisco
&lt;a id="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-6" name="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-6" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-6"&gt;&lt;/a&gt;ATTRIBUTE       lost-packets            123     string  Cisco
&lt;a id="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-7" name="rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-7" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_6fdb9965eb0b45e0a4b00be9af3badd7-7"&gt;&lt;/a&gt;ATTRIBUTE       early-packets           124     string  Cisco
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;I had to make sure the numbers didn't overlap with the existing values already in the Cisco dictionary. This is kinda important, you don't want to end up with the wrong data in the wrong column. Swapping source and destination numbers is totally possible if you're not careful.&lt;/p&gt;
&lt;p&gt;Now it's time to insert a record in the database. For some reason my colleague who setup the radius server inserted the query into /etc/freeradius/sql/mysql/dialup.conf (check the comments). There might be better places. If you only want to save the end of call records, make sure you have no other accounting queries active in the queries file:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code text"&gt;&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-1" name="rest_code_a31cf9931def4cea91c7429c02798145-1" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-1"&gt;&lt;/a&gt;accounting_stop_query = "INSERT INTO ${acct_table}
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-2" name="rest_code_a31cf9931def4cea91c7429c02798145-2" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-2"&gt;&lt;/a&gt;(RadAcctId,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-3" name="rest_code_a31cf9931def4cea91c7429c02798145-3" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-3"&gt;&lt;/a&gt; AcctSessionId,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-4" name="rest_code_a31cf9931def4cea91c7429c02798145-4" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-4"&gt;&lt;/a&gt; AcctUniqueId,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-5" name="rest_code_a31cf9931def4cea91c7429c02798145-5" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-5"&gt;&lt;/a&gt; UserName,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-6" name="rest_code_a31cf9931def4cea91c7429c02798145-6" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-6"&gt;&lt;/a&gt; Realm,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-7" name="rest_code_a31cf9931def4cea91c7429c02798145-7" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-7"&gt;&lt;/a&gt; NASIPAddress,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-8" name="rest_code_a31cf9931def4cea91c7429c02798145-8" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-8"&gt;&lt;/a&gt; CiscoNASPort,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-9" name="rest_code_a31cf9931def4cea91c7429c02798145-9" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-9"&gt;&lt;/a&gt; NASPortId,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-10" name="rest_code_a31cf9931def4cea91c7429c02798145-10" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-10"&gt;&lt;/a&gt; NASPortType,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-11" name="rest_code_a31cf9931def4cea91c7429c02798145-11" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-11"&gt;&lt;/a&gt; AcctStartTime,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-12" name="rest_code_a31cf9931def4cea91c7429c02798145-12" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-12"&gt;&lt;/a&gt; AcctStopTime,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-13" name="rest_code_a31cf9931def4cea91c7429c02798145-13" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-13"&gt;&lt;/a&gt; AcctSessionTime,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-14" name="rest_code_a31cf9931def4cea91c7429c02798145-14" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-14"&gt;&lt;/a&gt; AcctAuthentic,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-15" name="rest_code_a31cf9931def4cea91c7429c02798145-15" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-15"&gt;&lt;/a&gt; ConnectInfo_start,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-16" name="rest_code_a31cf9931def4cea91c7429c02798145-16" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-16"&gt;&lt;/a&gt; ConnectInfo_stop,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-17" name="rest_code_a31cf9931def4cea91c7429c02798145-17" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-17"&gt;&lt;/a&gt; AcctInputOctets,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-18" name="rest_code_a31cf9931def4cea91c7429c02798145-18" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-18"&gt;&lt;/a&gt; AcctOutputOctets,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-19" name="rest_code_a31cf9931def4cea91c7429c02798145-19" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-19"&gt;&lt;/a&gt; CalledStationId,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-20" name="rest_code_a31cf9931def4cea91c7429c02798145-20" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-20"&gt;&lt;/a&gt; CallingStationId,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-21" name="rest_code_a31cf9931def4cea91c7429c02798145-21" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-21"&gt;&lt;/a&gt; AcctTerminateCause,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-22" name="rest_code_a31cf9931def4cea91c7429c02798145-22" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-22"&gt;&lt;/a&gt; ServiceType,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-23" name="rest_code_a31cf9931def4cea91c7429c02798145-23" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-23"&gt;&lt;/a&gt; FramedProtocol,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-24" name="rest_code_a31cf9931def4cea91c7429c02798145-24" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-24"&gt;&lt;/a&gt; FramedIPAddress,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-25" name="rest_code_a31cf9931def4cea91c7429c02798145-25" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-25"&gt;&lt;/a&gt; AcctStartDelay,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-26" name="rest_code_a31cf9931def4cea91c7429c02798145-26" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-26"&gt;&lt;/a&gt; AcctStopDelay,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-27" name="rest_code_a31cf9931def4cea91c7429c02798145-27" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-27"&gt;&lt;/a&gt; H323GWId,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-28" name="rest_code_a31cf9931def4cea91c7429c02798145-28" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-28"&gt;&lt;/a&gt; H323CallOrigin,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-29" name="rest_code_a31cf9931def4cea91c7429c02798145-29" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-29"&gt;&lt;/a&gt; H323CallType,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-30" name="rest_code_a31cf9931def4cea91c7429c02798145-30" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-30"&gt;&lt;/a&gt; H323Setuptime,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-31" name="rest_code_a31cf9931def4cea91c7429c02798145-31" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-31"&gt;&lt;/a&gt; H323ConnectTime,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-32" name="rest_code_a31cf9931def4cea91c7429c02798145-32" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-32"&gt;&lt;/a&gt; H323DisconnectTime,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-33" name="rest_code_a31cf9931def4cea91c7429c02798145-33" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-33"&gt;&lt;/a&gt; H323DisconnectCause,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-34" name="rest_code_a31cf9931def4cea91c7429c02798145-34" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-34"&gt;&lt;/a&gt; H323RemoteAddress,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-35" name="rest_code_a31cf9931def4cea91c7429c02798145-35" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-35"&gt;&lt;/a&gt; H323VoiceQuality,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-36" name="rest_code_a31cf9931def4cea91c7429c02798145-36" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-36"&gt;&lt;/a&gt; H323ConfId,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-37" name="rest_code_a31cf9931def4cea91c7429c02798145-37" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-37"&gt;&lt;/a&gt; Timestamp,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-38" name="rest_code_a31cf9931def4cea91c7429c02798145-38" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-38"&gt;&lt;/a&gt; codec,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-39" name="rest_code_a31cf9931def4cea91c7429c02798145-39" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-39"&gt;&lt;/a&gt; hiwater,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-40" name="rest_code_a31cf9931def4cea91c7429c02798145-40" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-40"&gt;&lt;/a&gt; lowater,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-41" name="rest_code_a31cf9931def4cea91c7429c02798145-41" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-41"&gt;&lt;/a&gt; roundtrip,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-42" name="rest_code_a31cf9931def4cea91c7429c02798145-42" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-42"&gt;&lt;/a&gt; plate,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-43" name="rest_code_a31cf9931def4cea91c7429c02798145-43" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-43"&gt;&lt;/a&gt; plost,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-44" name="rest_code_a31cf9931def4cea91c7429c02798145-44" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-44"&gt;&lt;/a&gt; pearly,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-45" name="rest_code_a31cf9931def4cea91c7429c02798145-45" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-45"&gt;&lt;/a&gt; DestinationId )
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-46" name="rest_code_a31cf9931def4cea91c7429c02798145-46" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-46"&gt;&lt;/a&gt;VALUES (
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-47" name="rest_code_a31cf9931def4cea91c7429c02798145-47" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-47"&gt;&lt;/a&gt; '',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-48" name="rest_code_a31cf9931def4cea91c7429c02798145-48" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-48"&gt;&lt;/a&gt; '%{Acct-Session-Id}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-49" name="rest_code_a31cf9931def4cea91c7429c02798145-49" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-49"&gt;&lt;/a&gt; '%{Acct-Unique-Session-Id}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-50" name="rest_code_a31cf9931def4cea91c7429c02798145-50" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-50"&gt;&lt;/a&gt; '%{SQL-User-Name}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-51" name="rest_code_a31cf9931def4cea91c7429c02798145-51" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-51"&gt;&lt;/a&gt; '%{Realm}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-52" name="rest_code_a31cf9931def4cea91c7429c02798145-52" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-52"&gt;&lt;/a&gt; '%{NAS-IP-Address}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-53" name="rest_code_a31cf9931def4cea91c7429c02798145-53" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-53"&gt;&lt;/a&gt; '%{Cisco-NAS-Port}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-54" name="rest_code_a31cf9931def4cea91c7429c02798145-54" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-54"&gt;&lt;/a&gt; '%{NAS-Port-Id}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-55" name="rest_code_a31cf9931def4cea91c7429c02798145-55" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-55"&gt;&lt;/a&gt; '%{NAS-Port-Type}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-56" name="rest_code_a31cf9931def4cea91c7429c02798145-56" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-56"&gt;&lt;/a&gt; from_unixtime(unix_timestamp('%S')-%{Acct-Session-Time}),
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-57" name="rest_code_a31cf9931def4cea91c7429c02798145-57" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-57"&gt;&lt;/a&gt; '%S',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-58" name="rest_code_a31cf9931def4cea91c7429c02798145-58" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-58"&gt;&lt;/a&gt; '%{Acct-Session-Time}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-59" name="rest_code_a31cf9931def4cea91c7429c02798145-59" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-59"&gt;&lt;/a&gt; '%{Acct-Authentic}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-60" name="rest_code_a31cf9931def4cea91c7429c02798145-60" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-60"&gt;&lt;/a&gt; '',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-61" name="rest_code_a31cf9931def4cea91c7429c02798145-61" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-61"&gt;&lt;/a&gt; '%{Connect-Info}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-62" name="rest_code_a31cf9931def4cea91c7429c02798145-62" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-62"&gt;&lt;/a&gt; '%{Acct-Input-Octets}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-63" name="rest_code_a31cf9931def4cea91c7429c02798145-63" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-63"&gt;&lt;/a&gt; '%{Acct-Output-Octets}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-64" name="rest_code_a31cf9931def4cea91c7429c02798145-64" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-64"&gt;&lt;/a&gt; '%{Called-Station-Id}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-65" name="rest_code_a31cf9931def4cea91c7429c02798145-65" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-65"&gt;&lt;/a&gt; '%{Calling-Station-Id}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-66" name="rest_code_a31cf9931def4cea91c7429c02798145-66" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-66"&gt;&lt;/a&gt; '%{Acct-Terminate-Cause}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-67" name="rest_code_a31cf9931def4cea91c7429c02798145-67" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-67"&gt;&lt;/a&gt; '%{Service-Type}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-68" name="rest_code_a31cf9931def4cea91c7429c02798145-68" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-68"&gt;&lt;/a&gt; '%{Framed-Protocol}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-69" name="rest_code_a31cf9931def4cea91c7429c02798145-69" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-69"&gt;&lt;/a&gt; '%{Framed-IP-Address}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-70" name="rest_code_a31cf9931def4cea91c7429c02798145-70" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-70"&gt;&lt;/a&gt; '0',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-71" name="rest_code_a31cf9931def4cea91c7429c02798145-71" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-71"&gt;&lt;/a&gt; '%{Acct-Delay-Time}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-72" name="rest_code_a31cf9931def4cea91c7429c02798145-72" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-72"&gt;&lt;/a&gt; '%{h323-remote-address}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-73" name="rest_code_a31cf9931def4cea91c7429c02798145-73" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-73"&gt;&lt;/a&gt; '%{h323-call-origin}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-74" name="rest_code_a31cf9931def4cea91c7429c02798145-74" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-74"&gt;&lt;/a&gt; '%{h323-call-type}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-75" name="rest_code_a31cf9931def4cea91c7429c02798145-75" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-75"&gt;&lt;/a&gt; '%{h323-setup-time}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-76" name="rest_code_a31cf9931def4cea91c7429c02798145-76" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-76"&gt;&lt;/a&gt; '%{h323-connect-time}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-77" name="rest_code_a31cf9931def4cea91c7429c02798145-77" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-77"&gt;&lt;/a&gt; '%{h323-disconnect-time}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-78" name="rest_code_a31cf9931def4cea91c7429c02798145-78" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-78"&gt;&lt;/a&gt; '%{h323-disconnect-cause}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-79" name="rest_code_a31cf9931def4cea91c7429c02798145-79" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-79"&gt;&lt;/a&gt; '%{h323-remote-address}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-80" name="rest_code_a31cf9931def4cea91c7429c02798145-80" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-80"&gt;&lt;/a&gt; '%{h323-voice-quality}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-81" name="rest_code_a31cf9931def4cea91c7429c02798145-81" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-81"&gt;&lt;/a&gt; '%{h323-conf-id}' ,
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-82" name="rest_code_a31cf9931def4cea91c7429c02798145-82" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-82"&gt;&lt;/a&gt; '%{Timestamp}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-83" name="rest_code_a31cf9931def4cea91c7429c02798145-83" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-83"&gt;&lt;/a&gt; '%{coder-type-rate}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-84" name="rest_code_a31cf9931def4cea91c7429c02798145-84" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-84"&gt;&lt;/a&gt; '%{hiwater-playout-delay}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-85" name="rest_code_a31cf9931def4cea91c7429c02798145-85" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-85"&gt;&lt;/a&gt; '%{lowater-playout-delay}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-86" name="rest_code_a31cf9931def4cea91c7429c02798145-86" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-86"&gt;&lt;/a&gt; '%{round-trip-delay}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-87" name="rest_code_a31cf9931def4cea91c7429c02798145-87" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-87"&gt;&lt;/a&gt; '%{late-packets}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-88" name="rest_code_a31cf9931def4cea91c7429c02798145-88" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-88"&gt;&lt;/a&gt; '%{lost-packets}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-89" name="rest_code_a31cf9931def4cea91c7429c02798145-89" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-89"&gt;&lt;/a&gt; '%{early-packets}',
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-90" name="rest_code_a31cf9931def4cea91c7429c02798145-90" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-90"&gt;&lt;/a&gt; '%{remote-media-address}'
&lt;a id="rest_code_a31cf9931def4cea91c7429c02798145-91" name="rest_code_a31cf9931def4cea91c7429c02798145-91" href="https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/#rest_code_a31cf9931def4cea91c7429c02798145-91"&gt;&lt;/a&gt;)"
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Note that we only added the last few SQL parameters and somehow FreeRADIUS is able to provide the rest. Make sure you have the correct table name and columns configured (double/triplecheck the query and your table).&lt;/p&gt;
&lt;p&gt;The column H323VoiceQuality will contain the so called ICPIF impairment factor. A small writeup of what that means is &amp;lt;a href="&lt;a class="reference external" href="http://ccie11440.blogspot.com/2007/11/calculated-planning-impairment-factor.html"&gt;http://ccie11440.blogspot.com/2007/11/calculated-planning-impairment-factor.html&lt;/a&gt;"&amp;gt;here&amp;lt;/a&amp;gt;.&lt;/p&gt;</description><category>cisco</category><category>english</category><category>freeradius</category><category>general</category><category>h323</category><category>quality</category><category>radius</category><category>sip</category><category>voip</category><category>vsa</category><guid>https://www.ramdyne.nl/posts/voice-quality-reporting-for-cisco-voip-using-freeradius/</guid><pubDate>Fri, 20 Mar 2009 22:45:09 GMT</pubDate></item></channel></rss>