Skip to content
Snippets Groups Projects
Commit 37547c66 authored by Damian Minkov's avatar Damian Minkov
Browse files

Fixes correct dtmf packet length for RFC4733 dtmf tones.

parent bd3f1b64
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,9 @@ private void setDtmfPayload(int code, boolean end, int duration, int volume)
writeByte(at++, end ? (byte)(volume | 0x80) : (byte)(volume & 0x7f));
writeByte(at++, (byte)(duration >> 8));
writeByte(at++, (byte)duration);
//packet finished setting its payload, set correct length
setLength(at);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment