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

added possibility to configure turn server for ios #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dgenykrelevant
Copy link

No description provided.

// TURN settings
NSDictionary *turnConfiguration = config[@"turn"];
if (turnConfiguration) {
NSString *turnServer = turnConfiguration[@"server"];
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for the PR!
Is it possible to split the code to avoid copy-paste for pjsua_turn_config struct creation ?

NSString *transportType = turnConfiguration[@"tp_type"];
NSString *realm = turnConfiguration[@"realm"];
NSString *username = turnConfiguration[@"username"];
NSString *passwordDataType = turnConfiguration[@"password_data_type"];
Copy link
Owner

Choose a reason for hiding this comment

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

It would be great if we will have the same structures as in pjsip, I mean

const turnConfiguration = {
  server: "XXX",
  connectionType: "UDP", // TCP , TLS
  authentication: {
    realm: "XXX",
    username: "XXX",
    dataType: "PLAIN", // "HASHED"
    data: "XXX"
  }

Copy link
Owner

@datso datso left a comment

Choose a reason for hiding this comment

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

Please check the comments above

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

Successfully merging this pull request may close these issues.

3 participants