Skip to content
Snippets Groups Projects
Commit 9be96725 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

Put on hold when dialing a new phone number

parent ef4087ab
No related branches found
No related tags found
No related merge requests found
...@@ -508,6 +508,9 @@ process_dialing(call_t * c, guint keyval, gchar * key) ...@@ -508,6 +508,9 @@ process_dialing(call_t * c, guint keyval, gchar * key)
call_t * call_t *
sflphone_new_call() sflphone_new_call()
{ {
sflphone_on_hold();
// Play a tone when creating a new call // Play a tone when creating a new call
if( call_list_get_size(current_calls) == 0 ) if( call_list_get_size(current_calls) == 0 )
dbus_start_tone( TRUE , ( voice_mails > 0 )? TONE_WITH_MESSAGE : TONE_WITHOUT_MESSAGE) ; dbus_start_tone( TRUE , ( voice_mails > 0 )? TONE_WITH_MESSAGE : TONE_WITHOUT_MESSAGE) ;
......
...@@ -188,6 +188,8 @@ ManagerImpl::switchCall(const CallID& id ) { ...@@ -188,6 +188,8 @@ ManagerImpl::switchCall(const CallID& id ) {
bool bool
ManagerImpl::outgoingCall(const std::string& accountid, const CallID& id, const std::string& to) ManagerImpl::outgoingCall(const std::string& accountid, const CallID& id, const std::string& to)
{ {
_debug("ManagerImpl::outgoingCall() method \n");
if (!accountExists(accountid)) { if (!accountExists(accountid)) {
_debug("! Manager Error: Outgoing Call: account doesn't exist\n"); _debug("! Manager Error: Outgoing Call: account doesn't exist\n");
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment