[asterisk-bugs] [JIRA] (ASTERISK-24224) When using Bridge() dialplan application, surrogate channel appears in list and call count is inflated.

Mark Michelson (JIRA) noreply at issues.asterisk.org
Tue Aug 12 17:10:28 CDT 2014


Mark Michelson created ASTERISK-24224:
-----------------------------------------

             Summary: When using Bridge() dialplan application, surrogate channel appears in list and call count is inflated.
                 Key: ASTERISK-24224
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24224
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
    Affects Versions: 13.0.0-beta1, 12.4.0
            Reporter: Mark Michelson
            Severity: Minor


Perform the following steps:
# Set up two phones and corresponding configuration in the appropriate channel driver. I used PJSIP/203 and PJSIP/205
# Add the following to your dialplan:
{noformat}
[default]
exten => 300,1,Answer()
exten => 300,n,Echo()

exten => 301,1,Answer
exten => 301,1,Bridge(PJSIP/205)
{noformat}
# Have PJSIP/205 call extension 300.
# Have PJSIP/203 call extension 301.
# Issue {{core show channels}} on the CLI. This is how mine looked
{noformat}
*CLI> core show channels
Channel              Location             State   Application(Data)             
Surrogate/PJSIP/205- (None)               Down    ()                            
PJSIP/203-00000001   (None)               Up      Bridge(PJSIP/205,F)           
PJSIP/205-00000000   (None)               Up      ()                            
2 active channels
1 active call
2 calls processed
{noformat}
Notice the Surrogate channel listed? Asterisk reports only having two active channels, but three are listed.
# Hang up either phone.
# Issue another {core show channels}. This is how mine looked:
{noformat}
*CLI> core show channels
Channel              Location             State   Application(Data)             
0 active channels
0 active calls
3 calls processed
{noformat}
Notice how hanging up the call has increased the number of calls processed from 2 to 3.

While I don't necessarily expect the call count to be a priority, seeing the surrogate channel in the output of core show channels is ungood.



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



More information about the asterisk-bugs mailing list