late-answer-72498
11/23/2025, 7:25 PMagent-starter-node@1.0.0 dev /Users/lukas/Developer/dormero-agent-node
tsx src/agent.ts dev[202121.669] WARN (85655): job process orphaned, shutting down. jobID: "AJ_ivoyhKTRZND5" libc++abi: terminating due to uncaught exception of type std: 1system error mutex lock failed: Invalid argument objc[4337]: Class GNotificationCenterDelegate is implemented in both /Users/lukas/Developer/dormero-agent-node/node_modules/.pnpm/@img+sharp-libvips-darwin-arm64@1.2.0/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.1.dylib (0x12fd19af0) and /Users/lukas/Developer/dormero-agent-node/node_modules/.pnpm/@img+sharp-libvips-darwin-arm64@1.2.4/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib (0x136535978). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. [dotenv@17.2.3] injecting env (11) from .env.local -- tip: ⚙️ load multiple .env files with { path: ['.env.local', '.env'] } objc[4365]: Class GNotificationCenterDelegate is implemented in both /Users/lukas/Developer/dormero-agent-node/node_modules/.pnpm/@img+sharp-libvips-darwin-arm64@1.2.0/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.1.dylib (0x126539af0) and /Users/lukas/Developer/dormero-agent-node/node_modules/.pnpm/@img+sharp-libvips-darwin-arm64@1.2.4/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib (0x1276b1978). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. [202123.973] INFO (4337): starting worker version: "0.1.0" [202123.980] INFO (4337): Server is listening on port 58695 [202123.983] INFO (4337): registered worker version: "0.1.0" id: "AW_fWhT7GCFbLfz" server_info: { "edition": "Standard", "version": "1.9.4", "protocol": 16, "region": "", "nodeId": "ND_NWrMmQAKt3jn", "debugInfo": "", "agentProtocol": 1 } objc[4563]: Class GNotificationCenterDelegate is implemented in both /Users/lukas/Developer/dormero-agent-node/node_modules/.pnpm/@img+sharp-libvips-darwin-arm64@1.2.0/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.1.dylib (0x169d19af0) and /Users/lukas/Developer/dormero-agent-node/node_modules/.pnpm/@img+sharp-libvips-darwin-arm64@1.2.4/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib (0xfa8ddd978). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. [dotenv@17.2.3] injecting env (0) from .env.local -- tip: ⚙️ specify custom .env file path with { path: '/custom/path/.env' } [202129.999] INFO (4563): participantValue.trackPublications participantValue: "voice_assistant_user_3972" trackPublications: [ { "info": { "sid": "TR_AM6oKMnan84HPE", "name": "", "kind": "KIND_AUDIO", "source": "SOURCE_MICROPHONE", "simulcasted": false, "width": 0, "height": 0, "mimeType": "audio/red", "muted": false, "remote": true, "encryptionType": "NONE", "audioFeatures": [ "TF_AUTO_GAIN_CONTROL", "TF_ECHO_CANCELLATION", "TF_NOISE_SUPPRESSION" ] }, "ffiHandle": {}, "subscribed": false } ] lengthOfTrackPublications: 1 [202129.362] INFO (4337): received job request version: "0.1.0" job: { "id": "AJ_Umm7uEQQXDuw", "type": "JT_ROOM", "room": { "sid": "RM_Vhsd8gEVFY6N", "name": "voice_assistant_room_6151", "emptyTimeout": 300, "maxParticipants": 0, "creationTime": "1763925689", "turnPassword": "DCmbMOY1IhwBifTtcRpKZaQG8jG5E1j6FU6o0DkSljc", "enabledCodecs": [ { "mime": "audio/PCMU", "fmtpLine": "" }, { "mime": "audio/PCMA", "fmtpLine": "" }, { "mime": "audio/opus", "fmtpLine": "" }, { "mime": "audio/red", "fmtpLine": "" }, { "mime": "video/VP8", "fmtpLine": "" }, { "mime": "video/H264", "fmtpLine": "" }, { "mime": "video/VP9", "fmtpLine": "" }, { "mime": "video/AV1", "fmtpLine": "" }, { "mime": "video/H265", "fmtpLine": "" }, { "mime": "video/rtx", "fmtpLine": "" } ], "metadata": "", "numParticipants": 0, "activeRecording": false, "numPublishers": 0, "departureTimeout": 20, "creationTimeMs": "1763925689158" }, "namespace": "", "metadata": "", "agentName": "", "state": { "status": "JS_RUNNING", "error": "", "startedAt": "1763925689359920000", "endedAt": "0", "updatedAt": "1763925689359920000", "participantIdentity": "", "workerId": "AW_fWhT7GCFbLfz", "agentId": "" }, "dispatchId": "AD_k8hZo8GkXwN3", "enableRecording": false } resuming: false agentName: "" [202129.993] DEBUG (lk-rtc/4563): Connect callback received [202132.145] INFO (4563): TTS metrics ttfbMs: 938 audioDurationMs: 2800 [202134.266] INFO (4563): VAD metrics idleTimeMs: 0 inferenceDurationTotalMs: 24 inferenceCount: 1 [202134.937] INFO (4563): STT metrics audioDurationMs: 2900 [202139.107] INFO (4563): Creating speech handle speech_id: "speech_0a54dc31-e7c" [202139.108] INFO (4563): EOU metrics endOfUtteranceDelayMs: 588 transcriptionDelayMs: 367 onUserTurnCompletedDelayMs: 0 Transferring call to human with reason: Kundenwunsch zur direkten Weiterleitung an Mitarbeiter Calling supervisor <MYRECEIVINGNUMBER> on trunk <TRUNKID> to room voice_assistant_room_6151-supervisor SIP service error: Redis is required for SIP functionality. If using LiveKit Cloud, ensure SIP service is enabled. If running locally, ensure Redis is running. Error starting transfer: Error: SIP-Dienst nicht verfügbar. Bitte überprüfen Sie die Konfiguration oder versuchen Sie es später erneut. at SessionManager.startTransfer (/Users/lukas/Developer/dormero-agent-node/src/transfer-to-human.ts19917) at process.processTicksAndRejections (nodeinternal/process/task queues105:5) at async transferToHuman (/Users/lukas/Developer/dormero-agent-node/src/transfer-to-human.ts3673) at async Object.execute (/Users/lukas/Developer/dormero-agent-node/src/agent.ts11620) at async <anonymous> (/Users/lukas/Developer/dormero-agent-node/node_modules/.pnpm/@livekit+agents@1.0.20_@livekit+rtc-node@0.13.21_zod@3.25.76/node_modules/@livekit/agents/src/voice/generation.ts78416) [202140.097] DEBUG (lk-rtc/4563): Connect callback received [202140.036] INFO (4563): Executing LLM tool call function: "transferToHuman" arguments: { "reason": "Kundenwunsch zur direkten Weiterleitung an Mitarbeiter" } speech_id: "speech_0a54dc31-e7c" [202140.040] INFO (4563): LLM metrics ttftMs: 927 inputTokens: 1172 promptCachedTokens: 0 outputTokens: 24 tokensPerSecond: 25.75 [202140.110] INFO (4563): mainTask: draining and no more speech tasks [202140.110] INFO (4563): AgentActivity mainTask: exiting objc[4922]: Class GNotificationCenterDelegate is implemented in both /Users/lukas/Developer/dormero-agent-node/node_modules/.pnpm/@img+sharp-libvips-darwin-arm64@1.2.0/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.1.dylib (0x13416daf0) and /Users/lukas/Developer/dormero-agent-node/node_modules/.pnpm/@img+sharp-libvips-darwin-arm64@1.2.4/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib (0x13623d978). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. [dotenv@17.2.3] injecting env (0) from .env.local -- tip: 🛠️ run anywhere with
dotenvx run -- yourcommand
[202140.795] INFO (4922): participantValue.trackPublications
participantValue: "transfer-agent"
trackPublications: []
lengthOfTrackPublications: 0
[202140.789] DEBUG (lk-rtc/4922): Connect callback received
[202140.242] INFO (4337): received job request
version: "0.1.0"
job: {
"id": "AJ_U2WYhVq8zUVP",
"type": "JT_ROOM",
"room": {
"sid": "RM_jUpGUJtuCGC3",
"name": "voice_assistant_room_6151-supervisor",
"emptyTimeout": 300,
"maxParticipants": 0,
"creationTime": "1763925700",
"turnPassword": "Mrx5PkE8FBWmmaLQRsdvqPSEzmLqYPb0Om6seRAuOmf",
"enabledCodecs": [
{
"mime": "audio/PCMU",
"fmtpLine": ""
},
{
"mime": "audio/PCMA",
"fmtpLine": ""
},
{
"mime": "audio/opus",
"fmtpLine": ""
},
{
"mime": "audio/red",
"fmtpLine": ""
},
{
"mime": "video/VP8",
"fmtpLine": ""
},
{
"mime": "video/H264",
"fmtpLine": ""
},
{
"mime": "video/VP9",
"fmtpLine": ""
},
{
"mime": "video/AV1",
"fmtpLine": ""
},
{
"mime": "video/H265",
"fmtpLine": ""
},
{
"mime": "video/rtx",
"fmtpLine": ""
}
],
"metadata": "",
"numParticipants": 0,
"activeRecording": false,
"numPublishers": 0,
"departureTimeout": 20,
"creationTimeMs": "1763925700040"
},
"namespace": "",
"metadata": "",
"agentName": "",
"state": {
"status": "JS_RUNNING",
"error": "",
"startedAt": "1763925700242050000",
"endedAt": "0",
"updatedAt": "1763925700242050000",
"participantIdentity": "",
"workerId": "AW_fWhT7GCFbLfz",
"agentId": ""
},
"dispatchId": "AD_CgxiUKpAsCXa",
"enableRecording": false
}
resuming: false
agentName: ""
[202141.466] INFO (4922): TTS metrics
ttfbMs: 636
audioDurationMs: 3483
[202141.532] INFO (4563): TTS metrics
ttfbMs: 637
audioDurationMs: 4400
[202145.716] INFO (4563): VAD metrics
idleTimeMs: 0
inferenceDurationTotalMs: 58
inferenceCount: 1
[202145.736] INFO (4563): STT metrics
audioDurationMs: 4700
[202147.512] INFO (4563): Creating speech handle
speech_id: "speech_60b051d3-9c6"
[202147.512] INFO (4563): EOU metrics
endOfUtteranceDelayMs: 576
transcriptionDelayMs: 463
onUserTurnCompletedDelayMs: 0
[202148.300] INFO (4563): LLM metrics
ttftMs: 498
inputTokens: 1209
promptCachedTokens: 0
outputTokens: 16
tokensPerSecond: 20.33
[202149.523] INFO (4563): TTS metrics
ttfbMs: 707
audioDurationMs: 3500
[202152.218] INFO (4563): playout completed without interruption
speech_id: "speech_60b051d3-9c6"
message: "Ich kann Sie jederzeit verbinden. Möchten Sie jetzt mit einem Mitarbeiter sprechen?"
[202152.796] INFO (4563): VAD metrics
idleTimeMs: 0
inferenceDurationTotalMs: 20
inferenceCount: 1
[202152.826] INFO (4563): STT metrics
audioDurationMs: 2400
[202154.118] INFO (4563): Creating speech handle
speech_id: "speech_2740bd94-2bc"
[202154.119] INFO (4563): EOU metrics
endOfUtteranceDelayMs: 593
transcriptionDelayMs: 475
onUserTurnCompletedDelayMs: 0
JobContext not available in session.userdata
[202155.243] INFO (4563): Executing LLM tool call
function: "transferToHuman"
arguments: {
"reason": "Kundenwunsch für direkten Mitarbeitersupport"
}
speech_id: "speech_2740bd94-2bc"
[202155.248] INFO (4563): LLM metrics
ttftMs: 1124
inputTokens: 1236
promptCachedTokens: 1024
outputTokens: 23
tokensPerSecond: 20.37
[202156.310] INFO (4563): LLM metrics
ttftMs: 466
inputTokens: 1279
promptCachedTokens: 0
outputTokens: 26
tokensPerSecond: 24.53
[202157.546] INFO (4563): TTS metrics
ttfbMs: 1045
audioDurationMs: 4500
[202201.260] INFO (4563): playout completed without interruption
speech_id: "speech_e5a87eb8-a26"
message: "Entschuldigung, der Transfer klappt gerade nicht, aber ich helfe Ihnen gerne selbst. Was kann ich für Sie tun?"tall-airline-16756
11/23/2025, 7:25 PMtall-airline-16756
11/23/2025, 7:26 PMdocker run -d --name redis -p 6379:6379 redis:7
a. Configure LiveKit Server (and the SIP service) to point to the Redis address (e.g., localhost:6379) in their configs.
b. Ensure the SIP service (livekit-sip) is deployed and configured to use the same Redis and LiveKit API credentials.
c. Confirm your agent process is connecting to the same LiveKit cluster/Redis.
d. Retry the transfer.
Other checks for warm transfer to succeed:
• Outbound SIP trunk ID, phone number and room names are provided when creating the SIP participant.
• Two agent sessions exist (caller and transfer/supervisor) and you use CreateSIPParticipantRequest and MoveParticipant as the transfer flow expects.
If you’d like, tell me:
• Are you on LiveKit Cloud or self-hosting?
• Whether Redis is currently running and how your services are configured (livekit.yaml / SIP config / env vars)
I can give the exact config snippets and the next commands based on your answer.
Sources: Agent-assisted warm transfer | LiveKit docs | Call forwarding | LiveKit docs | Distributed Setup | LiveKit docs | LiveKit Server Platform | livekit/livekit_composite | DeepWiki | SIP overview | LiveKit docs