[asterisk-users] rtcachefriends and rtautoclear on change password

Leandro Dardini ldardini at gmail.com
Tue Mar 26 08:43:09 CDT 2013


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?

Leandro

I am typing from my mobile phone...
Il giorno 26/mar/2013 14:38, "Michael L. Young" <myoung at acsacc.com> ha
scritto:

> ----- 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
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130326/ab3b350d/attachment.htm>


More information about the asterisk-users mailing list