Skip to content
Snippets Groups Projects
Commit af93f9f9 authored by Yun Liu's avatar Yun Liu
Browse files

For port modification

parent b20358ec
Branches
Tags
No related merge requests found
...@@ -61,6 +61,7 @@ sip_apply_callback( void ) ...@@ -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_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_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_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_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_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")); 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"));
......
...@@ -2106,6 +2106,7 @@ ManagerImpl::sendRegister( const ::DBus::String& accountID , const DBus::Int32& ...@@ -2106,6 +2106,7 @@ ManagerImpl::sendRegister( const ::DBus::String& accountID , const DBus::Int32&
ManagerImpl::addAccount(const std::map< ::DBus::String, ::DBus::String >& details) ManagerImpl::addAccount(const std::map< ::DBus::String, ::DBus::String >& details)
{ {
_debug("********************** Into ManagerImpl::addAccount \n");
/** @todo Deal with both the _accountMap and the Configuration */ /** @todo Deal with both the _accountMap and the Configuration */
std::string accountType = (*details.find(CONFIG_ACCOUNT_TYPE)).second; std::string accountType = (*details.find(CONFIG_ACCOUNT_TYPE)).second;
Account* newAccount; Account* newAccount;
...@@ -2223,7 +2224,15 @@ ManagerImpl::getNewCallID() ...@@ -2223,7 +2224,15 @@ ManagerImpl::getNewCallID()
} }
return random_id.str(); return random_id.str();
} }
/*
ManagerImpl::updatePjsip()
{
if ( _userAgentInitlized )
delete _userAgent;
//loadAccountMap
}
*/
short short
ManagerImpl::loadAccountMap() ManagerImpl::loadAccountMap()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment