Login to the system administration
Navigate to 'Extensions → Edit'
Click on 'Advanced Options'
Set 'DTMF Mode' to ('inband'/'rfc2833'/'info')
Click on 'Save'