summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-08 18:30:47 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-01-23 14:43:30 +0100
commit3296bbe30005b1f0bbc1de6d008ba366784c5412 (patch)
tree07b1e5a3d24119889da0fe2517256c71c2a27283
parentd3db056dcd944b4335a90ed860d8d52f539ae8b2 (diff)
mad hack to make a call to no-oneneels/cscn_ghost_call
-rw-r--r--openbsc/src/libmsc/mncc_builtin.c12
-rw-r--r--openbsc/src/libmsc/transaction.c1
2 files changed, 10 insertions, 3 deletions
diff --git a/openbsc/src/libmsc/mncc_builtin.c b/openbsc/src/libmsc/mncc_builtin.c
index 7f613c4..5e12db2 100644
--- a/openbsc/src/libmsc/mncc_builtin.c
+++ b/openbsc/src/libmsc/mncc_builtin.c
@@ -80,6 +80,9 @@ static uint8_t determine_lchan_mode(struct gsm_mncc *setup)
return mncc_codec_for_mode(setup->lchan_type);
}
+static int mncc_setup_cnf(struct gsm_call *call, int msg_type,
+ struct gsm_mncc *connect);
+
/* on incoming call, look up database and send setup to remote subscr. */
static int mncc_setup_ind(struct gsm_call *call, int msg_type,
struct gsm_mncc *setup)
@@ -146,8 +149,11 @@ static int mncc_setup_ind(struct gsm_call *call, int msg_type,
// setup->fields |= MNCC_F_SIGNAL;
// setup->signal = GSM48_SIGNAL_DIALTONE;
setup->callref = remote->callref;
- DEBUGP(DMNCC, "(call %x) Forwarding SETUP to remote.\n", call->callref);
- return mncc_tx_to_cc(remote->net, MNCC_SETUP_REQ, setup);
+ DEBUGP(DMNCC, "(call %x) NOT Forwarding SETUP to remote.\n", call->callref);
+ //return mncc_tx_to_cc(remote->net, MNCC_SETUP_REQ, setup);
+
+ return 0;
+ //return mncc_setup_cnf(call, msg_type, setup);
out_reject:
mncc_tx_to_cc(call->net, MNCC_REJ_REQ, &mncc);
@@ -214,7 +220,7 @@ static int mncc_setup_cnf(struct gsm_call *call, int msg_type,
#endif
/* proxy mode */
- if (!net->handover.active) {
+ if (false && !net->handover.active) {
/* in the no-handover case, we can bridge, i.e. use
* the old RTP proxy code */
return mncc_tx_to_cc(call->net, MNCC_BRIDGE, &bridge);
diff --git a/openbsc/src/libmsc/transaction.c b/openbsc/src/libmsc/transaction.c
index dba4bed..1e9d4ab 100644
--- a/openbsc/src/libmsc/transaction.c
+++ b/openbsc/src/libmsc/transaction.c
@@ -55,6 +55,7 @@ struct gsm_trans *trans_find_by_callref(struct gsm_network *net,
struct gsm_trans *trans;
llist_for_each_entry(trans, &net->trans_list, entry) {
+ return trans;
if (trans->callref == callref)
return trans;
}