<div dir="ltr"><div class="gmail_default" style="font-family:arial narrow,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 25, 2016 at 7:20 AM, Ross Beer <span dir="ltr"><<a href="mailto:ross.beer@outlook.com" target="_blank">ross.beer@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hi,<br> <br>I am receiving the below message when using Sorcery cache:<br> <br><blockquote style="margin-right:0px" dir="ltr"><font size="2" style="font-size:10pt">[2016-02-25 13:47:02] ERROR[17353]: res_sorcery_memory_cache.c:1559 sorcery_memory_cache_delete: Unable to delete object '<ENDPOINT>;@115bb1375dae1799c68048e7abef7e05' from sorcery cache<br> Contact <ENDPOINT>/sip:<ENDPOINT>@<IP Address>:39212;transport=TLS has been deleted<br> -- Added contact 'sip:<ENDPOINT>@<IP Address>:39212;transport=TLS' to AOR '<ENDPOINT>' with expiration of 60 seconds<br> Contact <ENDPOINT>/sip:<ENDPOINT>@<IP Address>:39212;transport=TLS has been created<br> Contact <ENDPOINT>/sip:<ENDPOINT>@<IP Address>:39212;transport=TLS is now Unknown. RTT: 0.000 msec</font><br></blockquote> <br>The device had previously registered and therefore the device should have been in the cache. When this issue occurs it blocks the registration of an endpoint causing it to go offline. I can replicate this issue by pressing 'Re-register' within the Snom interface.<br> <br>Firstly I can't find documentation on 'full_backend_cache' on the Wiki page: <a href="https://wiki.asterisk.org/wiki/display/AST/Sorcery+Caching" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Sorcery+Caching</a></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">I think this was on my todo list from a few weeks ago when I was experimenting with full_backend_cache. :)</div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><br> <br>Therefore is full cache setup in the same way as other object settings?<br> <br><blockquote style="margin-right:0px" dir="ltr"><font size="2">[res_pjsip] ; <br>auth/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes<br>auth=config,pjsip.conf,criteria=type=auth<br>auth=realtime,ps_auths</font><br><font size="2"></font> <br><font size="2">aor/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes<br>aor=config,pjsip.conf,criteria=type=aor<br>aor=realtime,ps_aors</font><br><font size="2"></font> <br><font size="2">domain_alias/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes<br>domain_alias=config,pjsip.conff,criteria=type=domain_alias<br>domain_alias=realtime,ps_domain_aliases</font><br><font size="2"></font> <br><font size="2">endpoint/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes<br>endpoint=config,pjsip.conf,criteria=type=endpoint<br>endpoint=realtime,ps_endpoints</font><br><font size="2"></font> <br><font size="2">contact/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes<br>contact=config,pjsip.conf,criteria=type=contact<br>contact=realtime,ps_contacts</font></blockquote></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">If you don't use realtime for contacts and let it default to the astdb, does everything else work?</div></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><blockquote style="margin-right:0px" dir="ltr"><br><font size="2"></font> <br><font size="2">[res_pjsip_endpoint_identifier_ip]<br>identify/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes<br>identify=config,pjsip.conf,criteria=type=identify<br>identify=realtime,ps_endpoint_id_ips</font><br><br></blockquote>Looking at the real-time database the ID is present all be it encoded with <ENDPOINT>^3B which is the encoding for a semicolon. Therefore it looks like the cache isn't matching the object correctly or not being inserted in the first place. <br></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">I can look at this this afternoon. Can you open an Jira issue?</div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"> <br>I don't believe this relates to the full_backend_cache as this issue is also present on another test box which is using standard cache.<br> <br>Any advice on how to resolve/investigate the issue would be helpful.<br></div></div></blockquote><div><br></div><div><br></div><div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">I think you've provided enough.</div></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"> <br>Kind regards,<span class="HOEnZb"><font color="#888888"><br> <br>Ross<br> </font></span></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br></div></div>