[Asterisk-Users] Re: Fw: anybody has SIP realtime working ?

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Fri Mar 24 12:48:22 MST 2006


On Friday 24 March 2006 06:17, Benny Amorsen wrote:
> In a slightly more ideal world, asterisk could be told: reload sip
> peer whatever, and would only update the changed values while
> retaining MWI and qualify information etc.

Isn't that *exactly* what "sip prune realtime peer <x> does?

*CLI> sip prune realtime peer
Usage: sip prune realtime [peer|user] [<name>|all|like <pattern>]
       Prunes object(s) from the cache.
       Optional regular expression pattern is used to filter the objects.

It says it clears the cache entry, meaning that the next time it has to access 
that peer, it will go to the cache, see it's not there and pull the info from 
the DB (and cache it, since this particular person has the caching turned 
on).

Is this not *exactly* what you want?

> In a more ideal world, asterisk would only cache stuff that isn't kept
> in the database at all -- the stuff it needs for MWI and qualify etc.
> That way everything would always be up-to-date, and MWI would still
> work.

Uh, that's not the point of the cache; the cache is there to keep the info 
from the DB in memory so it doesn't have to keep hitting the DB.

> In an even more ideal world, asterisk would keep everything in the
> database, including the stuff it needs for MWI etc. There are
> performance reasons to not do that, of course. Perhaps they can be
> overcome.

Agreed.

-A.



More information about the asterisk-users mailing list