<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi George,<BR> <BR>I have created an issue on Jira as requested, the issue can be found here:<BR> <BR><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25811">https://issues.asterisk.org/jira/browse/ASTERISK-25811</a><BR> <BR>Thank you for your assistance with this bug,<BR> <BR>Kind regards,<BR><br>Ross<br> <BR><div><hr id="stopSpelling">From: george.joseph@fairview5.com<br>Date: Thu, 25 Feb 2016 08:15:15 -0700<br>To: asterisk-dev@lists.digium.com<br>Subject: Re: [asterisk-dev] Sorcery Cache Error<br><br><div dir="ltr"><div class="ecxgmail_default" style="font-family: arial narrow,sans-serif;"><br></div><div class="ecxgmail_extra"><br><div class="ecxgmail_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="ecxgmail_quote" style="padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">


<div><div dir="ltr">Hi,<br> <br>I am receiving the below message when using Sorcery cache:<br> <br><blockquote 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="ecxgmail_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="ecxgmail_quote" style="padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div><div dir="ltr"><br> <br>Therefore is full cache setup in the same way as other object settings?<br> <br><blockquote 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="ecxgmail_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="ecxgmail_quote" style="padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div><div dir="ltr"><blockquote 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="ecxgmail_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="ecxgmail_quote" style="padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><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="ecxgmail_default" style='font-family: "arial narrow",sans-serif;'>​I think you've provided enough.​</div></div><div> <br></div><blockquote class="ecxgmail_quote" style="padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div><div dir="ltr"> <br>Kind regards,<span class="ecxHOEnZb"><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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br></div></div>
<br>-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev</div>                                      </div></body>
</html>