[Devel] msilo methods check

Juha Heinanen jh at tutpro.com
Sat Sep 9 20:48:52 CEST 2006


Daniel-Constantin Mierla writes:

 > There is an option for registrar module to perform location lookup with 
 > method filtering:
 > 
 > http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN288

yes, if lookup returns -2 on MESSAGE, then it makes no sense to try to
t_relay the request.

 > However, optimization by not accessing silo table would be added if 
 > msilo will do the filtering, which is good considering registration 
 > rate. I will add this on the feature request tracker.

this is what i meant.  if register request doesn't list MESSAGE in
Allow header or in a methods contact parameter, then m_dump() would
return immediately without doing anything.

however, a bigger performance hit is calling m_dump() when there are no
stored messages, because it means an extra db query for each register
request that supports MESSAGE.  that is why i'm hesitating to turn on
msilo in my config.

would it be possible to add a flag in location table that tells if there
are stored messages for an aor?  then save() could return a value based
on that flag telling if messages are stored or not.

-- juha



More information about the Devel mailing list