From 49ea18057b64e2a806d6799bc2aa87b30491634e Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Tue, 26 Jul 2016 23:38:03 +0200 Subject: 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 --- include/baresip.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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); /* -- cgit v1.2.3