[asterisk-bugs] [JIRA] (ASTERISK-27679) res_pjsip: Endpoint destruction does not free DTLS configuration

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Mon Apr 1 13:21:53 CDT 2019


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Harwell updated ASTERISK-27679:
-------------------------------------

    Target Release Version/s: 16.3.0

> res_pjsip: Endpoint destruction does not free DTLS configuration
> ----------------------------------------------------------------
>
>                 Key: ASTERISK-27679
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27679
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 13.18.2, 14.6.2, 15.2.0
>         Environment: CentOS Linux release 7.4.1708 (Core)
> Docker version 17.09.1-ce, build 19e2cf6
> Asterisk and DB are working in different docker containers.
>            Reporter: Mak Dee
>            Assignee: Sean Bright
>              Labels: pjsip
>      Target Release: 13.20.0, 15.3.0, 16.0.0, 16.3.0
>
>         Attachments: mem_alloc_-_sorcery_memory_cache_and_realtime_dis._(0m._up).txt, mem_alloc_-_sorcery_memory_cache_and_realtime_dis._(35m._up).txt, mem_alloc_-_sorcery_memory_cache_and_realtime_en._(0m._up).txt, mem_alloc_-_sorcery_memory_cache_and_realtime_en._(1h._up).txt, memory_show_allocations_rtp_engine.c.txt
>
>
> Problem described in parent task and I’ve faced the same issue.
> I did some investigation and there is what I’ve found out.
> When I remove lines which relate to the «realtime» and memory_cache from sorcery.conf then «rtp_engine.c» doesn’t allocate memory during the time. This is figured out in two pastes below:
> [^mem_alloc_-_sorcery_memory_cache_and_realtime_dis._(0m._up).txt]
> [^mem_alloc_-_sorcery_memory_cache_and_realtime_dis._(35m._up).txt]
> When I add lines which relate to the «realtime» and memory_cache to the sorcery.conf then memory allocation by «rtp_engine.c» starts to increase during the time. This is also figured out in two pastes below:
> [^mem_alloc_-_sorcery_memory_cache_and_realtime_en._(0m._up).txt]
> [^mem_alloc_-_sorcery_memory_cache_and_realtime_en._(1h._up).txt]
> Output for memory show allocations rtp_engine.c [^memory_show_allocations_rtp_engine.c.txt]
> Sorcery cache:
> {code:title=aor.cli|borderStyle=solid}
> CLI> sorcery memory cache show res_pjsip/aor
> Sorcery memory cache: res_pjsip/aor
> Number of objects within cache: 15
> Maximum allowed objects: 100
> Number of seconds before object expires: 1800
> Number of seconds before object becomes stale: 1500
> Expire all objects on reload: On
> {code}
> {code:title=auth.cli|borderStyle=solid}
> CLI> sorcery memory cache show res_pjsip/auth
> Sorcery memory cache: res_pjsip/auth
> Number of objects within cache: 15
> There is no limit on the maximum number of objects in the cache
> Number of seconds before object expires: 1800
> Number of seconds before object becomes stale: 200
> Expire all objects on reload: On
> {code}
> {code:title=endpoint.cli|borderStyle=solid}
> CLI> sorcery memory cache show res_pjsip/endpoint
> Sorcery memory cache: res_pjsip/endpoint
> Number of objects within cache: 15
> Maximum allowed objects: 100
> Number of seconds before object expires: 600
> Number of seconds before object becomes stale: 60
> Expire all objects on reload: On
> {code}
> {code:title= registration.cli|borderStyle=solid}
> CLI> sorcery memory cache show res_pjsip/registration
> Sorcery memory cache: res_pjsip/registration
> Number of objects within cache: 0
> Maximum allowed objects: 100
> Number of seconds before object expires: 600
> Number of seconds before object becomes stale: 60
> Expire all objects on reload: On
> {code}
> {code:title= transport.cli|borderStyle=solid}
> CLI> sorcery memory cache show res_pjsip/transport
> Sorcery memory cache: res_pjsip/transport
> Number of objects within cache: 3
> There is no limit on the maximum number of objects in the cache
> Object expiration is not enabled - cached objects will not expire
> Object staleness is not enabled - cached objects will not go stale
> Expire all objects on reload: On
> {code}
> {code:title= identify.cli|borderStyle=solid}
> CLI> sorcery memory cache show res_pjsip/identify
> Sorcery memory cache: res_pjsip/identify
> Number of objects within cache: 2
> Maximum allowed objects: 100
> Number of seconds before object expires: 3600
> Number of seconds before object becomes stale: 60
> Expire all objects on reload: On
> {code}
> During the test, the PBX didn’t receive or make a calls.



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



More information about the asterisk-bugs mailing list