summaryrefslogtreecommitdiffstats
path: root/src/router/call.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2021-08-25 15:35:09 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2021-09-17 16:33:29 +0200
commit42f4d661a999215166672fba9d3a182ae58babcc (patch)
tree5bd3c1a94501bd516782f3a7547b01d43f44f55e /src/router/call.h
parent80d911e5a649b4c9cf3bb506c766b1611a8e95aa (diff)
Support for two endpoints. Useful for multi stack setups.
Diffstat (limited to 'src/router/call.h')
-rw-r--r--src/router/call.h3
1 files changed, 2 insertions, 1 deletions
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);