Commit 9be96725 authored by Alexandre Savard's avatar Alexandre Savard

Put on hold when dialing a new phone number

parent ef4087ab
......@@ -508,6 +508,9 @@ process_dialing(call_t * c, guint keyval, gchar * key)
call_t *
sflphone_new_call()
{
sflphone_on_hold();
// Play a tone when creating a new call
if( call_list_get_size(current_calls) == 0 )
dbus_start_tone( TRUE , ( voice_mails > 0 )? TONE_WITH_MESSAGE : TONE_WITHOUT_MESSAGE) ;
......
......@@ -188,6 +188,8 @@ ManagerImpl::switchCall(const CallID& id ) {
bool
ManagerImpl::outgoingCall(const std::string& accountid, const CallID& id, const std::string& to)
{
_debug("ManagerImpl::outgoingCall() method \n");
if (!accountExists(accountid)) {
_debug("! Manager Error: Outgoing Call: account doesn't exist\n");
return false;
......
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