**For participant call legs that were added to the multiparty call using the <MultipartyCall> XML element: **
If onExitActionUrl is not specified the participants will be disconnected and the call will proceed to the next element in the XML document.
If onExitActionUrl is specified the participants will be disconnected and the call will proceed to the XML document returned by the onExitActionUrl.
For participant call legs that were added to the multiparty call using the Add Participant API:
If on_exit_action_url is not specified the multiparty call will be terminated with the hangup cause “Multiparty Call Ended” (hangup cause code 4020) and hangup cause will be API Request.
If on_exit_action_url is specified the participants will be disconnected and the call will proceed to the XML document returned by the on_exit_action_url.
Arguments
No arguments need to be passed.
Returns
Returns an acknowledgement that the participant was disconnected from the multiparty call.
packagemainimport("fmt""github.com/plivo/plivo-go/v7")funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}err=client.MultiPartyCall.KickParticipant(plivo.MultiPartyCallParticipantParams{FriendlyName:"MPC_Name",ParticipantId:"member_id"})iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("disconnected a participant successfully.")}
packagemainimport("fmt""github.com/plivo/plivo-go/v7")funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}err=client.MultiPartyCall.KickParticipant(plivo.MultiPartyCallParticipantParams{FriendlyName:"MPC_Name",ParticipantId:"member_id"})iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("disconnected a participant successfully.")}
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input
for further improvements!