|
From: | Lindsey Vastola |
Subject: | [Linphone-developers] Linphone not able to register |
Date: | Tue, 6 Feb 2018 15:22:25 -0500 |
I am updating my app to a much newer version of Linphone and I am not able to register. I am able to do it on another version so it has to be something I am doing during the upgrade. Here are the fail logs:
018-02-06 15:10:49.426058-0500 Setec[555:155457] [MC] Loaded MobileCoreServices.framework
2018-02-06 15:10:49.553652-0500 Setec[555:155457] RegistrationStateChanged: LinphoneRegistrationProgress
2018-02-06 15:10:49.556381-0500 Setec[555:155457] RegistrationStateChanged: LinphoneRegistrationProgress
2018-02-06 15:10:49.558831-0500 Setec[555:155457] RegistrationStateChanged: LinphoneRegistrationProgress
2018-02-06 15:10:49.560657-0500 Setec[555:155457] RegistrationStateChanged: LinphoneRegistrationProgress
2018-02-06 15:10:49.562460-0500 Setec[555:155457] RegistrationStateChanged: LinphoneRegistrationProgress
2018-02-06 15:10:49:597 belle-sip-error-Could not load root ca from /opt/local/share/curl/curl-ca-bundle.crt: No such file or directorye
2018-02-06 15:11:52:611 belle-sip-warning-channel [0x1058a8000]: user-defined transport timeout.
2018-02-06 15:11:52:612 belle-sip-error-Cannot connect to [TLS://sip.test.clearcaptions.com:5061]
2018-02-06 15:11:52.632087-0500 Setec[555:155457] RegistrationStateChanged: LinphoneRegistrationFailed
let identity = "sip:" + profile.did! + "@" + serverHost();
NSLog("Connecting to: \(identity)")
let proxy_cfg = linphone_core_create_proxy_config(theLinphone.lc)!;
let from = linphone_address_new(identity);
if (from == nil){
NSLog("\(identity) not a valid sip uri, must be like sip:address@hidden");
}
let info=linphone_auth_info_new(profile.did!, nil,profile.sipPassword!, nil, nil, nil)
linphone_core_add_auth_info(theLinphone.lc, info)
linphone_core_refresh_registers(theLinphone.lc)
let address = linphone_core_interpret_url(theLinphone.lc, identity)
let addr = linphone_address_new(nil)
linphone_proxy_config_set_identity_address(proxy_cfg, address)
linphone_address_unref(from)
linphone_proxy_config_set_server_addr(proxy_cfg, "\(identity)");
linphone_address_set_port(addr, 35060)
linphone_proxy_config_enable_register(proxy_cfg, 1)
linphone_core_add_proxy_config(theLinphone.lc, proxy_cfg)
linphone_core_set_default_proxy_config(theLinphone.lc, proxy_cfg)
var registrationStateChanged: LinphoneCoreRegistrationStateChangedCb = {
(lc, proxyConfig, state, message) in
switch state{
case LinphoneRegistrationNone: /**<Initial state for registrations */
case LinphoneRegistrationProgress:
case LinphoneRegistrationOk:
NSLog("RegistrationStateChanged: LinphoneRegistrationOk")
NotificationCenter.default.post(name: Notification.Name(rawValue: LinphoneRegistrationOkNotification), object: nil)
break;
case LinphoneRegistrationCleared:
break;
case LinphoneRegistrationFailed:
break;
default:
NSLog("RegistrationStateChanged: Unkown registration state")
}
}
[Prev in Thread] | Current Thread | [Next in Thread] |