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:
parent
ec55342ed8
commit
a85192b2c9
|
@ -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);
|
||||
|
||||
|
|
Reference in New Issue