aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcp_protocol.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2014-08-26 13:31:53 +0200
committerPablo Neira Ayuso <pablo@soleta.eu>2014-08-27 14:37:57 +0200
commit63650bbc5d45339198bea9e1c04007ff10140f33 (patch)
tree1394fb690185a781cd73af2ca188877d84e754d3 /openbsc/src/libmgcp/mgcp_protocol.c
parenta4faeb1a79eac3c8d333ded27600228cc5e3a71b (diff)
osmux: encapsulate for osmux state information in struct mgcp_endpoint
Just a cleanup, wrap around the osmux state information in a struct.
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_protocol.c')
-rw-r--r--openbsc/src/libmgcp/mgcp_protocol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/libmgcp/mgcp_protocol.c b/openbsc/src/libmgcp/mgcp_protocol.c
index 1198c24a6..0989cc6eb 100644
--- a/openbsc/src/libmgcp/mgcp_protocol.c
+++ b/openbsc/src/libmgcp/mgcp_protocol.c
@@ -327,7 +327,8 @@ static struct msgb *create_response_with_sdp(struct mgcp_endpoint *endp,
len = snprintf(sdp_record, sizeof(sdp_record),
"I: %u%s\n\n",
endp->ci,
- endp->cfg->osmux && endp->osmux ? "\nX-Osmux: On" : "");
+ endp->cfg->osmux && endp->osmux.enable ?
+ "\nX-Osmux: On" : "");
if (len < 0)
return NULL;
@@ -346,7 +347,7 @@ static struct msgb *create_response_with_sdp(struct mgcp_endpoint *endp,
static void send_dummy(struct mgcp_endpoint *endp)
{
- if (endp->osmux)
+ if (endp->osmux.enable)
osmux_send_dummy(endp);
else
mgcp_send_dummy(endp);