aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/osmo_msc_data.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-09 17:37:04 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-01-07 15:47:32 +0100
commit83d2d38a3c348168873a9d977641ee4381b01fa3 (patch)
tree4aa7bbe9c3358db2462f0473d6d348aa2a3a40b8 /openbsc/include/openbsc/osmo_msc_data.h
parentea46b77f3ed5ab4fbf8bbfee27525f9ae83253fe (diff)
bsc: Inspect a CC Setup message and attempt to reroute the traffic
Inspect the CC Setup messages and if the dialed number is matching the regexp of the local MSC the connection will be rerouted. The original MSC will get a GSM0808 CLEAR REQUEST, a new connection with a CC Setup message will be opened.
Diffstat (limited to 'openbsc/include/openbsc/osmo_msc_data.h')
-rw-r--r--openbsc/include/openbsc/osmo_msc_data.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/osmo_msc_data.h b/openbsc/include/openbsc/osmo_msc_data.h
index 0bda66225..6eebcdd41 100644
--- a/openbsc/include/openbsc/osmo_msc_data.h
+++ b/openbsc/include/openbsc/osmo_msc_data.h
@@ -27,6 +27,8 @@
#include <osmocom/core/timer.h>
+#include <regex.h>
+
struct osmo_bsc_rf;
struct gsm_network;
@@ -49,6 +51,11 @@ struct osmo_msc_data {
int allow_emerg;
int type;
+ /* local call routing */
+ char *local_pref;
+ regex_t local_pref_reg;
+
+
/* Connection data */
char *bsc_token;
int ping_timeout;