diff options
author | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-28 16:51:17 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-28 16:51:30 +0200 |
commit | f892763b0f79c8c061d02e46791ab3b387bb9efa (patch) | |
tree | 9b1ab466565ffdb9770db2f74ae7e15135ddb93e /openbsc/src/libmgcp | |
parent | eb7aeb19a2ae28dd2dcd79b2fd7c91f6481c47db (diff) |
osmux: use osmux port when specified from vty from engine
Instead of the hardcoded OSMUX_PORT.
Diffstat (limited to 'openbsc/src/libmgcp')
-rw-r--r-- | openbsc/src/libmgcp/osmux.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |