From cbb7b79e19f149de5543d3f49c73bc707cd545b9 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Mon, 3 Jul 2017 15:26:22 +0200 Subject: simple-client/server: be able to decide on which ss7 instance to bind osmo_sccp_simple_client() and osmo_sccp_simple_server() are binding on the ss7 instance with the id 1 by default. If the instance does not exist, it is created automatically. Allow choosing the ss7 instance by supplying the id number as function parameter. Add two new functions: osmo_sccp_simple_client_on_ss7_id() osmo_sccp_simple_server_on_ss7_id() Change-Id: I62e608253212415bddbb4c7dcf5d3b5e79c8d28e --- include/osmocom/sigtran/osmo_ss7.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/osmocom/sigtran') diff --git a/include/osmocom/sigtran/osmo_ss7.h b/include/osmocom/sigtran/osmo_ss7.h index caf12f5..57a4e06 100644 --- a/include/osmocom/sigtran/osmo_ss7.h +++ b/include/osmocom/sigtran/osmo_ss7.h @@ -438,11 +438,22 @@ osmo_sccp_simple_client(void *ctx, const char *name, uint32_t pc, enum osmo_ss7_asp_protocol prot, int local_port, const char *local_ip, int remote_port, const char *remote_ip); +struct osmo_sccp_instance * +osmo_sccp_simple_client_on_ss7_id(void *ctx, uint32_t ss7_id, const char *name, + uint32_t pc, enum osmo_ss7_asp_protocol prot, + int local_port, const char *local_ip, + int remote_port, const char *remote_ip); + struct osmo_sccp_instance * osmo_sccp_simple_server(void *ctx, uint32_t pc, enum osmo_ss7_asp_protocol prot, int local_port, const char *local_ip); +struct osmo_sccp_instance * +osmo_sccp_simple_server_on_ss7_id(void *ctx, uint32_t ss7_id, uint32_t pc, + enum osmo_ss7_asp_protocol prot, + int local_port, const char *local_ip); + struct osmo_sccp_instance * osmo_sccp_simple_server_add_clnt(struct osmo_sccp_instance *inst, enum osmo_ss7_asp_protocol prot, -- cgit v1.2.3