diff options
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/include/openbsc/mgcp.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/openbsc/include/openbsc/mgcp.h b/openbsc/include/openbsc/mgcp.h index 53a308152..2361a2160 100644 --- a/openbsc/include/openbsc/mgcp.h +++ b/openbsc/include/openbsc/mgcp.h @@ -79,12 +79,13 @@ typedef int (*mgcp_policy)(struct mgcp_config *cfg, int endpoint, int state, con typedef int (*mgcp_reset)(struct mgcp_config *cfg); struct mgcp_config { + /* common configuration */ int source_port; char *local_ip; char *source_addr; - unsigned int number_endpoints; char *bts_ip; + /* default endpoint data */ struct in_addr bts_in; char *audio_name; int audio_payload; @@ -92,16 +93,21 @@ struct mgcp_config { int early_bind; int rtp_base_port; + /* only used in forward mode */ char *forward_ip; int forward_port; + unsigned int last_call_id; + + /* endpoint configuration */ + unsigned int number_endpoints; + struct mgcp_endpoint *endpoints; + + /* callback functionality */ mgcp_change change_cb; mgcp_policy policy_cb; mgcp_reset reset_cb; void *data; - - struct mgcp_endpoint *endpoints; - unsigned int last_call_id; }; /* config management */ |