We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I saw in readme says:
SOCKSProxy - Dead simple SOCKSv5 proxy server for OS X or iOS. Supports acting as background "VoIP" sockets on iOS via GCDAsyncSocket.
I use PJSIP implement a sip client. And I have no idea how to use Proxykit in this case. I try google, but there is nothing about how to use.
My login method.
- (void)login:(NSString *)server account:(NSString *)username pwd:(NSString *)password { pjsua_acc_id acc_id; pjsua_acc_config cfg; pjsua_acc_config_default(&cfg); cfg.id = pj_str((char *)[NSString stringWithFormat:@"sip:%@@%@", username, server].UTF8String); cfg.reg_uri = pj_str((char *)[NSString stringWithFormat:@"sip:%@", server].UTF8String); cfg.reg_retry_interval = 0; cfg.cred_count = 1; cfg.cred_info[0].realm = pj_str("*"); cfg.cred_info[0].username = pj_str((char *)username.UTF8String); cfg.cred_info[0].data_type = PJSIP_CRED_DATA_PLAIN_PASSWD; cfg.cred_info[0].data = pj_str((char *)password.UTF8String); pj_status_t status = pjsua_acc_add(&cfg, PJ_TRUE, &acc_id); if (status != PJ_SUCCESS) { NSString *errorMessage = [NSString stringWithFormat:@"Login fail Error code:%d!", status]; NSLog(@"register error: %@", errorMessage); } }
Can anyone help me?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I saw in readme says:
I use PJSIP implement a sip client. And I have no idea how to use Proxykit in this case. I try google, but there is nothing about how to use.
My login method.
Can anyone help me?
The text was updated successfully, but these errors were encountered: