xmlrpc: fix some bug

This commit is contained in:
Gautier Pelloux-Prayer 2016-08-29 12:42:41 +02:00
parent ca03c42f4a
commit 7e3f3ac46f
2 changed files with 2 additions and 2 deletions

View file

@ -288,7 +288,7 @@ LinphoneAccountCreatorStatus linphone_account_creator_set_phone_number(LinphoneA
}
} else {
LinphoneProxyConfig *numCfg = linphone_proxy_config_new();
linphone_proxy_config_set_dial_prefix(numCfg, country_code);
linphone_proxy_config_set_dial_prefix(numCfg, country_code[0] == '+' ? &country_code[1] : country_code);
normalized_phone_number = linphone_proxy_config_normalize_phone_number(numCfg, phone_number);
linphone_proxy_config_destroy(numCfg);
if (!normalized_phone_number) {

View file

@ -215,7 +215,7 @@ end:
}
static void notify_xml_rpc_error(LinphoneXmlRpcRequest *request) {
request->status = LinphoneXmlRpcStatusOk;
request->status = LinphoneXmlRpcStatusFailed;
if (request->callbacks->response != NULL) {
request->callbacks->response(request);
}