----- Original Message -----
> From: "Leandro Dardini" <[email protected]>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
> <[email protected]>
> Sent: Tuesday, March 26, 2013 5:28:22 AM
> Subject: [asterisk-users] rtcachefriends and rtautoclear on change password
> 
> Hello friends,
> I am using from a long time rtcachefirends=yes and rtautoclear=yes in
> my sip.conf for asterisk 11.2.1.
> 
> I have found the data of the peers are never reloaded from the
> database, so if you change the password for a peer, it will continue
> to work with the old password. Do you think it is the expected
> behaviour?
> 
> From the documentation for rtautoclear=yes
> 
> If set to yes, when the registration expires, the friend will
> vanish from the configuration until requested again. If set
> to an integer, friends expire within this number of seconds
> instead of the registration interval.
> 
> The phone will renew the registration before it expires, so maybe it
> never "expires".
> 
> I have tried to set the rtautoclear to 60, but the result is the
> same,
> the new password is never enforced.
> 
> Any suggestion apart from removing the rtcachefriends?

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 "sip prune realtime peer <peername>" 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 "sip show peer <peername> load" to load it back 
from the db.

Michael

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to