<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16722">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana>Hi Peter,</FONT></DIV>
<DIV><FONT color=#000080></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080>Thanks for reminding, i've submit it to 
Jira.</FONT></DIV>
<DIV><FONT color=#000080></FONT>&nbsp;</DIV>
<DIV>
<DIV class=item-header>
<UL class=breadcrumbs>
  <LI><A id=project-name-val 
  href="http://jira.freeswitch.org/browse/FS">FreeSWITCH</A> </LI>
  <LI class=section><A id=key-val 
  href="http://jira.freeswitch.org/browse/FS-3190">FS-3190</A></LI></UL>
<H2 id=issue_header_summary class=item-summary><A 
href="http://jira.freeswitch.org/browse/FS-3190">Table 'sip_authentication' was 
not cleared after nonce expired -caused sofia_reg_internal.db grow bigger and 
bigger along with time</A></H2></DIV></DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2011-03-26 </FONT></DIV><FONT 
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>Charles</SPAN> </FONT></DIV>
<HR color=#b5c4df SIZE=1>

<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> Peter Olsson </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2011-03-26&nbsp; 16:14:02 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> FreeSWITCH Users Help 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: 
[Freeswitch-users]sofia_reg_internal.db growbiggerandbiggeralong with time 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>If&nbsp;you've&nbsp;found&nbsp;a&nbsp;bug&nbsp;-&nbsp;please&nbsp;submit&nbsp;it&nbsp;to&nbsp;Jira.&nbsp;Also,&nbsp;make&nbsp;sure&nbsp;to&nbsp;attach&nbsp;your&nbsp;sip&nbsp;profile&nbsp;config&nbsp;to&nbsp;it.</DIV>
<DIV></DIV>
<DIV>/Peter</DIV>
<DIV>________________________________________</DIV>
<DIV>Från:&nbsp;freeswitch-users-bounces@lists.freeswitch.org&nbsp;[freeswitch-users-bounces@lists.freeswitch.org]&nbsp;f&amp;#246;r&nbsp;Charles&nbsp;[fieldpeak@gmail.com]</DIV>
<DIV>Skickat:&nbsp;den&nbsp;26&nbsp;mars&nbsp;2011&nbsp;04:06</DIV>
<DIV>Till:&nbsp;FreeSWITCH&nbsp;Users&nbsp;Help;&nbsp;FreeSWITCH&nbsp;Users&nbsp;Help;&nbsp;anthony.minessale</DIV>
<DIV>Ämne:&nbsp;Re:&nbsp;[Freeswitch-users]&nbsp;sofia_reg_internal.db&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;growbiggerandbiggeralong&nbsp;with&nbsp;time</DIV>
<DIV></DIV>
<DIV>Hi&nbsp;Anthony,</DIV>
<DIV></DIV>
<DIV>I&nbsp;tried&nbsp;to&nbsp;delete&nbsp;the&nbsp;db&nbsp;files&nbsp;sofia_reg_*&nbsp;db&nbsp;files,&nbsp;it&nbsp;is&nbsp;the&nbsp;same.</DIV>
<DIV></DIV>
<DIV>Actually&nbsp;i've&nbsp;located&nbsp;the&nbsp;bug&nbsp;where&nbsp;the&nbsp;source&nbsp;code,&nbsp;when&nbsp;INSERTing&nbsp;the&nbsp;new&nbsp;record&nbsp;to&nbsp;the&nbsp;table&nbsp;sip_authentication(line#801&nbsp;of&nbsp;sofia_reg.c),</DIV>
<DIV>It&nbsp;compose&nbsp;a&nbsp;wrong&nbsp;SQL&nbsp;statement&nbsp;which&nbsp;caused&nbsp;insert&nbsp;the&nbsp;wrong&nbsp;values&nbsp;('NULL'&nbsp;at&nbsp;'profile'&nbsp;column,&nbsp;and&nbsp;'internal'&nbsp;at&nbsp;hostname&nbsp;column)&nbsp;to&nbsp;columns,&nbsp;consequetnly,&nbsp;failed&nbsp;to&nbsp;delete&nbsp;when&nbsp;expires&nbsp;time&nbsp;arrive.</DIV>
<DIV></DIV>
<DIV>Please&nbsp;FOCUS&nbsp;here.</DIV>
<DIV></DIV>
<DIV>the&nbsp;mail&nbsp;below&nbsp;shows&nbsp;the&nbsp;details,</DIV>
<DIV>thanks!</DIV>
<DIV></DIV>
<DIV>sender:&nbsp;Charles</DIV>
<DIV>sent&nbsp;time:&nbsp;2011-03-25&nbsp;12:22:57</DIV>
<DIV>receiver:&nbsp;FreeSWITCH&nbsp;Users&nbsp;Help;&nbsp;msc;&nbsp;jeff</DIV>
<DIV>cc:&nbsp;jonas.gauffin</DIV>
<DIV>subject:&nbsp;Re:&nbsp;Re:&nbsp;[Freeswitch-users]&nbsp;sofia_reg_internal.db&nbsp;grow&nbsp;bigger&nbsp;and&nbsp;biggeralong&nbsp;with&nbsp;time</DIV>
<DIV></DIV>
<DIV>It&nbsp;looks&nbsp;that&nbsp;I&nbsp;found&nbsp;the&nbsp;root&nbsp;cause,&nbsp;at&nbsp;the&nbsp;line#801&nbsp;of&nbsp;sofia_reg.c,&nbsp;when&nbsp;excute&nbsp;the&nbsp;SQL&nbsp;statement&nbsp;('INSERT')&nbsp;to&nbsp;the&nbsp;table&nbsp;'sip_authentication',&nbsp;it&nbsp;wrongly&nbsp;insert&nbsp;as&nbsp;screenshot&nbsp;below,&nbsp;profile_name&nbsp;should&nbsp;be&nbsp;'internal'&nbsp;and&nbsp;hostname&nbsp;should&nbsp;be&nbsp;'mypc'&nbsp;(name&nbsp;of&nbsp;my&nbsp;computer).</DIV>
<DIV>however,&nbsp;i&nbsp;did&nbsp;not&nbsp;find&nbsp;anything&nbsp;wrong&nbsp;regarding&nbsp;the&nbsp;code&nbsp;itselft,&nbsp;so&nbsp;failed&nbsp;to&nbsp;fix&nbsp;it...</DIV>
<DIV>could&nbsp;you&nbsp;please&nbsp;help&nbsp;focus&nbsp;here&nbsp;to&nbsp;fix&nbsp;it,&nbsp;thanks.</DIV>
<DIV></DIV>
<DIV>P.S.&nbsp;i&nbsp;manually&nbsp;insert&nbsp;the&nbsp;correct&nbsp;record&nbsp;into&nbsp;this&nbsp;talbe,&nbsp;after&nbsp;a&nbsp;while&nbsp;(tens&nbsp;of&nbsp;seconds),&nbsp;it&nbsp;automatically&nbsp;deteleted&nbsp;by&nbsp;FS.</DIV>
<DIV></DIV>
<DIV>btw,&nbsp;i&nbsp;found&nbsp;there&nbsp;is&nbsp;a&nbsp;bug&nbsp;report&nbsp;like&nbsp;this&nbsp;http://jira.freeswitch.org/browse/FS-498#&nbsp;and&nbsp;it&nbsp;is&nbsp;marked</DIV>
<DIV></DIV>
<DIV>Resolved:14/Sep/10&nbsp;12:32&nbsp;PM,&nbsp;however,&nbsp;my&nbsp;version&nbsp;is&nbsp;Nov,&nbsp;30,&nbsp;2010,&nbsp;there&nbsp;is&nbsp;still&nbsp;exsit.</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>[cid:__0@Foxmail.net]</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>&nbsp;line#801&nbsp;of&nbsp;sofia_reg.c:</DIV>
<DIV>sql&nbsp;=&nbsp;switch_mprintf("insert&nbsp;into&nbsp;sip_authentication&nbsp;(nonce,expires,profile_name,hostname,&nbsp;last_nc)&nbsp;"</DIV>
<DIV>&nbsp;"values('%q',&nbsp;%ld,&nbsp;'%q',&nbsp;'%q',&nbsp;0)",&nbsp;uuid_str,</DIV>
<DIV>&nbsp;switch_epoch_time_now(NULL)&nbsp;+&nbsp;(profile-&gt;nonce_ttl&nbsp;?&nbsp;profile-&gt;nonce_ttl&nbsp;:&nbsp;DEFAULT_NONCE_TTL),</DIV>
<DIV>&nbsp;profile-&gt;name,&nbsp;mod_sofia_globals.hostname);</DIV>
<DIV>switch_assert(sql&nbsp;!=&nbsp;NULL);</DIV>
<DIV>sofia_glue_actually_execute_sql(profile,&nbsp;sql,&nbsp;profile-&gt;ireg_mutex);</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>2011-03-26</DIV>
<DIV>________________________________</DIV>
<DIV>Charles</DIV>
<DIV>________________________________</DIV>
<DIV>发件人:&nbsp;Anthony&nbsp;Minessale</DIV>
<DIV>发送时间:&nbsp;2011-03-26&nbsp;&nbsp;00:12:12</DIV>
<DIV>收件人:&nbsp;FreeSWITCH&nbsp;Users&nbsp;Help</DIV>
<DIV>抄送:</DIV>
<DIV>主题:&nbsp;Re:&nbsp;[Freeswitch-users]&nbsp;sofia_reg_internal.db&nbsp;growbiggerandbiggeralong&nbsp;with&nbsp;time</DIV>
<DIV>can&nbsp;you&nbsp;try&nbsp;deleting&nbsp;the&nbsp;db&nbsp;files&nbsp;sofia_reg_*&nbsp;db&nbsp;files?&nbsp;&nbsp;Maybe&nbsp;they</DIV>
<DIV>have&nbsp;become&nbsp;corrupt?</DIV>
<DIV>2011/3/25&nbsp;fieldpeak&nbsp;&lt;fieldpeak@gmail.com&gt;:</DIV>
<DIV>&gt;&nbsp;Hi&nbsp;Jonas,</DIV>
<DIV>&gt;&nbsp;i&nbsp;also&nbsp;think&nbsp;so.&nbsp;can&nbsp;you&nbsp;please&nbsp;update&nbsp;was&nbsp;the&nbsp;bug&nbsp;fixed?</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;在&nbsp;2011-3-25&nbsp;下午5:14,"Jonas&nbsp;Gauffin"&nbsp;&lt;jonas.gauffin@gmail.com&gt;编写:</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;might&nbsp;be&nbsp;the&nbsp;same&nbsp;bug&nbsp;as&nbsp;I&nbsp;reported&nbsp;here:</DIV>
<DIV>&gt;&nbsp;http://jira.freeswitch.org/browse/FS-498</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;On&nbsp;Fri,&nbsp;Mar&nbsp;25,&nbsp;2011&nbsp;at&nbsp;8:13&nbsp;AM,&nbsp;Charles&nbsp;&lt;fieldpeak@gmail.com&gt;&nbsp;wrote:</DIV>
<DIV>&gt;&gt;</DIV>
<DIV>&gt;&gt;&nbsp;no,&nbsp;this&nbsp;is&nbsp;not&nbsp;the&nbsp;c...</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;FreeSWITCH-users&nbsp;mailing&nbsp;list</DIV>
<DIV>&gt;&nbsp;FreeSWITCH-users@lists.freeswitch.org</DIV>
<DIV>&gt;&nbsp;http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</DIV>
<DIV>&gt;&nbsp;UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</DIV>
<DIV>&gt;&nbsp;http://www.freeswitch.org</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;FreeSWITCH-users&nbsp;mailing&nbsp;list</DIV>
<DIV>&gt;&nbsp;FreeSWITCH-users@lists.freeswitch.org</DIV>
<DIV>&gt;&nbsp;http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</DIV>
<DIV>&gt;&nbsp;UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</DIV>
<DIV>&gt;&nbsp;http://www.freeswitch.org</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>--</DIV>
<DIV>Anthony&nbsp;Minessale&nbsp;II</DIV>
<DIV>FreeSWITCH&nbsp;http://www.freeswitch.org/</DIV>
<DIV>ClueCon&nbsp;http://www.cluecon.com/</DIV>
<DIV>Twitter:&nbsp;http://twitter.com/FreeSWITCH_wire</DIV>
<DIV>AIM:&nbsp;anthm</DIV>
<DIV>MSN:anthony_minessale@hotmail.com</DIV>
<DIV>GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com</DIV>
<DIV>IRC:&nbsp;irc.freenode.net&nbsp;#freeswitch</DIV>
<DIV>FreeSWITCH&nbsp;Developer&nbsp;Conference</DIV>
<DIV>sip:888@conference.freeswitch.org</DIV>
<DIV>googletalk:conf+888@conference.freeswitch.org</DIV>
<DIV>pstn:+19193869900</DIV>
<DIV>_______________________________________________</DIV>
<DIV>FreeSWITCH-users&nbsp;mailing&nbsp;list</DIV>
<DIV>FreeSWITCH-users@lists.freeswitch.org</DIV>
<DIV>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</DIV>
<DIV>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</DIV>
<DIV>http://www.freeswitch.org</DIV>
<DIV>!DSPAM:4d8d70e832765221816297!</DIV>
<DIV>_______________________________________________</DIV>
<DIV>FreeSWITCH-users&nbsp;mailing&nbsp;list</DIV>
<DIV>FreeSWITCH-users@lists.freeswitch.org</DIV>
<DIV>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</DIV>
<DIV>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</DIV>
<DIV>http://www.freeswitch.org</DIV></FONT></DIV></BODY></HTML>