Skip to content

Sip call not ending after Max Call duration #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pranav-zc opened this issue May 10, 2025 · 1 comment
Open

Sip call not ending after Max Call duration #353

pranav-zc opened this issue May 10, 2025 · 1 comment

Comments

@pranav-zc
Copy link

If i specify max_call_duration in CreateSipParticipant sometimes the participant doesn't get disconnected from the room. Here's the code that i am using for CreateSipParticipant:

 await lkapi.sip.create_sip_participant(create=CreateSIPParticipantRequest(
            room_name=room.name,
            sip_trunk_id= settings.TELNYX_SIP_TRUNK_ID,
            sip_call_to=metadata["phone"],
            participant_identity=partipant_identity,
            play_dialtone=True, 
            play_ringtone=True,
            max_call_duration=timedelta(seconds=MAX_CALL_DURATION),
            ringing_timeout=timedelta(seconds=CALL_WAIT_TIME),
            wait_until_answered=False, 
            headers={
                "X-No-Retry": "true",
                "X-Max-Retries": "0",
            }
        ))

where MAX_CALL_DURATION = 1200.

As per the discussion on livekit sip channel it seems that the issue has been reproduced but is yet to be fixed. Any expedition in fixing the issue would be greatly helpful. Thanks!

@zealconnect
Copy link

I'm facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants