From c327187259d74cf260c977f165963778de4bedb1 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 5 Nov 2012 14:54:56 +0100 Subject: nat: Make it possible to send MGCP messages through the IPA multiplex Instead of handling MGCP through the UDP socket, read and write messages through the ipa connection to the MSC. --- openbsc/include/openbsc/bsc_nat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h index 1698fa47f..4baaa8280 100644 --- a/openbsc/include/openbsc/bsc_nat.h +++ b/openbsc/include/openbsc/bsc_nat.h @@ -270,6 +270,7 @@ struct bsc_nat { struct mgcp_config *mgcp_cfg; uint8_t mgcp_msg[4096]; int mgcp_length; + int mgcp_ipa; /* msc things */ struct llist_head dests; @@ -463,6 +464,9 @@ struct bsc_nat_barr_entry { int bsc_nat_barr_adapt(void *ctx, struct rb_root *rbtree, const struct osmo_config_list *); int bsc_nat_barr_find(struct rb_root *root, const char *imsi, int *cm, int *lu); +void bsc_nat_send_mgcp_to_msc(struct bsc_nat *bsc_nat, struct msgb *msg); +void bsc_nat_handle_mgcp(struct bsc_nat *bsc, struct msgb *msg); + struct ctrl_handle *bsc_nat_controlif_setup(struct bsc_nat *nat, int port); void bsc_nat_ctrl_del_pending(struct bsc_cmd_list *pending); int bsc_nat_handle_ctrlif_msg(struct bsc_connection *bsc, struct msgb *msg); -- cgit v1.2.3