diff options
Diffstat (limited to 'openbsc/src/libmgcp/osmux.c')
-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 */ |