Add a taskbar icon. We need a designer, please...

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16429 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
João Mesquita
2010-01-21 02:48:53 +00:00
parent 1e6bb3a47e
commit be510fac1b
6 changed files with 50 additions and 9 deletions

View File

@@ -28,6 +28,7 @@
*/
#include "call.h"
#include <QtGui>
#include <fshost.h>
Call::Call()
@@ -67,3 +68,13 @@ switch_status_t Call::toggleRecord(bool startRecord)
return status;
}
void Call::sendDTMF(QString digit)
{
QString result;
QString dtmf_string = QString("dtmf %1").arg(digit);
if (g_FSHost.sendCmd("pa", dtmf_string.toAscii(), &result) == SWITCH_STATUS_FALSE) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Could not send DTMF digit %s on call[%s]", digit.toAscii().data(), _uuid.toAscii().data());
QMessageBox::critical(0, QWidget::tr("DTMF Error"), QWidget::tr("There was an error sending DTMF, please report this bug."), QMessageBox::Ok);
}
}