chore: dont extract variable on voicemail

This commit is contained in:
Abhishek Kumar 2026-03-19 15:58:09 +05:30
parent 3216dc7fbd
commit f6239ca476

View file

@ -594,7 +594,10 @@ class PipecatEngine:
# Mute the pipeline
self._mute_pipeline = True
if reason != EndTaskReason.PIPELINE_ERROR.value:
if reason not in (
EndTaskReason.PIPELINE_ERROR.value,
EndTaskReason.VOICEMAIL_DETECTED.value,
):
# Perform final variable extraction synchronously before ending
await self._perform_variable_extraction_if_needed(
self._current_node, run_in_background=False