aboutsummaryrefslogtreecommitdiffstats
path: root/include/mgcp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-09-13 22:41:48 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-09-13 22:53:13 +0200
commite72139a6f3713869637d15dfd9858a500fbf0425 (patch)
treeb3d24a0a796a642e1237b406ccb7ed5eb1181e93 /include/mgcp
parentfc98ce252e7111c06e8051e0121b31913db9ff39 (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 'include/mgcp')
-rw-r--r--include/mgcp/mgcp.h2
-rw-r--r--include/mgcp/mgcp_internal.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/include/mgcp/mgcp.h b/include/mgcp/mgcp.h
index da8f77b..4ad27c0 100644
--- a/include/mgcp/mgcp.h
+++ b/include/mgcp/mgcp.h
@@ -122,8 +122,6 @@ struct mgcp_trunk_config {
/* Special MGW handling */
int target_trunk_start;
- int voice_base;
- int endp_offset;
int vad_enabled;
int digital_inp_gain;
diff --git a/include/mgcp/mgcp_internal.h b/include/mgcp/mgcp_internal.h
index 137a608..6d9f03e 100644
--- a/include/mgcp/mgcp_internal.h
+++ b/include/mgcp/mgcp_internal.h
@@ -125,6 +125,7 @@ struct mgcp_endpoint {
/* Special MGW handling */
int blocked;
+ unsigned int hw_snmp_port; /** This is index 1 based */
unsigned int audio_port;
int block_processing;
};