sip inbound agent에서 전화를 걸면 다음과 같은 에러가 나는데 이유가 뭐야? ...
# ask-ai
l
sip inbound agent에서 전화를 걸면 다음과 같은 에러가 나는데 이유가 뭐야? 2025-10-23 063927,738 - DEBUG livekit.agents - http_session(): creating a new httpclient ctx {"pid": 933725, "job_id": "AJ_r2XXFgffi8fF"} 2025-10-23 063927,742 - ERROR livekit.agents - Error in _traceable_on_enter Traceback (most recent call last): File "/home/ubuntu/outbound-project/.venv/lib/python3.12/site-packages/livekit/agents/utils/log.py", line 16, in async_fn_logs return await fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/outbound-project/.venv/lib/python3.12/site-packages/livekit/agents/voice/agent_activity.py", line 422, in _traceable_on_enter await self._agent.on_enter() File "/home/ubuntu/outbound-project/inbound-demo-test.py", line 19, in on_enter self.session.generate_reply("안녕하세요. 무엇을 도와드릴까요?")
t
Thanks for reaching out, Dan(송희웅). I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm here to help you understand the
Error in _traceable_on_enter
that you're encountering. This error happens when an unexpected exception occurs during the execution of the
on_enter()
method in your SIP inbound agent. Since this method is wrapped with tracing and logging tools, any issues during its execution are captured as errors. From what you've shared, it looks like the problem might be linked to the call to
self.session.generate_reply("안녕하세요. 무엇을 도와드릴까요?")
. This can happen if the session isn't fully initialized or if it’s missing some necessary context when this method runs. Here are a few steps that might help you resolve this: • Make sure the
AgentSession
is completely initialized before you call
generate_reply()
. • Take a look at the logs to find the exact exception raised inside `on_enter()`—this can give you clues about the root cause. • Double-check that all required dependencies and contexts, like the job context, are properly set up before
on_enter()
runs. • It might be helpful to wrap the logic inside
on_enter()
with a try-except block to gracefully handle errors that can be recovered from. If you’d like, feel free to share the specific exception details or any additional context from your logs. I’m here to support you every step of the way! Sources: livekit-agents/livekit/agents/voice/agent_activity.py | telephony/sip_lifecycle.py | Agent Session & Client Integration | livekit/livekit_composite | DeepWiki | SIP troubleshooting guide | LiveKit Docs