Skip to content

pass customParameters from TVCallParametersImpl to TVParametersImpl #267

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
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stanbav
Copy link

@stanbav stanbav commented Mar 27, 2025

On Android when making a call like this:

  TwilioVoice.instance.call.place(from: myId, to: clientId, extraOptions: {
          '__TWI_RECIPIENT_NAME': 'John Doe',
        });

the __TWI_RECIPIENT_NAME parameter is not respected by the android platform code, but everything in the android code is set up so that it should work.
The change in this PR make the logic actually work for outgoing calls.

@@ -68,7 +68,7 @@ class TVCallInviteParametersImpl(storage: Storage, callInvite: CallInvite) : TVP
}
}

class TVCallParametersImpl(storage: Storage, call: Call, callTo: String, callFrom: String, customParameters: Map<String, String> = emptyMap()) : TVParametersImpl(storage) {
class TVCallParametersImpl(storage: Storage, call: Call, callTo: String, callFrom: String, customParameters: Map<String, String> = emptyMap()) : TVParametersImpl(storage, "", customParameters) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we throw in TVParametersImpl(storage, call.sid ?: "", customParameters) instead, otherwise fantastic PR.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! Done!

@cybex-dev
Copy link
Owner

Fantastic catch, thank you for your contribution.

@cybex-dev cybex-dev self-assigned this Apr 15, 2025
@cybex-dev cybex-dev added the bug Something isn't working label Apr 15, 2025
@stanbav stanbav requested a review from cybex-dev April 21, 2025 06:28
@AndreiMisiukevich
Copy link
Contributor

@cybex-dev any plans to merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants