[asterisk-bugs] [JIRA] (ASTERISK-26681) Local Channels Not Optimizing

Michael Cargile (JIRA) noreply at issues.asterisk.org
Wed Dec 28 09:33:11 CST 2016


Michael Cargile created ASTERISK-26681:
------------------------------------------

             Summary: Local Channels Not Optimizing
                 Key: ASTERISK-26681
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26681
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_local
    Affects Versions: 13.13.1
         Environment: OpenSuSE 42.1, Intel i5, 8gigs RAM, SSD
            Reporter: Michael Cargile


Local Channels created with an AMI Originate are not optimizing when connected, even with 30 seconds of Wait.

Here is the Originate action:

Action: Originate
Exten: 8368
Context: default
Channel: Local/917275777470 at default
Priority: 1
Callerid: "V2281014450000060013" <0000000000>
Timeout: 60000


[Dec 28 10:14:45]     -- Executing [917275777470 at default:1] AGI("Local/917275777470 at default-000004df;2", "agi://127.0.0.1:4577/call_log") in new stack
[Dec 28 10:14:45]     -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=TESTCAMP))
[Dec 28 10:14:45]     -- <Local/917275777470 at default-000004df;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Dec 28 10:14:45]     -- Executing [917275777470 at default:2] Dial("Local/917275777470 at default-000004df;2", "SIP/office-server/17275777470,,To") in new stack
[Dec 28 10:14:45]   == Using SIP RTP CoS mark 5
[Dec 28 10:14:45]     -- Called SIP/office-server/17275777470
[Dec 28 10:14:46]     -- SIP/office-server-00000005 is making progress passing it to Local/917275777470 at default-000004df;2
[Dec 28 10:14:46]     -- Local/917275777470 at default-000004df;1 is making progress
[Dec 28 10:14:46]        > 0x2491cb0 -- Probation passed - setting RTP source address to 192.168.198.1:14632
[Dec 28 10:14:46]   == Manager 'sendcron' logged off from 127.0.0.1
[Dec 28 10:14:49]     -- SIP/office-server-00000005 answered Local/917275777470 at default-000004df;2
[Dec 28 10:14:49]     -- Local/917275777470 at default-000004df;1 answered
[Dec 28 10:14:49]     -- Executing [8368 at default:1] Playback("Local/917275777470 at default-000004df;1", "sip-silence") in new stack
[Dec 28 10:14:49]     -- <Local/917275777470 at default-000004df;1> Playing 'sip-silence.gsm' (language 'en')
[Dec 28 10:14:49]     -- Channel SIP/office-server-00000005 joined 'simple_bridge' basic-bridge <db97acc5-5803-4b9a-9ee0-e5d72c11b9c6>
[Dec 28 10:14:49]     -- Channel Local/917275777470 at default-000004df;2 joined 'simple_bridge' basic-bridge <db97acc5-5803-4b9a-9ee0-e5d72c11b9c6>
[Dec 28 10:14:49]     -- Executing [8368 at default:2] Wait("Local/917275777470 at default-000004df;1", "30") in new stack
[Dec 28 10:15:19]     -- Executing [8368 at default:3] DumpChan("Local/917275777470 at default-000004df;1", "") in new stack
[Dec 28 10:15:19]
[Dec 28 10:15:19] Dumping Info For Channel: Local/917275777470 at default-000004df;1:
[Dec 28 10:15:19] ================================================================================
[Dec 28 10:15:19] Info:
[Dec 28 10:15:19] Name=               Local/917275777470 at default-000004df;1
[Dec 28 10:15:19] Type=               Local
[Dec 28 10:15:19] UniqueID=           1482938085.4983
[Dec 28 10:15:19] LinkedID=           1482938085.4983
[Dec 28 10:15:19] CallerIDNum=        0000000000
[Dec 28 10:15:19] CallerIDName=       V2281014450000060013
[Dec 28 10:15:19] ConnectedLineIDNum= 0000000000
[Dec 28 10:15:19] ConnectedLineIDName=V2281014450000060013
[Dec 28 10:15:19] DNIDDigits=         (N/A)
[Dec 28 10:15:19] RDNIS=              (N/A)
[Dec 28 10:15:19] Parkinglot=
[Dec 28 10:15:19] Language=           en
[Dec 28 10:15:19] State=              Up (6)
[Dec 28 10:15:19] Rings=              0
[Dec 28 10:15:19] NativeFormat=       (slin)
[Dec 28 10:15:19] WriteFormat=        slin
[Dec 28 10:15:19] ReadFormat=         slin
[Dec 28 10:15:19] RawWriteFormat=     slin
[Dec 28 10:15:19] RawReadFormat=      slin
[Dec 28 10:15:19] WriteTranscode=     No
[Dec 28 10:15:19] ReadTranscode=      No
[Dec 28 10:15:19] 1stFileDescriptor=  -1
[Dec 28 10:15:19] Framesin=           1663
[Dec 28 10:15:19] Framesout=          1
[Dec 28 10:15:19] TimetoHangup=       0
[Dec 28 10:15:19] ElapsedTime=        0h0m34s
[Dec 28 10:15:19] BridgeID=           (Not bridged)
[Dec 28 10:15:19] Context=            default
[Dec 28 10:15:19] Extension=          8368
[Dec 28 10:15:19] Priority=           3
[Dec 28 10:15:19] CallGroup=
[Dec 28 10:15:19] PickupGroup=
[Dec 28 10:15:19] Application=        DumpChan
[Dec 28 10:15:19] Data=               (Empty)
[Dec 28 10:15:19] Blocking_in=        (Not Blocking)
[Dec 28 10:15:19]
[Dec 28 10:15:19] Variables:
[Dec 28 10:15:19] PLAYBACKSTATUS=SUCCESS
[Dec 28 10:15:19] ================================================================================
[Dec 28 10:15:19]     -- Executing [8368 at default:4] AGI("Local/917275777470 at default-000004df;1", "agi://127.0.0.1:4577/call_log") in new stack
[Dec 28 10:15:19]     -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=TESTCAMP))
[Dec 28 10:15:19]     -- <Local/917275777470 at default-000004df;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Dec 28 10:15:19]     -- Executing [8368 at default:5] AGI("Local/917275777470 at default-000004df;1", "agi-VDAD_ALL_outbound.agi,NORMAL-----LB") in new stack
[Dec 28 10:15:19]     -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_outbound.agi
[Dec 28 10:15:20]     -- <Local/917275777470 at default-000004df;1>AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Dec 28 10:15:20]     -- Executing [8368 at default:6] AGI("Local/917275777470 at default-000004df;1", "agi-VDAD_ALL_outbound.agi,NORMAL-----LB") in new stack
[Dec 28 10:15:21]     -- <Local/917275777470 at default-000004df;1>AGI Script agi-VDAD_ALL_outbound.agi completed, returning 0
[Dec 28 10:15:21]     -- Executing [8368 at default:7] Hangup("Local/917275777470 at default-000004df;1", "") in new stack
[Dec 28 10:15:21]   == Spawn extension (default, 8368, 7) exited non-zero on 'Local/917275777470 at default-000004df;1'
[Dec 28 10:15:21]     -- Executing [h at default:1] AGI("Local/917275777470 at default-000004df;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Dec 28 10:15:22]     -- <Local/917275777470 at default-000004df;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0
[Dec 28 10:15:22]     -- Channel Local/917275777470 at default-000004df;2 left 'simple_bridge' basic-bridge <db97acc5-5803-4b9a-9ee0-e5d72c11b9c6>
[Dec 28 10:15:22]     -- Channel SIP/office-server-00000005 left 'simple_bridge' basic-bridge <db97acc5-5803-4b9a-9ee0-e5d72c11b9c6>
[Dec 28 10:15:22]   == Spawn extension (default, 917275777470, 2) exited non-zero on 'Local/917275777470 at default-000004df;2'
[Dec 28 10:15:22]     -- Executing [h at default:1] AGI("Local/917275777470 at default-000004df;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----37-----33") in new stack
[Dec 28 10:15:23]     -- <Local/917275777470 at default-000004df;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----37-----33 completed, returning 0

In Asterisk 11 and earlier Local channel optimization was triggered during audio processing. I am not sure if that is still the case now that it has been moved into the Core, but I have confirmed that there is audio on these calls.

It would actually be great if the LocalOptimizeAway actually triggered an optimization rather than just clearing the 'n' flag from the channel. Either that or there was a dialplan application that would for optimization on a Local Channel no matter what.



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



More information about the asterisk-bugs mailing list