aboutsummaryrefslogtreecommitdiffstats
path: root/src/msc_conn.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-16 22:35:30 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-17 19:34:27 +0100
commitc5200fcb354b7c70cf0c1198abf10281906c3aad (patch)
tree534265b6842b87e9c5450836fe4b7cb9d1860922 /src/msc_conn.c
parentab7c601118ef19414e8c83fe7f93415f5061b04c (diff)
ss7: Move the linkset up/down into the ss7_app, move some code around
Diffstat (limited to 'src/msc_conn.c')
-rw-r--r--src/msc_conn.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/msc_conn.c b/src/msc_conn.c
index 06d0d88..e5023c6 100644
--- a/src/msc_conn.c
+++ b/src/msc_conn.c
@@ -46,6 +46,7 @@
static void msc_send_id_response(struct msc_connection *bsc);
static void msc_send(struct msc_connection *bsc, struct msgb *msg, int proto);
static void msc_schedule_reconnect(struct msc_connection *bsc);
+static void mgcp_forward(struct msc_connection *fw, const uint8_t *data, unsigned int length);
int send_or_queue_bsc_msg(struct mtp_link_set *link, int sls, struct msgb *msg)
{
@@ -335,6 +336,16 @@ static void msc_schedule_reconnect(struct msc_connection *fw)
/*
* mgcp forwarding is below
*/
+/* send a RSIP to the MGCP GW */
+void msc_mgcp_reset(struct msc_connection *msc)
+{
+ static const char mgcp_reset[] = {
+ "RSIP 1 13@mgw MGCP 1.0\r\n"
+ };
+
+ mgcp_forward(msc, (const uint8_t *) mgcp_reset, strlen(mgcp_reset));
+}
+
static int mgcp_do_write(struct bsc_fd *fd, struct msgb *msg)
{
int ret;
@@ -375,7 +386,7 @@ static int mgcp_do_read(struct bsc_fd *fd)
return 0;
}
-void mgcp_forward(struct msc_connection *fw, const uint8_t *data, unsigned int length)
+static void mgcp_forward(struct msc_connection *fw, const uint8_t *data, unsigned int length)
{
struct msgb *mgcp;