mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
mgcp client: allow getting actual conf from opaque struct
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
struct msgb;
|
||||
struct vty;
|
||||
struct mgcpgw_client;
|
||||
|
||||
struct mgcpgw_client_conf {
|
||||
const char *local_addr;
|
||||
@@ -37,6 +38,7 @@ struct mgcp_response {
|
||||
void mgcpgw_client_conf_init(struct mgcpgw_client_conf *conf);
|
||||
void mgcpgw_client_vty_init(void *talloc_ctx, int node, struct mgcpgw_client_conf *conf);
|
||||
int mgcpgw_client_config_write(struct vty *vty, const char *indent);
|
||||
struct mgcpgw_client_conf *mgcpgw_client_conf_actual(struct mgcpgw_client *mgcp);
|
||||
|
||||
struct mgcpgw_client *mgcpgw_client_init(void *ctx,
|
||||
struct mgcpgw_client_conf *conf);
|
||||
|
@@ -615,3 +615,8 @@ struct msgb *mgcp_msg_dlcx(struct mgcpgw_client *mgcp, uint16_t rtp_endpoint,
|
||||
"DLCX %u %x@mgw MGCP 1.0\r\n"
|
||||
"C: %x\r\n", trans_id, rtp_endpoint, call_id);
|
||||
}
|
||||
|
||||
struct mgcpgw_client_conf *mgcpgw_client_conf_actual(struct mgcpgw_client *mgcp)
|
||||
{
|
||||
return &mgcp->actual;
|
||||
}
|
||||
|
Reference in New Issue
Block a user