Skip to content

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