Commit 8cbadd46 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3076] Clean error message when sending DTMF

Do not send DTMF when dialing
parent 94b371f2
......@@ -1436,7 +1436,12 @@ bool ManagerImpl::sendDtmf (const CallID& id, char code) {
bool returnValue = false;
playDtmf(code);
returnValue = getAccountLink(accountid)->carryingDTMFdigits(id, code);
CallAccountMap::iterator iter = _callAccountMap.find(id);
// Make sure the call exist before sending DTMF, ths could be simply call dialing
if(iter != _callAccountMap.end())
returnValue = getAccountLink(accountid)->carryingDTMFdigits(id, code);
return returnValue;
}
......
Supports Markdown
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