Commit 42479921 authored by jehan's avatar jehan

fix account creator in db

parent e8e21aed
......@@ -300,8 +300,8 @@ void account_create_in_db(Account *account, LinphoneProxyConfig *cfg, const char
// activate account
linphone_account_creator_cbs_set_activate_account(creator_cbs, account_activated_cb);
linphone_account_creator_activate_email_account_linphone(creator);
linphone_account_creator_activate_account_linphone(creator);
if (wait_for_until(lc, NULL, (int*)&creator->account_activated, TRUE, 1000))
ms_warning("Could not activate account %s", linphone_proxy_config_get_identity(cfg));
......
......@@ -870,6 +870,7 @@ static const char* random_phone_number(void) {
static char phone[11];
int i;
phone[0] = '+';
srand (time(NULL));
for (i = 1; i < 10; i++) {
phone[i] = '0' + rand() % 10;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment