mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
account_creator.c: update to latest xmlrpc api
This commit is contained in:
parent
76ae2dc43a
commit
ca03c42f4a
1 changed files with 6 additions and 1 deletions
|
|
@ -727,7 +727,12 @@ static void _recover_phone_account_cb(LinphoneXmlRpcRequest *request) {
|
|||
LinphoneAccountCreatorStatus status = LinphoneAccountCreatorReqFailed;
|
||||
const char* resp = linphone_xml_rpc_request_get_string_response(request);
|
||||
if (linphone_xml_rpc_request_get_status(request) == LinphoneXmlRpcStatusOk) {
|
||||
status = (strstr(resp, "ERROR_") == resp) ? LinphoneAccountCreatorReqFailed : LinphoneAccountCreatorOK;
|
||||
if (strstr(resp, "ERROR_") == resp) {
|
||||
status = LinphoneAccountCreatorReqFailed;
|
||||
} else {
|
||||
status = LinphoneAccountCreatorOK;
|
||||
set_string(&creator->username, resp, FALSE);
|
||||
}
|
||||
}
|
||||
creator->callbacks->recover_phone_account(creator, status, resp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue