[asterisk-bugs] [JIRA] (ASTERISK-25811) Unable to delete object from sorcery cache

Ross Beer (JIRA) noreply at issues.asterisk.org
Fri Feb 26 03:47:57 CST 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229724#comment-229724 ] 

Ross Beer commented on ASTERISK-25811:
--------------------------------------

Hi George,

We are now patching our test box to see if this resolves the issue, I will update you with how we get on.

I am also seeing a lot of these types of error:

{quote}
[2016-02-26 09:04:12] ERROR[31560]: res_pjsip_registrar.c:541 rx_task: Failed to update contact 'sip:<End Point 1>@<IP ADD 1>:6110' expiration time to 60 seconds.
[2016-02-26 09:05:08] ERROR[31659]: res_pjsip_registrar.c:541 rx_task: Failed to update contact 'sip:<End Point 2>@<IP ADD 2>:6040' expiration time to 60 seconds.
[2016-02-26 09:05:08] ERROR[4735]: res_pjsip_registrar.c:541 rx_task: Failed to update contact 'sip:<End Point 3>@<IP ADD 3>:6070' expiration time to 60 seconds.
[2016-02-26 09:05:08] WARNING[31659]: pjsip:0 <?>:      sip_transactio Unable to register REGISTER transaction (key exists)
[2016-02-26 09:05:08] WARNING[4735]: pjsip:0 <?>:       sip_transactio Unable to register REGISTER transaction (key exists)
[2016-02-26 09:05:08] WARNING[4735]: pjsip:0 <?>:       sip_transactio Unable to register REGISTER transaction (key exists)
{quote}

Looking at the source code this looks to be related to the contact lookup also, will the patch also fix this issue?

> Unable to delete object from sorcery cache
> ------------------------------------------
>
>                 Key: ASTERISK-25811
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25811
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Sorcery
>    Affects Versions: 13.7.2
>         Environment: Centos 7
>            Reporter: Ross Beer
>            Assignee: Ross Beer
>
> Sorcery cache throws an error on unregister:
> {quote}
> [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
>  Contact <ENDPOINT>/sip:<ENDPOINT>@<IP Address>:39212;transport=TLS has been deleted
>     -- Added contact 'sip:<ENDPOINT>@<IP Address>:39212;transport=TLS' to AOR '<ENDPOINT>' with expiration of 60 seconds
>  Contact <ENDPOINT>/sip:<ENDPOINT>@<IP Address>:39212;transport=TLS has been created
>  Contact <ENDPOINT>/sip:<ENDPOINT>@<IP Address>:39212;transport=TLS is now Unknown.  RTT: 0.000 msec
> {quote}
> 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.
> Sourcery is configured in the following way:
> {quote}
> contact/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes
> contact=config,pjsip.conf,criteria=type=contact
> contact=realtime,ps_contacts
> {quote}
> 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. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list