summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-02-14 21:21:42 +0100
committerAlfred E. Heggestad <aeh@db.org>2015-02-14 21:21:42 +0100
commit503c111c88b9a447a64bd84ab7e2d1d57a2e27ef (patch)
tree864e1cd806efedee593530cce1f36d10984bfa0f /include
parent01bff9428954948da5f05098cb70aac971865f72 (diff)
contact: add access-parameter
- basic access-control for incoming calls, originally based on a patch from Doug Blewett (thanks!) - each contact-entry can optionally have a ;access={block,allow} parameter. - add a hash-table for all contacts for fast lookup
Diffstat (limited to 'include')
-rw-r--r--include/baresip.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/baresip.h b/include/baresip.h
index 25e1f24..ac1c6eb 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -214,9 +214,13 @@ enum presence_status {
struct contact;
+int contact_init(void);
+void contact_close(void);
int contact_add(struct contact **contactp, const struct pl *addr);
int contacts_print(struct re_printf *pf, void *unused);
void contact_set_presence(struct contact *c, enum presence_status status);
+bool contact_block_access(const char *uri);
+struct contact *contact_find(const char *uri);
struct sip_addr *contact_addr(const struct contact *c);
struct list *contact_list(void);
const char *contact_str(const struct contact *c);