From f892763b0f79c8c061d02e46791ab3b387bb9efa Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 28 Aug 2014 16:51:17 +0200 Subject: osmux: use osmux port when specified from vty from engine Instead of the hardcoded OSMUX_PORT. --- openbsc/src/libmgcp/osmux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbsc/src/libmgcp') diff --git a/openbsc/src/libmgcp/osmux.c b/openbsc/src/libmgcp/osmux.c index a8f5da816..eeafe394d 100644 --- a/openbsc/src/libmgcp/osmux.c +++ b/openbsc/src/libmgcp/osmux.c @@ -507,7 +507,7 @@ int osmux_send_dummy(struct mgcp_endpoint *endp) if (endp->osmux.state == OSMUX_STATE_ACTIVATING) { if (osmux_enable_endpoint(endp, OSMUX_ROLE_BSC, &endp->net_end.addr, - htons(OSMUX_PORT)) < 0) { + htons(endp->cfg->osmux_port)) < 0) { LOGP(DMGCP, LOGL_ERROR, "Could not activate osmux in endpoint %d\n", ENDPOINT_NUMBER(endp)); @@ -515,14 +515,14 @@ int osmux_send_dummy(struct mgcp_endpoint *endp) LOGP(DMGCP, LOGL_ERROR, "Osmux CID %u for %s:%u is now enabled\n", endp->osmux.cid, inet_ntoa(endp->net_end.addr), - OSMUX_PORT); + endp->cfg->osmux_port); } LOGP(DMGCP, LOGL_DEBUG, "sending OSMUX dummy load to %s CID %u\n", inet_ntoa(endp->net_end.addr), endp->osmux.cid); return mgcp_udp_send(osmux_fd.fd, &endp->net_end.addr, - htons(OSMUX_PORT), buf, sizeof(buf)); + htons(endp->cfg->osmux_port), buf, sizeof(buf)); } /* bsc-nat allocates/releases the Osmux circuit ID */ -- cgit v1.2.3