aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp/mgcp_protocol.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-03 02:57:02 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-03 03:04:31 +0800
commitc597a4eba134eec47dd21085f86e749a78261726 (patch)
tree93543d0c2f2f79374c6458007b0c655f98b38058 /openbsc/src/mgcp/mgcp_protocol.c
parent98a3877e979c9e901a7adc6946904a5d535cb93f (diff)
mgcp: Allow to change the receive (the loopback part) via the VTY
Diffstat (limited to 'openbsc/src/mgcp/mgcp_protocol.c')
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c
index d12d1828..5883c155 100644
--- a/openbsc/src/mgcp/mgcp_protocol.c
+++ b/openbsc/src/mgcp/mgcp_protocol.c
@@ -409,6 +409,8 @@ static struct msgb *handle_create_con(struct mgcp_config *cfg, struct msgb *msg)
error_code = 517;
goto error2;
}
+
+ endp->orig_mode = endp->conn_mode;
break;
default:
LOGP(DMGCP, LOGL_NOTICE, "Unhandled option: '%c'/%d on 0x%x\n",
@@ -513,6 +515,7 @@ static struct msgb *handle_modify_con(struct mgcp_config *cfg, struct msgb *msg)
error_code = 517;
goto error3;
}
+ endp->orig_mode = endp->conn_mode;
break;
case 'Z':
silent = strcmp("noanswer", (const char *)&msg->l3h[line_start + 3]) == 0;
@@ -762,4 +765,6 @@ void mgcp_free_endp(struct mgcp_endpoint *endp)
endp->net_seq_no = endp->bts_seq_no = 0;
endp->net_lost_no = endp->bts_lost_no = 0;
+
+ endp->conn_mode = endp->orig_mode = MGCP_CONN_NONE;
}