diff options
Diffstat (limited to 'openbsc/src/libmgcp/osmux.c')
-rw-r--r-- | openbsc/src/libmgcp/osmux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/libmgcp/osmux.c b/openbsc/src/libmgcp/osmux.c index c9f344def..a8f5da816 100644 --- a/openbsc/src/libmgcp/osmux.c +++ b/openbsc/src/libmgcp/osmux.c @@ -416,7 +416,10 @@ int osmux_init(int role, struct mgcp_config *cfg) } osmux_fd.data = cfg; - ret = mgcp_create_bind("0.0.0.0", &osmux_fd, OSMUX_PORT); + if (!cfg->osmux_port) + cfg->osmux_port = OSMUX_PORT; + + ret = mgcp_create_bind("0.0.0.0", &osmux_fd, cfg->osmux_port); if (ret < 0) { LOGP(DMGCP, LOGL_ERROR, "cannot bind OSMUX socket\n"); return ret; |