aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/input/ipaccess.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-10-23 20:32:07 +0200
committerHarald Welte <laforge@netfilter.org>2009-10-23 20:32:07 +0200
commit1e14f25d3a2dc65ce7cc43a832ead4d1b9225c83 (patch)
tree95e9220c3fb5398dab827a12d631624fed2aaf1c /openbsc/src/input/ipaccess.c
parent3a2865437b6f9cc9676ef1d069bb1edd1047b0b8 (diff)
parentca0fcbe1573b33924b3cba8349e5777688f2ef7a (diff)
Merge branch 'master' into gprs
Conflicts: openbsc/src/abis_nm.c openbsc/src/bsc_init.c
Diffstat (limited to 'openbsc/src/input/ipaccess.c')
-rw-r--r--openbsc/src/input/ipaccess.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsc/src/input/ipaccess.c b/openbsc/src/input/ipaccess.c
index 2ca10d9c8..745b824d9 100644
--- a/openbsc/src/input/ipaccess.c
+++ b/openbsc/src/input/ipaccess.c
@@ -237,7 +237,6 @@ static int ipaccess_rcvmsg(struct e1inp_line *line, struct msgb *msg,
trx->rsl_link = e1inp_sign_link_create(e1i_ts,
E1INP_SIGN_RSL, trx,
trx->rsl_tei, 0);
- e1inp_event(e1i_ts, EVT_E1_TEI_UP, trx->rsl_tei, 0);
/* get rid of our old temporary bfd */
memcpy(newbfd, bfd, sizeof(*newbfd));
bsc_unregister_fd(bfd);
@@ -251,6 +250,7 @@ static int ipaccess_rcvmsg(struct e1inp_line *line, struct msgb *msg,
/* FIXME: this is per BTS */
static int oml_up = 0;
+static int rsl_up = 0;
/*
* read one ipa message from the socket
@@ -348,6 +348,10 @@ static int handle_ts1_read(struct bsc_fd *bfd)
switch (link->type) {
case E1INP_SIGN_RSL:
+ if (!rsl_up) {
+ e1inp_event(e1i_ts, EVT_E1_TEI_UP, link->tei, link->sapi);
+ rsl_up = 1;
+ }
ret = abis_rsl_rcvmsg(msg);
break;
case E1INP_SIGN_OML: