Running in to an issue with my outbound-only telep...
# telephony
m
Running in to an issue with my outbound-only telephony agent where it seems like two agents end up connecting to the room I create. I have two agents in LK cloud where only one is explicit dispatch. I dispatch the agent to the room after creating the SIP Participant, but there are two agents on the line when the user answers the call. Has anyone ran into this or could recommend a way to debug?
I have an outbound trunk ONLY and no dispatch rules.
For those who may encounter this in the future, what worked for me was rejecting all SIP-room created requests like this (I create rooms with this prefix in my dispatch call).
async def *request_fnc*(_ctx_: JobRequest) -> None:
# Reject telephony outbound rooms
if
_ctx_.room.name.startswith("sip-room-"):
logger.info(f”Rejecting telephony room: {
_ctx_.room.name}")
await
_ctx_.reject()
return
# Accept all other rooms
await
_ctx_.accept()
_if_ __name__ == "__main__":
cli.run_app(WorkerOptions(
_entrypoint_fnc_=entrypoint,
_request_fnc_=request_fnc,
))
^This is specifically for your agent on automatic dispatch. Not the explicit dispatch agent (telephony one). The issue was the automatic dispatch agent was joining the SIP room along with the explicit dispatch agent.