Integrating Freepbx with Livekit To Route Inbound Calls to Livekit

I want all my inbound calls to be sent to my Voice Agent which running on Livekit’s Cloud.

I created a trunk with my livekit sip uri as the host and the context as “from-livekit”.

Also created a custom destination named (Livekit) with the target as:
from-livekit,s,1

Now in my inbound routes I set the destination as “custom destination” : “Livekit”.

This setup doesn’t seemed to be working as call get dropped immediately. Using Twilio as a test it work just perfect.

Need help on how I can get this working