Hello Osman,
a DSP is a specialized hardware that it is difficult to emulate over general purpose CPUs.
So I would suggest to use an "old style" hardware based router where you can install real DSP daughter cards.
The hardware based router will act as VOIP gateway or CUBE with the appropriate licenses.
Hope to help
Giuseppe