Commit ba9ecd30 authored by Simon Morlat's avatar Simon Morlat
parent 5b637d23
Pipeline #245 failed with stage
in 0 seconds
......@@ -44,8 +44,8 @@ void DtmfCommand::exec(Daemon *app, const string& args) {
digit = digit_str.at(0);
if (isdigit(digit) || (digit == 'A') || (digit == 'B') || (digit == 'C') || (digit == 'D') || (digit == '*') || (digit == '#')) {
LinphoneCall *call = linphone_core_get_current_call(app->getCore());
linphone_core_play_dtmf(app->getCore(), digit, 100);
if (call == NULL) {
linphone_core_play_dtmf(app->getCore(), digit, 200);
if (call != NULL) {
linphone_call_send_dtmf(call, digit);
}
app->sendResponse(Response());
......
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