RealTime cache (sorcery)


I have a RealTime configuration PJSIP with objects caching
If i make a call (to MusicOnHold) through a SIP account for the first time it’s caching via request to the DB. But if I make a second call (trough the same SIP account) it requests the DB again.
What am i doing wrong?

Version: Asterisk 18.13.0

My config (sorcery.conf):

endpoint/cache = memory_cache,maximum_objects=200,expire_on_reload=yes,object_lifetime_maximum=3600
auth/cache = memory_cache,maximum_objects=200,expire_on_reload=yes,object_lifetime_maximum=3600
aor/cache = memory_cache,maximum_objects=200,expire_on_reload=yes,object_lifetime_maximum=3600
contact/cache = memory_cache,maximum_objects=200,expire_on_reload=yes,object_lifetime_maximum=300

What do the memory cache CLI commands show? Which object are you referring to being retrieved again?

The requests for the second call:

You probably have multidomain support enabled as it is the default, which would result in queries happening. It can be disabled in pjsip.conf[1]. You could also switch to full backend caching instead.

[1] asterisk/pjsip.conf.sample at master · asterisk/asterisk · GitHub

Thanks jcolp!

You helped me solve this “problem” … )

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.