9
0
Fork 0

mgcp: Possible fix for using the right DSP resource on the MGCP MGW

This got broken in the previous commit. Use the hw_dsp_port we assigned
to the endpoint instead of the dsp_resource that is one ahead. For the
non loop-on-idle configuration audio routing appears to be broken.
This commit is contained in:
Holger Hans Peter Freyther 2012-05-11 08:11:34 +00:00
parent ec55342ed8
commit a85192b2c9
1 changed files with 1 additions and 1 deletions

View File

@ -714,7 +714,7 @@ static int configure_trunk(struct mgcp_trunk_config *tcfg, int *dsp_resource)
if (tcfg->loop_on_idle)
res = mgcp_hw_loop(start + multiplex, timeslot);
else
res = mgcp_hw_connect(*dsp_resource,
res = mgcp_hw_connect(tcfg->endpoints[i].hw_dsp_port,
start + multiplex,
timeslot);