[asterisk-bugs] [JIRA] (ASTERISK-28197) ast_endpoint struct holds the channel_ids of channels until the asterisk process stops even when those channels have been destroyed for a long time
mohit dhiman (JIRA)
noreply at issues.asterisk.org
Thu Dec 6 00:27:47 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-28197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=245650#comment-245650 ]
mohit dhiman edited comment on ASTERISK-28197 at 12/6/18 12:26 AM:
-------------------------------------------------------------------
attached file originate_bridge_channel_count_test.txt is the actual console output with added warning logs that give me the channel count every time a endpoint_snapshot gets created.
*dialplan was as simple as:*
{code:title=extensions.conf}
[test]
exten => h,1,Hangup()
exten => originate,1,set(GLOBAL(channelorig)=${CHANNEL})
exten => originate,2,wait(20)
exten => bridge,1,Bridge(${channelorig})
{code}
*cli commands to make a call.*
{code:title=cli commands}
originate SIP/201 extension originate at test
originate SIP/201 extension bridge at test
{code}
endpoint *SIP/201* is another asterisk running on another machine and just receiving the call and putting the call to wait application.
was (Author: mohitdhiman):
attached file originate_bridge_channel_count_test.txt is the actual console output with added warning logs that give me the channel count every time a endpoint_snapshot gets created.
*dialplan was as simple as:*
{{[test]
exten => h,1,Hangup()
exten => originate,1,set(GLOBAL(channelorig)=${CHANNEL})
exten => originate,2,wait(20)
exten => bridge,1,Bridge(${channelorig})}}
*cli commands to make a call.*
{{originate SIP/201 extension originate at test
originate SIP/201 extension bridge at test}}
endpoint *SIP/201* is another asterisk running on another machine and just receiving the call and putting the call to wait application.
> ast_endpoint struct holds the channel_ids of channels until the asterisk process stops even when those channels have been destroyed for a long time
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-28197
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28197
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_sip/General
> Affects Versions: 13.21.0
> Environment: Centos 7
> Reporter: mohit dhiman
> Labels: endpoints.c
> Attachments: originate_bridge_channel_count_test.txt
>
>
> For every call i made through asterisk to an endpoint the {{ast_endpoint}} struct adds that channel to its channel_ids {{ao2_container}} and after the channel gets destroyed it should remove it from that channel_ids list but the {{channel_count}} for endpoint is continuously increasing for every call i make to that endpoint.
> i verified this by adding some warning logs to the {{ast_endpoint_snapshot_create}} function of {{main/endpoints.c}}, this log prints the channel_count for that endpoint.
> [Dec 5 17:14:45] WARNING[7397] endpoints.c: channel count: 107069 max channel: -1
> [Dec 5 17:14:45] WARNING[7397] endpoints.c: channel count: 107070 max channel: -1
> [Dec 5 17:14:45] WARNING[7397] endpoints.c: channel count: 107071 max channel: -1
> [Dec 5 17:14:45] WARNING[7397] endpoints.c: channel count: 107072 max channel: -1
> here channel count corresponds to
> {{channel_count = ao2_container_count(endpoint->channel_ids);}}
> also there are no more than 400 channels at any instance.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list