You should use Send DTMF field in SIP as RTMP sample application to test the feature, or REST API query /call/send_dtmf in production, for example
http://yourserver:8081/rest-api/call/send_dtmf
{
"callId" : "123456789",
"dtmf":"1234",
"type":"RFC2833"
}