summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-07-26 23:38:03 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-07-26 23:38:03 +0200
commit49ea18057b64e2a806d6799bc2aa87b30491634e (patch)
tree6b407138e2f94c2a14eedd6dc97b2f184ab82c38 /include
parentff3961ad2920ba674272b4f842f4456ed685a4a7 (diff)
add '@' command to switch calls using line numbers
1. for a given UA, each call has a unique line number starting from 1 2. the list of calls is sorted in an arbitrary order, but the last list element indicates "current call" 3. the '@' command takes a numeric argument which is the line-number of the wanted call
Diffstat (limited to 'include')
-rw-r--r--include/baresip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/baresip.h b/include/baresip.h
index 4173313..a8873db 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -102,6 +102,8 @@ bool call_is_onhold(const struct call *call);
bool call_is_outgoing(const struct call *call);
void call_enable_rtp_timeout(struct call *call, uint32_t timeout_ms);
uint32_t call_linenum(const struct call *call);
+struct call *call_find_linenum(const struct list *calls, uint32_t linenum);
+void call_set_current(struct list *calls, struct call *call);
/*