diff --git a/sflphone-client-gnome/src/config/accountconfigdialog.c b/sflphone-client-gnome/src/config/accountconfigdialog.c index 591fee77ee553d920befc90303c9469d6da59068..ecb67b07c2a06caa4fcf4deb72ec9402147d6af1 100644 --- a/sflphone-client-gnome/src/config/accountconfigdialog.c +++ b/sflphone-client-gnome/src/config/accountconfigdialog.c @@ -217,7 +217,7 @@ static GPtrArray* getNewCredential (GHashTable * properties) { COLUMN_CREDENTIAL_PASSWORD, &password, -1); - DEBUG ("------------------------------------------------- Row %d: %s %s %s", row_count, username, password, realm); + DEBUG ("Row %d: %s %s %s", row_count, username, password, realm); new_table = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); g_hash_table_insert(new_table, g_strdup(ACCOUNT_REALM), realm); @@ -442,9 +442,10 @@ static void fill_treeview_with_credential (GtkListStore * credentialStore, accou { GtkTreeIter iter; gtk_list_store_clear(credentialStore); - gtk_list_store_append (credentialStore, &iter); - + /* This is the default, undeletable credential */ + /* + // gtk_list_store_append (credentialStore, &iter); gchar * authentication_name = g_hash_table_lookup(account->properties, ACCOUNT_AUTHENTICATION_USERNAME); gchar * realm = g_hash_table_lookup(account->properties, ACCOUNT_REALM); if (realm == NULL || (g_strcmp0(realm, "") == 0)) { @@ -473,6 +474,7 @@ static void fill_treeview_with_credential (GtkListStore * credentialStore, accou DEBUG("No credential defined"); return; } + */ unsigned int i; for(i = 0; i < account->credential_information->len; i++) @@ -483,8 +485,7 @@ static void fill_treeview_with_credential (GtkListStore * credentialStore, accou COLUMN_CREDENTIAL_REALM, g_hash_table_lookup(element, ACCOUNT_REALM), COLUMN_CREDENTIAL_USERNAME, g_hash_table_lookup(element, ACCOUNT_USERNAME), COLUMN_CREDENTIAL_PASSWORD, g_hash_table_lookup(element, ACCOUNT_PASSWORD), - COLUMN_CREDENTIAL_DATA, element, // Pointer - -1); + COLUMN_CREDENTIAL_DATA, element, -1); } } @@ -1494,7 +1495,7 @@ void show_account_window (account_t * a) { if(currentAccount->credential_information != NULL) { int i; for(i = 0; i < currentAccount->credential_information->len; i++) { - DEBUG("---------------------------------- Create new credential"); + DEBUG("Create new credential"); dbus_set_credential(currentAccount, i); } // dbus_set_number_of_credential(currentAccount, currentAccount->credential_information->len); diff --git a/sflphone-common/src/sip/sipvoiplink.cpp b/sflphone-common/src/sip/sipvoiplink.cpp index 74f68747061f45597d0574b04de39d272590a0aa..d04257a6b517bea80d29589ab6b3db6bd475f5e9 100755 --- a/sflphone-common/src/sip/sipvoiplink.cpp +++ b/sflphone-common/src/sip/sipvoiplink.cpp @@ -655,9 +655,6 @@ int SIPVoIPLink::sendRegister (AccountID id) pj_list_push_back (&hdr_list, (pjsip_hdr*) h); // pj_list_push_back (&hdr_list, (pjsip_hdr*) routing); - if (regc) - _error("UserAgent: Error: No regc ......"); - pjsip_regc_add_headers (regc, &hdr_list); status = pjsip_regc_register (regc, PJ_TRUE, &tdata);