mgcp client: allow getting actual conf from opaque struct

This commit is contained in:
Neels Hofmeyr
2017-07-19 17:12:23 +02:00
parent 3acaadd44d
commit 370f4e3867
2 changed files with 7 additions and 0 deletions

View File

@@ -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);

View File

@@ -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;
}