[ASTREX-17] New switch bridging architecture
Purely major performance optimizations. Currently, DSP is more or less running all the time on every chan_dahdi
channel:
callwaitingcallerid=yes
, then DSP is also always enabled (see https://github.com/asterisk/asterisk/blob/master/channels/dahdi/bridge_native_dahdi.c#L672). This is highly unnecessarily, since detection of the CPE DTMF ACK is only necessary for maybe 2 seconds out of the whole call - it should be enabled when needed on-demand, and remain disabled if not otherwise needed for the remainder of the call. This also inhibits native bridging from being used, which is another disadvantage of being liberal with when we're running DSP on a channel.Other housekeeping items:
CHANNEL
function, that should override it for the duration the DAHDI channel is off-hook, but be reset afterwards.You must be