diff options
author | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-28 16:43:38 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-28 16:43:38 +0200 |
commit | 0fe78d39bd0de11645e930252b4b1e05c99eba19 (patch) | |
tree | 68e78b61b29409ce49a18514daff72c4c289610b /openbsc/src/libmgcp/osmux.c | |
parent | 36a03bdfcb059ef22d7d2a52c5093194b5c12574 (diff) |
osmux: allow to specify the Osmux port
via mgcp section from the configuration file.
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; |