aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gb_proxy_main.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-14 11:53:08 +0000
committerHarald Welte <laforge@gnumonks.org>2010-05-14 11:53:08 +0000
commit1ccbf44d79544689e47b704f1f714a7bff63c1cf (patch)
treeadf4dec2ec07fa7e580b1b30d395d42413d27ec9 /openbsc/src/gprs/gb_proxy_main.c
parent768f2871a5b1c6639b480816557618ee22ee2e3b (diff)
[GPRS] gb_proxy: Initiate RESET procedure on persistent NS-VC at startup
Some BSS that connect to the proxy do not continue to perform the RESET procedure after a timeout. In order to resurrect them, we simply start a RESET procedure.
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_main.c')
-rw-r--r--openbsc/src/gprs/gb_proxy_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gb_proxy_main.c b/openbsc/src/gprs/gb_proxy_main.c
index f6260bf2d..de83186f3 100644
--- a/openbsc/src/gprs/gb_proxy_main.c
+++ b/openbsc/src/gprs/gb_proxy_main.c
@@ -237,6 +237,10 @@ int main(int argc, char **argv)
nsip_connect(bssgp_nsi, &sin, gbcfg.nsip_sgsn_nsei,
gbcfg.nsip_sgsn_nsvci);
+
+ /* Reset all the persistent NS-VCs that we've read from the config */
+ gbprox_reset_persistent_nsvcs(bssgp_nsi);
+
while (1) {
rc = bsc_select_main(0);
if (rc < 0)