aboutsummaryrefslogtreecommitdiffstats
path: root/src/call.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-04 17:06:29 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-04 17:09:30 +0200
commitc39c3df2514b41d98c3ee1c2b32d422ea74513c2 (patch)
tree153c2aab3d32ce66bf7038d874b24809717cf25e /src/call.h
parentb2b13f69ae5916477ea3f6e37b57b52a83ac5a63 (diff)
vty: Add simple VTY output for current calls
Start with a show call summary that lists simple data about the current set of calls: Call(5002) initial(type=SIP,state=CONFIRMED) remote(type=MNCC,state=INITIAL) Call(5001) initial(type=MNCC,state=PROCEEDING) remote(type=SIP,state=CONFIRMED) Related: OS#1680
Diffstat (limited to 'src/call.h')
-rw-r--r--src/call.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/call.h b/src/call.h
index b6cb8bf..e844485 100644
--- a/src/call.h
+++ b/src/call.h
@@ -4,6 +4,7 @@
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/timer.h>
+#include <osmocom/core/utils.h>
#include <stdbool.h>
@@ -133,3 +134,12 @@ void call_leg_release(struct call_leg *leg);
struct call *call_mncc_create(void);
struct call *call_sip_create(void);
+
+const char *call_leg_type(struct call_leg *leg);
+const char *call_leg_state(struct call_leg *leg);
+
+extern const struct value_string call_type_vals[];
+extern const struct value_string mncc_state_vals[];
+extern const struct value_string mncc_dir_vals[];
+extern const struct value_string sip_state_vals[];
+extern const struct value_string sip_dir_vals[];