From af93f9f97e6ea24f6b6017a02dd4180842c6b60d Mon Sep 17 00:00:00 2001
From: Yun Liu <yun@yun.(none)>
Date: Tue, 7 Oct 2008 11:08:54 -0400
Subject: [PATCH] For port modification

---
 sflphone-gtk/src/assistant.c |  1 +
 src/managerimpl.cpp          | 11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/sflphone-gtk/src/assistant.c b/sflphone-gtk/src/assistant.c
index 27c066cc6e..47c1a5a2b4 100644
--- a/sflphone-gtk/src/assistant.c
+++ b/sflphone-gtk/src/assistant.c
@@ -61,6 +61,7 @@ sip_apply_callback( void )
     g_hash_table_insert(current->properties, g_strdup(ACCOUNT_MAILBOX), g_strdup("888"));
     g_hash_table_insert(current->properties, g_strdup(ACCOUNT_TYPE), g_strdup("SIP"));
     g_hash_table_insert(current->properties, g_strdup(ACCOUNT_SIP_HOST), g_strdup((gchar *)gtk_entry_get_text(GTK_ENTRY(wiz->sip_server))));
+    //g_hash_table_insert(current->properties, g_strdup(ACCOUNT_SIP_PORT), g_strdup((gchar *)gtk_entry_get_text(GTK_ENTRY(wiz->sip_port))));
     g_hash_table_insert(current->properties, g_strdup(ACCOUNT_SIP_PASSWORD), g_strdup((gchar *)gtk_entry_get_text(GTK_ENTRY(wiz->sip_password))));
     g_hash_table_insert(current->properties, g_strdup(ACCOUNT_SIP_USER), g_strdup((gchar *)gtk_entry_get_text(GTK_ENTRY(wiz->sip_username))));
     g_hash_table_insert(current->properties, g_strdup(ACCOUNT_SIP_STUN_ENABLED), g_strdup((gchar *)gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(wiz->enable))? "TRUE":"FALSE"));
diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp
index 7102d2a273..2c0a5d3c06 100644
--- a/src/managerimpl.cpp
+++ b/src/managerimpl.cpp
@@ -2106,6 +2106,7 @@ ManagerImpl::sendRegister( const ::DBus::String& accountID , const DBus::Int32&
 ManagerImpl::addAccount(const std::map< ::DBus::String, ::DBus::String >& details)
 {
 
+  _debug("********************** Into ManagerImpl::addAccount \n");
   /** @todo Deal with both the _accountMap and the Configuration */
   std::string accountType = (*details.find(CONFIG_ACCOUNT_TYPE)).second;
   Account* newAccount;
@@ -2223,7 +2224,15 @@ ManagerImpl::getNewCallID()
   }
   return random_id.str();
 }
-
+/*
+ManagerImpl::updatePjsip()
+{
+  if ( _userAgentInitlized )
+	delete _userAgent;
+       //loadAccountMap
+	
+}
+*/
   short
 ManagerImpl::loadAccountMap()
 {
-- 
GitLab