fix Ooutboundmedia

This commit is contained in:
afjcjsbx committed 2026-03-23 00:08:43 +01:00
1 parent f735b0551c
commit 1e98f86fa9
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -2413,7 +2413,7 @@ turnLoop:
})
}
if len(toolResult.Media) > 0 {
if len(toolResult.Media) > 0 && toolResult.ResponseHandled {
parts := make([]bus.MediaPart, 0, len(toolResult.Media))
for _, ref := range toolResult.Media {
part := bus.MediaPart{Ref: ref}