From 42f4d661a999215166672fba9d3a182ae58babcc Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 25 Aug 2021 15:35:09 +0200 Subject: Support for two endpoints. Useful for multi stack setups. --- src/router/call.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/router/call.h') diff --git a/src/router/call.h b/src/router/call.h index e782c26..255ee20 100644 --- a/src/router/call.h +++ b/src/router/call.h @@ -28,6 +28,7 @@ typedef struct call_relation { struct call_relation *next; int num; /* number counter for debugging */ struct call *call; /* points to the call */ + osmo_cc_endpoint_t *cc_ep; /* what endpoint is used for this relation */ uint32_t cc_callref; /* callref for each relation */ const char *sdp; /* received SDP? */ int tones_recv; /* are inband tones available? */ @@ -89,7 +90,7 @@ struct telephone_event { uint16_t duration; }; -int call_init(osmo_cc_endpoint_t *ep, const char *_routing_script, const char *_routing_shell); +int call_init(osmo_cc_endpoint_t *cc_ep1, osmo_cc_endpoint_t *cc_ep2, const char *_routing_script, const char *_routing_shell); void call_exit(void); int call_handle(void); void cc_message(osmo_cc_endpoint_t *ep, uint32_t callref, osmo_cc_msg_t *msg); -- cgit v1.2.3