[asterisk-bugs] [JIRA] (ASTERISK-21384) Unique ID Call Count Increasing By 2

Matt Jordan (JIRA) noreply at issues.asterisk.org
Fri Apr 5 15:50:01 CDT 2013


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

Matt Jordan commented on ASTERISK-21384:
----------------------------------------

I don't think we have enough information to know what you're referring to exactly.

{quote}
'core show channels' shows half the call count of the unique id '.45345' call count. This happens with every single call where as it should only increase by one to give an accurate call count.
{quote}

What do you mean by "the unique id '.45345'" call count?

Regardless, there are few things to note about the call count of 'core show channels'. The current call count/processed call count only take into account the number of times a {{pbx_thread}} was spawned for a channel. That works okay when all you have is inbound <=> outbound channel in two party bridges. That notion, however, is worthless in any sufficiently complex and realistic scenario.

If a peer is ejected from a bridge into the dialplan when the caller hangs up (which is a valid option in Dial), your call count is messed up.

If you originate two channels and put them in a bridge, that's counted as two calls, and the call count  is wrong.

If you blind transfer a peer into the dialplan, your call count is messed up.

And so on.

The problem is: Asterisk doesn't know what a 'call' is. It never has. It knows what channels are, but defining the concept of a 'call' doesn't make sense in Asterisk, as no two systems agree on what a 'call' is. Even if all PBXs agreed on the concept of a 'call', Asterisk isn't always used as a PBX.

Hence, this value is essentially meaningless.

The only reason it still exists at all is because it is *old*, and no one bothered to remove it.

If you need to know what a call is, particularly for business purposes, Asterisk provides numerous ways of helping you determine what your calls are. But it does not - and should not - attempt to do it for you.
                
> Unique ID Call Count Increasing By 2
> ------------------------------------
>
>                 Key: ASTERISK-21384
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21384
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/General
>    Affects Versions: 1.8.21.0, 11.3.0
>            Reporter: Ross Beer
>            Severity: Critical
>
> The channel count and sequence numbers are increasing by 2 for each call. 
> 'core show channels' shows half the call count of the unique id '.45345' call count. This happens with every single call where as it should only increase by one to give an accurate call count. 
> This variable is needed in our application.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list