diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-05-11 08:11:34 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-05-11 11:48:11 +0200 |
commit | a85192b2c913a7c64afb597681ac9a48c5c7adf8 (patch) | |
tree | 3d2e9ff5b3ece11ce196fb4bcb4d19072343f6e3 | |
parent | ec55342ed88300673515bf97b86191f11e9ce581 (diff) |
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.
-rw-r--r-- | src/mgcp_ss7.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |