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 809f106..ae715ce 100644
--- a/src/baresip.c
+++ b/src/baresip.c
@@ -20,6 +20,7 @@ static struct baresip {
struct message *message;
struct list mnatl;
struct list mencl;
+ struct list aucodecl;
} baresip;
@@ -34,6 +35,7 @@ int baresip_init(struct config *cfg, bool prefer_ipv6)
list_init(&baresip.mnatl);
list_init(&baresip.mencl);
+ list_init(&baresip.aucodecl);
/* Initialise Network */
err = net_alloc(&baresip.net, &cfg->net,
@@ -116,3 +118,14 @@ struct message *baresip_message(void)
{
return baresip.message;
}
+
+
+/**
+ * Get the list of Audio Codecs
+ *
+ * @return List of audio-codecs
+ */
+struct list *baresip_aucodecl(void)
+{
+ return &baresip.aucodecl;
+}