diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-09-13 22:41:48 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-09-13 22:53:13 +0200 |
commit | e72139a6f3713869637d15dfd9858a500fbf0425 (patch) | |
tree | b3d24a0a796a642e1237b406ccb7ed5eb1181e93 /src/mgcp/mgcp_protocol.c | |
parent | fc98ce252e7111c06e8051e0121b31913db9ff39 (diff) |
mgcp: Remove the endp_offset that was introduced due coding stupidity
The endpoint offset is needed for two reasons, first the API is 0
based here while we are normally 1 based, second because of the trunks
the first usable endpoint would be '2' (0 is CRC, 1 is signalling), but
this endpoint offset falls apart when we would block timeslots inside
this range.
Remove the endpoint offset, in each endpoint we will store the HW DSP
Port (1 based API) and then subtract one to get to the 0 based API for
the Simple API. Print a warning when someone is using the endpoint offset.
Diffstat (limited to 'src/mgcp/mgcp_protocol.c')
-rw-r--r-- | src/mgcp/mgcp_protocol.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mgcp/mgcp_protocol.c b/src/mgcp/mgcp_protocol.c index 8e1ddc6..9d359cc 100644 --- a/src/mgcp/mgcp_protocol.c +++ b/src/mgcp/mgcp_protocol.c @@ -876,7 +876,6 @@ static void trunk_init(struct mgcp_trunk_config *trunk) /* MGW handling */ trunk->target_trunk_start = 1; - trunk->endp_offset = 1; trunk->vad_enabled = 1; trunk->digital_inp_gain = 31; trunk->digital_out_gain = 31; |