As I understand, Local channel will try to optimize itself out of the call path by default, as long the “n” option is not set. However, after the real destination answers, I can still see local channels in active channel list. Is this a bug, or are there some conditions that can prevent optimization? Asterisk version is 15.1.5.
queues.conf
[general]
autofill=yes
shared_lastcall=yes
monitor-type=MixMonitor
updatecdr=yes
[StandardQueue](!)
strategy=ringall
joinempty=no
leavewhenempty=yes
ringinuse=yes
timeout=60
retry=1
announce-position=no
setqueueentryvar=yes
setinterfacevar=yes
[Test](StandardQueue)
announce-position=no
announce-holdtime=no
periodic-announce=
announce-frequency=0
periodic-announce-frequency=0
min-announce-frequency=0
member => Local/605@agent-dial,,PJSIP/605,hint:605@phones
extensions.ael
context agent-dial {
_X. => {
Dial(${PJSIP_DIAL_CONTACTS(${EXTEN})},,);
}
}
asterisk -rnx "core show channels verbose"
Channel Context Extension Prio State Application Data CallerID Duration Accountcode PeerAccount BridgeID
Local/605@agent-dial agent-dial 605 1 Up Dial PJSIP/605/sips:605@82.214 0123456789 00:00:20 8d648b20-3ff4-4849-8
Local/605@agent-dial agent-dial 12345678901 1 Up AppQueue (Outgoing Line) 605 00:00:20 47ecae2e-7f3a-4c52-a
PJSIP/akton123-00000 bridge 12345678901 191 Up Queue Test,htkxC,,,3 0123456789 00:00:28 47ecae2e-7f3a-4c52-a
PJSIP/605-0000028d phones 1 Up AppDial (Outgoing Line) 605 00:00:20 8d648b20-3ff4-4849-8
4 active channels
2 active calls