aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_08.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-17 15:05:57 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-17 15:05:57 +0800
commit86481c29d4cc9bed3010db466be6e0757458b031 (patch)
treea8b74f246eece8021115bce1b8c4f21bd97d5a2b /openbsc/src/gsm_04_08.c
parent7b4a53d537a1d6cb6bfff2c65e3252c2a4ac0aa7 (diff)
bsc_api: Make paging/silent call work with the subscriber_connection
Do not use the lchan for the paging but operate on the subscriber_connection, change the signals too to not carry the lchan but the subscriber connection... the silent call and vty code still assume there is a lchan inside the subscriber connection.
Diffstat (limited to 'openbsc/src/gsm_04_08.c')
-rw-r--r--openbsc/src/gsm_04_08.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 297a2c9f2..9ec2bf916 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -1363,9 +1363,9 @@ static int gsm48_cc_tx_setup(struct gsm_trans *trans, void *arg);
/* call-back from paging the B-end of the connection */
static int setup_trig_pag_evt(unsigned int hooknum, unsigned int event,
- struct msgb *msg, void *_lchan, void *param)
+ struct msgb *msg, void *_conn, void *param)
{
- struct gsm_lchan *lchan = _lchan;
+ struct gsm_subscriber_connection *conn = _conn;
struct gsm_subscriber *subscr = param;
struct gsm_trans *transt, *tmp;
struct gsm_network *net;
@@ -1387,13 +1387,13 @@ static int setup_trig_pag_evt(unsigned int hooknum, unsigned int event,
continue;
switch (event) {
case GSM_PAGING_SUCCEEDED:
- if (!lchan) // paranoid
+ if (!conn) // paranoid
break;
DEBUGP(DCC, "Paging subscr %s succeeded!\n",
subscr->extension);
/* Assign lchan */
if (!transt->conn) {
- transt->conn = &lchan->conn;
+ transt->conn = conn;
use_subscr_con(transt->conn);
}
/* send SETUP request to called party */