SendBirdCalls set call duration

Is there is a way to set a call max duration. either through sdk or api? and can we force terminate a call through api? is it available in free trial for testing?


// If problem, please fill out the below. If question, please delete.
[SDK Version]
1.12.2

[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.

[Frequency]
// How frequently is this issue occurring?

[Current impact]
// How is this currently impacting your implementation?

Hi @Stelios_Khalid

Welcome to the Sendbird Community!

I believe that you are looking for this functionality for Direct Calls. Please refer to the details below.

  1. For a direct call’s duration, if you are looking for the ringing duration before accepting a call, there is a function setRingingTimeout()
  1. To terminate a direct call forcibly, you can end a call using directCall.end()
  1. For testing Calls, the free trial plan provides 20 credits, allowing you to test Call features.

thank you for the fast response. but i am not looking for this. i am looking about setting a call’s duration, not the ringing duration. and if there is something like a killswitch for the call besides the directcall.end(). not just through the java sdk but through the api also. if this helps, i use cloud function to get live events for the call(dial, accept, end) but i want to set a call duration limit. once the call for example reaches 5 min it gets ended.

We do not currently provide an option to forcibly set or limit the call duration. You would need to implement logic on the client side, such as using a timer internally to forcibly end the call when the desired call duration is reached.