diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-08-15 08:06:15 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-08-15 08:06:15 +0200 |
commit | 4b6508a3673688eb4ab5cf6c4d16267dc9446f38 (patch) | |
tree | a1af284b638b506ea38f053f4af25c3ba69f65f5 | |
parent | 95248ae15f31151eb3c83ccb4bd3287c8138beda (diff) | |
download | phonesim-4b6508a3673688eb4ab5cf6c4d16267dc9446f38.tar.gz |
callmanager: Add voicemail number 6789 for accepting calls
When dialing voicemal number, just accept the call automatically.
-rw-r--r-- | src/callmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/callmanager.cpp b/src/callmanager.cpp index 9079c41..4567548 100644 --- a/src/callmanager.cpp +++ b/src/callmanager.cpp @@ -148,7 +148,9 @@ bool CallManager::command( const QString& cmd ) send( "OK" ); // Automatic accept of calls - if ( number.startsWith( "05123" ) ) { + if ( number == "6789" ) { + QTimer::singleShot( 1000, this, SLOT(dialingToConnected()) ); + } else if ( number.startsWith( "05123" ) ) { QTimer::singleShot( 1000, this, SLOT(dialingToConnected()) ); } else if ( number.startsWith( "06123" ) ) { QTimer::singleShot( 1000, this, SLOT(dialingToAlerting()) ); |