And just to add to what I already stated this is what I have in the sql.conf in case someone asks<div><br></div><div><div>    accounting_stop_query       = &quot;\</div><div>          CALL update_radacct_record( \</div><div>
                &#39;radius&#39;, \</div><div>                &#39;%S&#39;, \</div><div>                &#39;%{Acct-Delay-Time}&#39;, \</div><div>                &#39;%{Connect-Info}&#39;, \</div><div>                &#39;%{X-RTP-Stat}&#39;, \</div>
<div>                 &#39;%{Acct-Session-Id}&#39;, \</div><div>                &#39;%{Sip-To-Tag}&#39;, \</div><div>                &#39;%{Sip-From-Tag}&#39; \</div><div>                )&quot;</div><div><br></div><div><br>
</div><div><br></div><br><div class="gmail_quote">On Fri, Nov 9, 2012 at 8:33 PM, Duane Larson <span dir="ltr">&lt;<a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@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">
I am trying to get a new CDRTool server up and running and I am seeing the following issue with Freeradius after a call is completed (I installed the ag-projects freeradius packages)<div><br></div><div><div>rad_recv: Accounting-Request packet from host 10.182.236.97 port 54401, id=41, length=324</div>

<div>        Acct-Status-Type = Stop</div><div>        Service-Type = Sip-Session</div><div>        Sip-Response-Code = 200</div><div>        Sip-Method = Bye</div><div>        Event-Timestamp = 1352513799</div><div>        Sip-From-Tag = &quot;ppkc6hfcm6&quot;</div>

<div>        Sip-To-Tag = &quot;as70add6af&quot;</div><div>        Acct-Session-Id = &quot;00b99d506047-zch6q5chlhq1&quot;</div><div>        User-Name = &quot;<a href="mailto:9012014561@duanelarson.com" target="_blank">9012014561@duanelarson.com</a>&quot;</div>

<div>        Sip-Translated-Request-URI = &quot;<a href="http://sip:9012014563@108.166.97.17:5060" target="_blank">sip:9012014563@108.166.97.17:5060</a>&quot;</div><div>        User-Agent = &quot;snom821/<a href="http://8.7.3.10" target="_blank">8.7.3.10</a>&quot;</div>

<div>        Contact = &quot;&lt;sip:<a href="tel:9012014561" value="+19012014561" target="_blank">9012014561</a>@192.168.88.13:3073;line=ci5jnp3t&gt;;reg-id=1&quot;</div><div>        From-Header = &quot;\&quot;Duane Larson\&quot; &lt;<a href="mailto:sip%3A9012014561@duanelarson.com" target="_blank">sip:9012014561@duanelarson.com</a>&gt;;tag=ppkc6hfcm6&quot;</div>

<div>        NAS-Port = 5060</div><div>        Acct-Delay-Time = 0</div><div>        NAS-IP-Address = 10.182.236.97</div><div># Executing section preacct from file /etc/freeradius/radiusd.conf</div><div>+- entering group preacct {...}</div>

<div>++[preprocess] returns ok</div><div>[acct_unique] Hashing &#39;Sip-To-Tag = &quot;as70add6af&quot;,Sip-From-Tag = &quot;ppkc6hfcm6&quot;,Client-IP-Address = 10.182.236.97,Acct-Session-Id = &quot;00b99d506047-zch6q5chlhq1&quot;&#39;</div>

<div>[acct_unique] Acct-Unique-Session-ID = &quot;3508a1820be8a06a&quot;.</div><div>++[acct_unique] returns ok</div><div>[suffix] Looking up realm &quot;<a href="http://duanelarson.com" target="_blank">duanelarson.com</a>&quot; for User-Name = &quot;<a href="mailto:9012014561@duanelarson.com" target="_blank">9012014561@duanelarson.com</a>&quot;</div>

<div>[suffix] No such realm &quot;<a href="http://duanelarson.com" target="_blank">duanelarson.com</a>&quot;</div><div>++[suffix] returns noop</div><div># Executing section accounting from file /etc/freeradius/radiusd.conf</div>
<div>+- entering group accounting {...}</div>
<div>[detail]        expand: /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d -&gt; /var/log/freeradius/radacct/<a href="http://10.182.236.97/detail-20121109" target="_blank">10.182.236.97/detail-20121109</a></div>
<div>[detail] /var/log/freeradius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /var/log/freeradius/radacct/<a href="http://10.182.236.97/detail-20121109" target="_blank">10.182.236.97/detail-20121109</a></div>
<div>[detail]        expand: %t -&gt; Fri Nov  9 20:16:39 2012</div><div>++[detail] returns ok</div><div>[sql] WARNING: <b>Unknown module &quot;Connect-Info&quot;</b> in string expansion &quot;%&#39;,           &#39;%{X-RTP-Stat}&#39;,                 &#39;%{Acct-Session-Id}&#39;,                 &#39;%{Sip-To-Tag}&#39;,                 &#39;%{Sip-From-Tag}&#39;                 )&quot;</div>

<div>rlm_sql (sql): Reserving sql socket id: 23</div><div>rlm_sql_mysql: MYSQL check_error: 1064 received</div><div>[sql] Couldn&#39;t update SQL accounting STOP record - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#39;&#39;&#39; at line 1</div>

<div>rlm_sql_mysql: MYSQL check_error: 1064 received</div><div>rlm_sql_mysql: Cannot store result</div><div>rlm_sql_mysql: MySQL error &#39;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#39;&#39;&#39; at line 1&#39;</div>

<div>rlm_sql (sql): Released sql socket id: 23</div><div>++[sql] returns fail</div><div>Finished request 1.</div><div>Cleaning up request 1 ID 41 with timestamp +23</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>
</div>