diff options
author | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-27 14:58:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-27 16:56:08 +0200 |
commit | 8be171e88f2a64c29f93cf325945a7b5156b87ec (patch) | |
tree | 0418418eff27bb54cef4f4dcae4fe8f8eb50cb75 /openbsc/src/libmgcp/osmux.c | |
parent | fd1d961af507f2913b1d23a31c45e4f3f7ce497b (diff) |
osmux: move osmux socket initialization out of osmux_enable_endpoint()
In the bsc-nat side, the osmux socket initialization can be done from
the vty. This ensure that the osmux socket is available by the time the
bsc-nt receives the dummy load that confirms that the osmux flow has
been set up.
This change is required by the follow up patch. This change ensures that
the Osmux socket in the bsc-nat is already in place by the time this
receives the dummy load.
Diffstat (limited to 'openbsc/src/libmgcp/osmux.c')
-rw-r--r-- | openbsc/src/libmgcp/osmux.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/openbsc/src/libmgcp/osmux.c b/openbsc/src/libmgcp/osmux.c index a6deeaabb..1370c9f21 100644 --- a/openbsc/src/libmgcp/osmux.c +++ b/openbsc/src/libmgcp/osmux.c @@ -439,14 +439,6 @@ int osmux_enable_endpoint(struct mgcp_endpoint *endp, int role) */ static const uint32_t rtp_ssrc_winlen = UINT32_MAX / 256; - if (!endp->cfg->osmux_init) { - if (osmux_init(role, endp->cfg) < 0) { - LOGP(DMGCP, LOGL_ERROR, "Cannot init OSMUX\n"); - return -1; - } - LOGP(DMGCP, LOGL_NOTICE, "OSMUX requested, ENABLING.\n"); - } - osmux_xfrm_output_init(&endp->osmux.out, (endp->ci * rtp_ssrc_winlen) + (random() % rtp_ssrc_winlen)); |