Hello Everybody,
I stugling to connect my livekit ai agent with issbale asterisk based pbx.
When user call in my DID/Local IP number the issable accept this then connect with livekit ai agent and user can talk with ai agent.
This is my /etc/asterisk/pjsip_custom.conf
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[Livekit_AI]
type=endpoint
context=custom-livekit-dial
disallow=all
allow=opus
aors=Livekit_AI
media_encryption=dtls
dtls_auto_generate_cert=yes
ice_support=yes
use_avpf=yes
rtcp_mux=yes
direct_media=no
[Livekit_AI]
type=aor
max_contacts=1
contact=sip:*************.sip.livekit.cloud:5060
And after the a custon dial plan i make
[custom-livekit-dial]
exten => s,1,NoOp(--- LiveKit AI Call ---)
same => n,Set(ROOMNAME=ai-call)
same => n,Verbose(1,Dialing LiveKit room: ${ROOMNAME})
same => n,Dial(PJSIP/Livekit_AI,60)
same => n,Hangup()
This configaration accept call by astersk and create room in livekit but no audio comes.
What is the problem can be and If you know how to achive this please help me.
Thank you.