summaryrefslogtreecommitdiffstats
path: root/src/call.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/call.h')
-rw-r--r--src/call.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/call.h b/src/call.h
index 4e8e662..ea2c847 100644
--- a/src/call.h
+++ b/src/call.h
@@ -15,6 +15,7 @@ struct call_leg;
struct call {
struct llist_head entry;
+ unsigned int id;
struct call_leg *initial;
struct call_leg *remote;
};
@@ -27,6 +28,12 @@ enum {
struct call_leg {
int type;
+
+ /**
+ * Set by the call_leg implementation and will be called
+ * by the application to release the call.
+ */
+ void (*release_call)(struct call *, struct call_leg *);
};
struct sip_call_leg {
@@ -43,3 +50,6 @@ struct mncc_call_leg {
extern struct llist_head g_call_list;
void calls_init(void);
+
+
+void call_leg_release(struct call *call, struct call_leg *leg);