diff --git a/coreapi/account_creator.c b/coreapi/account_creator.c index d0106862e..8c2c4ce14 100644 --- a/coreapi/account_creator.c +++ b/coreapi/account_creator.c @@ -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) { diff --git a/coreapi/xmlrpc.c b/coreapi/xmlrpc.c index 636620ab9..1551cd7ed 100644 --- a/coreapi/xmlrpc.c +++ b/coreapi/xmlrpc.c @@ -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); }