From a85192b2c913a7c64afb597681ac9a48c5c7adf8 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 11 May 2012 08:11:34 +0000 Subject: 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. --- src/mgcp_ss7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mgcp_ss7.c b/src/mgcp_ss7.c index 24a494f..7b6b578 100644 --- a/src/mgcp_ss7.c +++ b/src/mgcp_ss7.c @@ -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); -- cgit v1.2.3