summaryrefslogtreecommitdiff
path: root/include/osmocom/mgcp_client/mgcp_client_fsm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/mgcp_client/mgcp_client_fsm.h')
-rw-r--r--include/osmocom/mgcp_client/mgcp_client_fsm.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/include/osmocom/mgcp_client/mgcp_client_fsm.h b/include/osmocom/mgcp_client/mgcp_client_fsm.h
index 7d06178..353baff 100644
--- a/include/osmocom/mgcp_client/mgcp_client_fsm.h
+++ b/include/osmocom/mgcp_client/mgcp_client_fsm.h
@@ -14,20 +14,31 @@
* identifier is supplied it is checked against the internal state to make
* sure it is correct. */
struct mgcp_conn_peer {
- /*!< RTP connection IP-Address (optional, string e.g. "127.0.0.1") */
+ /*! RTP connection IP-Address (optional, string e.g. "127.0.0.1") */
char addr[INET_ADDRSTRLEN];
- /*!< RTP connection IP-Port (optional) */
+ /*! RTP connection IP-Port (optional) */
uint16_t port;
- /*!< RTP endpoint */
+ /*! RTP endpoint */
char endpoint[MGCP_ENDPOINT_MAXLEN];
- /*!< CALL ID (unique per connection) */
+ /*! CALL ID (unique per connection) */
unsigned int call_id;
+
+ /*! RTP packetization interval (optional) */
+ unsigned int ptime;
+
+ /*! RTP codec list (optional) */
+ enum mgcp_codecs codecs[MGCP_MAX_CODECS];
+
+ /*! Number of codecs in RTP codec list (optional) */
+ unsigned int codecs_len;
};
struct osmo_fsm_inst *mgcp_conn_create(struct mgcp_client *mgcp, struct osmo_fsm_inst *parent_fi, uint32_t parent_term_evt,
uint32_t parent_evt, struct mgcp_conn_peer *conn_peer);
int mgcp_conn_modify(struct osmo_fsm_inst *fi, uint32_t parent_evt, struct mgcp_conn_peer *conn_peer);
void mgcp_conn_delete(struct osmo_fsm_inst *fi);
+
+const char *mgcp_conn_get_ci(struct osmo_fsm_inst *fi);