<@U08CKJH7C12> — we’re seeing an issue on a dialer...
# telephony
p
@refined-appointment-81829 — we’re seeing an issue on a dialer → SIP trunk → LiveKit flow. Call flow (simplified): 1. Caller dials a PSTN number on the dialer. 2. Dialer transfers the call to our LiveKit SIP trunk over TLS. 3. Our AI agent answers and later decides to end the call. Observed behavior*:* 1. When our agent ends the interaction, we delete the LiveKit room. 2. After the room is deleted, we do not see LiveKit send a SIP BYE toward the dialer leg. 3. The caller remains connected on the dialer side until they hang up. 4. When the caller eventually disconnects, the dialer sends BYE to LiveKit and LiveKit responds with 481 Call Does Not Exist (room already torn down). Question*:* 1. When a room is deleted, does LiveKit send a BYE signal on the SIP leg? 2. If not, what’s the recommended way to explicitly terminate the SIP session from our side? References*:* 1. Call IDs:
SCL_FexdrnHCLMZ8
,
SCL_R22fEYRX5K8W
. Project Id -
p_3tqm7ro6kbs
2. SIP ladder attached (shows dialer-originated BYE and LiveKit 481)
r
Can you share your code where the agent hangs up (deletes room)?
p
I know that the delete room works because the below code is working with twilio and the room is getting deleted. The BYE being not sent for this dialer is what I want to check on why that is not happening. The call Ids are shared in my above message. Below is the code for delete room
Copy code
async def delete_room(self):
        try:
            logger.info(
                {
                    "event": "Deleting Room",
                    "room_name": self.job_ctx.room.name,
                    "call_id": self.call_id,
                }
            )
            await self.job_ctx.api.room.delete_room(
                api.DeleteRoomRequest(
                    room=self.job_ctx.room.name,
                )
            )
            logger.info(
                {
                    "event": "Delete Room Success",
                    "room_name": self.job_ctx.room.name,
                    "call_id": self.call_id,
                }
            )
        except Exception as e:
            logger.exception(
                {
                    "event": "Delete Room Error",
                    "error": str(e),
                    "room_name": self.job_ctx.room.name,
                    "call_id": self.call_id,
                }
            )
@refined-appointment-81829 - did you get a chance to look at the above call Ids I shared? Does BYE get sent over the SIP when the room is deleted. This was not an issue with twilio but seems like an issue with livevox dialer when integrating with them over sip trunk.
r
Curious if you are you using TLS on one and not on the other?
p
Yes - We are using TLS on LiveVox and Not using TLS on Twilio
r
I think the issue is related to that.
p
But the BYE should be sent irrespective of the TLS being used or not right? Then isn't this a Bug on the LiveKit SIP server?
r
But the BYE should be sent irrespective of the TLS being used or not right?
Yes
Then isn't this a Bug on the LiveKit SIP server?
We need to look into it
I believe I recall a GitHub issue for this use case. I need to search for it.
p
Ack - pls check once. I am also searching on Github.
r
Ok, the team is looking into this. I think your best bet (if you can) is to disable TLS for that and see if that works. We will working on resolving in the mean time.
p
Thanks for the update. We won't be able to downgrade from TLS. Is there a way I can track this issue? I did not find this on GitHub. Any ETA would also be helpful here.
r
Sorry, I don't have an ETA. I've not had a chance to search external ticket I was working on an internal ticket for it. I will flag this conversation to follow up
🙌 1
p
Could this be the GH issue - https://github.com/livekit/sip/issues/316. Seems like it is marked as closed. Will let you confirm when you get time as you have already marked this thread for follow-up. Really appreciate your help here Wilson, thanks a bunch 🙌
r
Looks like it but there is not really enough detail in that issue to say it was the same issue.
p
@refined-appointment-81829 - I know you mentioned no eta for this, but possible to get this picked up soon from the team. If there is GH issue open - maybe I or someone from the community can also try and help here. This is becoming a blocker for one of our integrations. Appreciate your support.
r
Yes, I will advocate for its priority to the team.
🙏 1
p
@refined-appointment-81829 - possible to provide an ETA after you speak with the team pls?
r
Sorry, I do not have an ETA
👍 1