summaryrefslogtreecommitdiff
path: root/src/baresip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/baresip.c')
-rw-r--r--src/baresip.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/baresip.c b/src/baresip.c
index f70824c..72d13f1 100644
--- a/src/baresip.c
+++ b/src/baresip.c
@@ -14,6 +14,7 @@
*/
static struct baresip {
struct network *net;
+ struct contacts contacts;
} baresip;
@@ -35,12 +36,18 @@ int baresip_init(struct config *cfg, bool prefer_ipv6)
return err;
}
+ err = contact_init(&baresip.contacts);
+ if (err)
+ return err;
+
return 0;
}
void baresip_close(void)
{
+ contact_close(&baresip.contacts);
+
baresip.net = mem_deref(baresip.net);
}
@@ -49,3 +56,9 @@ struct network *baresip_network(void)
{
return baresip.net;
}
+
+
+struct contacts *baresip_contacts(void)
+{
+ return &baresip.contacts;
+}