Without these -- especially activate() -- stateful plugins will not be
set up correctly.
For example, the low-pass filter "lpf" in the CMT library may produce
a pop when starting since its state is not zeroed out.
}
}
}
+
+ if (pvt->ldesc->activate) {
+ switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(pvt->session), SWITCH_LOG_DEBUG, "ACTIVATE\n");
+ pvt->ldesc->activate(pvt->handle);
+ }
}
break;
}
if (pvt->handle && pvt->ldesc) {
+ if (pvt->ldesc->deactivate) {
+ pvt->ldesc->deactivate(pvt->handle);
+ }
+
pvt->ldesc->cleanup(pvt->handle);
}