<@U07FRRZH2GN> how to get SIP dispatch metadata in...
# ask-ai
m
@icy-policeman-64898 how to get SIP dispatch metadata in python when participant connected
t
Thanks for reaching out, Rajadurai. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To get SIP dispatch metadata in Python when a participant connects, you can access the job metadata in your agent's entrypoint function. Here's an example:
Copy code
async def entrypoint(ctx: JobContext):
    <http://logger.info|logger.info>(f"job metadata: {ctx.job.metadata}")
    # Your agent logic here
    ...
This will allow you to retrieve any metadata set during the SIP dispatch process. Let me know if you need further assistance! Sources: Dispatching agents | LiveKit Docs | Dispatching agents | LiveKit Docs