From 7e3f3ac46f55d96d78b4dc71f258fd6ea51ac06e Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 29 Aug 2016 12:42:41 +0200 Subject: [PATCH] xmlrpc: fix some bug --- coreapi/account_creator.c | 2 +- coreapi/xmlrpc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }