diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-05 03:27:41 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-08 07:17:52 +0800 |
commit | 865ba8b572a47c8c32ce61990a892dfabcbd22d4 (patch) | |
tree | 5eafa8a2be09a25862231ea15bf067010a3ad398 /openbsc | |
parent | 9be1b5495f151c668b7ba36fbb10914f6cdb35c1 (diff) |
mgcp: Rename the bind method to show it is only binding for the bts port
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/include/openbsc/mgcp.h | 2 | ||||
-rw-r--r-- | openbsc/src/mgcp/mgcp_network.c | 3 | ||||
-rw-r--r-- | openbsc/src/mgcp/mgcp_vty.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/openbsc/include/openbsc/mgcp.h b/openbsc/include/openbsc/mgcp.h index 9bafebc0c..d149845db 100644 --- a/openbsc/include/openbsc/mgcp.h +++ b/openbsc/include/openbsc/mgcp.h @@ -116,7 +116,7 @@ struct mgcp_config *mgcp_config_alloc(void); int mgcp_parse_config(const char *config_file, struct mgcp_config *cfg); int mgcp_vty_init(void); int mgcp_endpoints_allocate(struct mgcp_config *cfg); -int mgcp_bind_rtp_port(struct mgcp_endpoint *endp, int rtp_port); +int mgcp_bind_bts_rtp_port(struct mgcp_endpoint *endp, int rtp_port); void mgcp_free_endp(struct mgcp_endpoint *endp); /* diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c index c29f645e7..fba319c78 100644 --- a/openbsc/src/mgcp/mgcp_network.c +++ b/openbsc/src/mgcp/mgcp_network.c @@ -339,9 +339,8 @@ cleanup0: return -1; } -int mgcp_bind_rtp_port(struct mgcp_endpoint *endp, int rtp_port) +int mgcp_bind_bts_rtp_port(struct mgcp_endpoint *endp, int rtp_port) { endp->bts_end.local_port = rtp_port; - endp->net_end.local_port = rtp_port; return bind_rtp(endp); } diff --git a/openbsc/src/mgcp/mgcp_vty.c b/openbsc/src/mgcp/mgcp_vty.c index cf3c00aa4..bac26b1f1 100644 --- a/openbsc/src/mgcp/mgcp_vty.c +++ b/openbsc/src/mgcp/mgcp_vty.c @@ -311,7 +311,7 @@ int mgcp_parse_config(const char *config_file, struct mgcp_config *cfg) int rtp_port; rtp_port = rtp_calculate_port(ENDPOINT_NUMBER(endp), g_cfg->rtp_base_port); - if (mgcp_bind_rtp_port(endp, rtp_port) != 0) { + if (mgcp_bind_bts_rtp_port(endp, rtp_port) != 0) { LOGP(DMGCP, LOGL_FATAL, "Failed to bind: %d\n", rtp_port); return -1; } |