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:36:19 +0200 |
commit | d56ddfc380ce53e08681764524f86a60249f89e8 (patch) | |
tree | 0144604c3d4efbaa7a1505b81f3d204b9763c97e /src/mgcp_ss7.c | |
parent | e1ec4c7047e7c152f31a7ba13a3db5dd5c0df682 (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.
Diffstat (limited to 'src/mgcp_ss7.c')
-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 1b88e57..bdb793b 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); |