Thanks Tijmen.  So the OpenSIPS client shouldn&#39;t be sending the &quot;Connect-Info&quot; like Adrian says?  If that is the case then would you also need to update the &quot;radius_accounting.proc&quot; and take out the following<div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>`CalledStationId` varchar(50) NOT NULL default &#39;&#39;,</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>`CallingStationId` varchar(50) NOT NULL default &#39;&#39;,</div>
<div>Not that it concerns me just I just remembered see the columns in the database when I was trying to figure out this issue.</div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">On Mon, Nov 12, 2012 at 9:27 AM, Tijmen de Mes <span dir="ltr">&lt;<a href="mailto:tijmen@ag-projects.com" target="_blank">tijmen@ag-projects.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi,<br>
      <br>
      It has to be removed. Connect-Info is not in the dictionary any
      more. In version 1 freeradius skipped the field when it was not
      set or known, unlike version 2. So that&#39;s why the sql broke,
      simply because the field is not supplied.<br>
      <br>
      I will push a patch to remove it from CDRTool as well, so the next
      version has the right sql.conf.<div class="im"><br>
      <br>
      Best regards,<br>
      <br>
      <pre cols="72">-- 
Tijmen de Mes
AG Projects</pre>
      <br></div><div><div class="h5">
      On 11/12/2012 04:17 PM, Duane Larson wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">That fixed it.  Is there a reason why the latest
      download cdrtool_9.0.0.tar.gz has
      /cdrtool_9.0.0/CDRTool/setup/radius/OpenSIPS/sql.conf where it
      does include the line 
      <div>&#39;%{Connect-Info}&#39;, \
        <div>?<br>
          <br>
          <div class="gmail_quote">
            On Mon, Nov 12, 2012 at 5:22 AM, Tijmen de Mes <span dir="ltr">&lt;<a href="mailto:tijmen@ag-projects.com" target="_blank">tijmen@ag-projects.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>Hi Duane,<br>
                  <br>
                  Please replace the stop query by:
                  <div><br>
                    <div>          CALL update_radacct_record( \</div>
                    <div>                 &#39;radius&#39;, \</div>
                    <div>                &#39;%S&#39;, \</div>
                    <div>                &#39;%{Acct-Delay-Time}&#39;, \</div>
                  </div>
                  <div>                &#39;&#39;, \</div>
                  <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>
                    <br>
                  </div>
                  Best regards,<br>
                  <br>
                  <pre cols="72">-- 
Tijmen de Mes
AG Projects</pre>
                  <div>
                    <div> <br>
                      On 11/10/2012 04:56 AM, Duane Larson wrote:<br>
                    </div>
                  </div>
                </div>
                <blockquote type="cite">
                  <div>
                    <div>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>
                      <br>
                      <fieldset></fieldset>
                      <br>
                    </div>
                  </div>
                  <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                </blockquote>
              </div>
              <br>
              _______________________________________________<br>
              Users mailing list<br>
              <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
              <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          --<br>
          *--*--*--*--*--*<br>
          Duane<br>
          *--*--*--*--*--*<br>
          --<br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </div></div></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>
</div>