mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 13:08:08 +00:00
xmlrpc: fix some bug
This commit is contained in:
parent
ca03c42f4a
commit
7e3f3ac46f
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue