mgcp_osmux: Remove unused parameter
Change-Id: Icb1e7cb15fe04642578f5292124ebc1eac9c9aa3
This commit is contained in:
parent
3d18dda61a
commit
e93fad8043
|
@ -11,8 +11,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
int osmux_init(int role, struct mgcp_config *cfg);
|
int osmux_init(int role, struct mgcp_config *cfg);
|
||||||
int osmux_enable_endpoint(struct mgcp_endpoint *endp, int role,
|
int osmux_enable_endpoint(struct mgcp_endpoint *endp, struct in_addr *addr, uint16_t port);
|
||||||
struct in_addr *addr, uint16_t port);
|
|
||||||
void osmux_disable_endpoint(struct mgcp_endpoint *endp);
|
void osmux_disable_endpoint(struct mgcp_endpoint *endp);
|
||||||
void osmux_allocate_cid(struct mgcp_endpoint *endp);
|
void osmux_allocate_cid(struct mgcp_endpoint *endp);
|
||||||
void osmux_release_cid(struct mgcp_endpoint *endp);
|
void osmux_release_cid(struct mgcp_endpoint *endp);
|
||||||
|
|
|
@ -340,8 +340,7 @@ static int osmux_handle_dummy(struct mgcp_config *cfg, struct sockaddr_in *addr,
|
||||||
if (endp->osmux.state == OSMUX_STATE_ENABLED)
|
if (endp->osmux.state == OSMUX_STATE_ENABLED)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (osmux_enable_endpoint(endp, OSMUX_ROLE_BSC_NAT,
|
if (osmux_enable_endpoint(endp, &addr->sin_addr, addr->sin_port) < 0 ) {
|
||||||
&addr->sin_addr, addr->sin_port) < 0 ){
|
|
||||||
LOGP(DMGCP, LOGL_ERROR,
|
LOGP(DMGCP, LOGL_ERROR,
|
||||||
"Could not enable osmux in endpoint %d\n",
|
"Could not enable osmux in endpoint %d\n",
|
||||||
ENDPOINT_NUMBER(endp));
|
ENDPOINT_NUMBER(endp));
|
||||||
|
@ -433,8 +432,7 @@ int osmux_init(int role, struct mgcp_config *cfg)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int osmux_enable_endpoint(struct mgcp_endpoint *endp, int role,
|
int osmux_enable_endpoint(struct mgcp_endpoint *endp, struct in_addr *addr, uint16_t port)
|
||||||
struct in_addr *addr, uint16_t port)
|
|
||||||
{
|
{
|
||||||
/* If osmux is enabled, initialize the output handler. This handler is
|
/* If osmux is enabled, initialize the output handler. This handler is
|
||||||
* used to reconstruct the RTP flow from osmux. The RTP SSRC is
|
* used to reconstruct the RTP flow from osmux. The RTP SSRC is
|
||||||
|
@ -522,8 +520,7 @@ int osmux_send_dummy(struct mgcp_endpoint *endp)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (endp->osmux.state == OSMUX_STATE_ACTIVATING) {
|
if (endp->osmux.state == OSMUX_STATE_ACTIVATING) {
|
||||||
if (osmux_enable_endpoint(endp, OSMUX_ROLE_BSC,
|
if (osmux_enable_endpoint(endp, &endp->net_end.addr,
|
||||||
&endp->net_end.addr,
|
|
||||||
htons(endp->cfg->osmux_port)) < 0) {
|
htons(endp->cfg->osmux_port)) < 0) {
|
||||||
LOGP(DMGCP, LOGL_ERROR,
|
LOGP(DMGCP, LOGL_ERROR,
|
||||||
"Could not activate osmux in endpoint %d\n",
|
"Could not activate osmux in endpoint %d\n",
|
||||||
|
|
Loading…
Reference in New Issue