summaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-29 19:32:55 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-25 21:04:45 +0200
commit17870cf5333736f6829e0add942df5b26382d97e (patch)
tree91973801d4d55b9abe06f27a4c6009c670d640ef /openbsc/src/nat/bsc_nat.c
parent74dc3031347fa894bd2490512b8abeb44ecee961 (diff)
nat: Create a USSD module to filter out USSDs...
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r--openbsc/src/nat/bsc_nat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index b82c4ef25..515278cba 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -854,12 +854,19 @@ static int forward_sccp_to_msc(struct bsc_connection *bsc, struct msgb *msg)
con = NULL;
goto exit2;
}
+
+ /* hand data to a side channel */
+ if (bsc_check_ussd(con, parsed, msg) == 1) {
+ /* we are going to take over the connection */
+ /* TODO: */
+ }
}
con_bsc = con->bsc;
con_msc = con->msc_con;
con_filter = con->con_local;
}
+
break;
case SCCP_MSG_TYPE_RLC:
con = patch_sccp_src_ref_to_msc(msg, parsed, bsc);