[asterisk-users] rtcachefriends and rtautoclear on change password

Michael L. Young myoung at acsacc.com
Tue Mar 26 08:38:16 CDT 2013


----- Original Message -----
> From: "Leandro Dardini" <ldardini at gmail.com>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
> 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



More information about the asterisk-users mailing list