bsc: Require osmo-sccp 0.0.6 and update the API
diff --git a/openbsc/configure.ac b/openbsc/configure.ac
index 5951618..5ed5303 100644
--- a/openbsc/configure.ac
+++ b/openbsc/configure.ac
@@ -35,7 +35,7 @@
 
 AC_ARG_ENABLE([osmo-bsc], [AS_HELP_STRING([--enable-osmo-bsc], [Build the Osmo BSC])],
     [
-        PKG_CHECK_MODULES(LIBOSMOSCCP, libosmo-sccp >= 0.0.2)
+        PKG_CHECK_MODULES(LIBOSMOSCCP, libosmo-sccp >= 0.0.6)
         osmo_ac_build_bsc="yes"
     ],
     [
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_msc.c b/openbsc/src/osmo-bsc/osmo_bsc_msc.c
index 2a32227..14a88d9 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_msc.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_msc.c
@@ -376,7 +376,7 @@
 			return;
 		}
 
-		sccp_write(msg, &sccp_ssn_bssap, &sccp_ssn_bssap, 0);
+		sccp_write(msg, &sccp_ssn_bssap, &sccp_ssn_bssap, 0, NULL);
 		msgb_free(msg);
 		conn->is_authenticated = 1;
 	}
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_sccp.c b/openbsc/src/osmo-bsc/osmo_bsc_sccp.c
index f4cdf36..c176908 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_sccp.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_sccp.c
@@ -137,9 +137,10 @@
 	bsc_sccp_force_free(data);
 }
 
-static void msc_sccp_write_ipa(struct sccp_connection *conn, struct msgb *msg, void *data)
+static void msc_sccp_write_ipa(struct sccp_connection *conn, struct msgb *msg,
+			      void *global_ctx, void *ctx)
 {
-	struct gsm_network *net = (struct gsm_network *) data;
+	struct gsm_network *net = (struct gsm_network *) global_ctx;
 	msc_queue_write(net->msc_data->msc_con, msg, IPAC_PROTO_SCCP);
 }