Skip to content
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

Updating EndConferenceOnExit, in UpdateParticipant is not working #259

Open
Fluder-Paradyne opened this issue Jan 2, 2025 · 0 comments
Open

Comments

@Fluder-Paradyne
Copy link

Issue Summary

When updating EndConferenceOnExit using UpdateParticipant it is not giving any error, but the actual resource is not getting updated, the UpdateParticipant response shows it is got updated, but when I use twilioClient.Api.ListParticipant(conferenceID, nil) and check it is not updated.

Steps to Reproduce

  1. This doesn't work
params := twilio.ClientParams{Username: config.AccountSid(), Password: config.AuthToken()}
twilioClient =  twilio.NewRestClientWithParams(params)
endConferenceOnExit := false
updatedParticipant, err := twilioClient.Api.UpdateParticipant(
				conferenceID,
				*participant.CallSid,
				&api.UpdateParticipantParams{
					EndConferenceOnExit: &endConferenceOnExit,
				},
			)
  1. This works though,
params := twilio.ClientParams{Username: config.AccountSid(), Password: config.AuthToken()}
twilioClient =  twilio.NewRestClientWithParams(params)
endConferenceOnExit := false
hold := false
updatedParticipant, err := twilioClient.Api.UpdateParticipant(
				conferenceID,
				*participant.CallSid,
				&api.UpdateParticipantParams{
					EndConferenceOnExit: &endConferenceOnExit,
					Hold:                &hold,
				},
			)

Technical details:

  • twilio-go version:
    github.com/twilio/twilio-go v1.23.3 h1:9DsuC9+6CfQW9dlzdeQeyhn3z2oPjZQcOhMCgh5VkgE=
  • go version:
    go version go1.23.1 darwin/arm64
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

1 participant