<p>You are right for the commands to prune and clear the cache. But what is the meaning of the meaning of the configuration parameter rtautoclear if it is not clearing the cache?</p>
<p>Leandro</p>
<p>I am typing from my mobile phone...</p>
<div class="gmail_quote">Il giorno 26/mar/2013 14:38, &quot;Michael L. Young&quot; &lt;<a href="mailto:myoung@acsacc.com">myoung@acsacc.com</a>&gt; ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
----- Original Message -----<br>
&gt; From: &quot;Leandro Dardini&quot; &lt;<a href="mailto:ldardini@gmail.com">ldardini@gmail.com</a>&gt;<br>
&gt; To: &quot;Asterisk Users Mailing List - Non-Commercial Discussion&quot; &lt;<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>&gt;<br>
&gt; Sent: Tuesday, March 26, 2013 5:28:22 AM<br>
&gt; Subject: [asterisk-users] rtcachefriends and rtautoclear on change password<br>
&gt;<br>
&gt; Hello friends,<br>
&gt; I am using from a long time rtcachefirends=yes and rtautoclear=yes in<br>
&gt; my sip.conf for asterisk 11.2.1.<br>
&gt;<br>
&gt; I have found the data of the peers are never reloaded from the<br>
&gt; database, so if you change the password for a peer, it will continue<br>
&gt; to work with the old password. Do you think it is the expected<br>
&gt; behaviour?<br>
&gt;<br>
&gt; From the documentation for rtautoclear=yes<br>
&gt;<br>
&gt; If set to yes, when the registration expires, the friend will<br>
&gt; vanish from the configuration until requested again. If set<br>
&gt; to an integer, friends expire within this number of seconds<br>
&gt; instead of the registration interval.<br>
&gt;<br>
&gt; The phone will renew the registration before it expires, so maybe it<br>
&gt; never &quot;expires&quot;.<br>
&gt;<br>
&gt; I have tried to set the rtautoclear to 60, but the result is the<br>
&gt; same,<br>
&gt; the new password is never enforced.<br>
&gt;<br>
&gt; Any suggestion apart from removing the rtcachefriends?<br>
<br>
With rtcachefriends turned on, the realtime peer is cached in memory.  Therefore, in order to clear the cache for that peer, you should check into issuing the command &quot;sip prune realtime peer &lt;peername&gt;&quot; if you want to clear out only the one peer.  If you want to reload the peer back in memory after clearing it out, you can issue &quot;sip show peer &lt;peername&gt; load&quot; to load it back from the db.<br>

<br>
Michael<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div>