diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-25 14:08:00 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-26 09:40:03 +0100 |
commit | 81c0e2582fd0688ccf479e67c6a6be488dcc3fd6 (patch) | |
tree | 49c277bafeb809df2368ebefba363229d6065fcb /openbsc/src/vty_interface_layer3.c | |
parent | 17164061a631de73378b677cd4a267351af22dbe (diff) |
sms: Provide some simple vty command for the state of the SMS queue
Diffstat (limited to 'openbsc/src/vty_interface_layer3.c')
-rw-r--r-- | openbsc/src/vty_interface_layer3.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c index f1e537183..f9dd5860f 100644 --- a/openbsc/src/vty_interface_layer3.c +++ b/openbsc/src/vty_interface_layer3.c @@ -46,6 +46,7 @@ #include <openbsc/vty.h> #include <openbsc/gsm_04_80.h> #include <openbsc/chan_alloc.h> +#include <openbsc/sms_queue.h> extern struct gsm_network *gsmnet_from_vty(struct vty *v); @@ -633,6 +634,17 @@ DEFUN(show_stats, return CMD_SUCCESS; } +DEFUN(show_smsqueue, + show_smsqueue_cmd, + "show sms-queue", + SHOW_STR "Display SMSqueue statistics\n") +{ + struct gsm_network *net = gsmnet_from_vty(vty); + + sms_queue_stats(net->sms_queue, vty); + return CMD_SUCCESS; +} + int bsc_vty_init_extra(void) { @@ -650,6 +662,7 @@ int bsc_vty_init_extra(void) install_element_ve(&subscriber_ussd_notify_cmd); install_element_ve(&subscriber_update_cmd); install_element_ve(&show_stats_cmd); + install_element_ve(&show_smsqueue_cmd); install_element(ENABLE_NODE, &ena_subscr_name_cmd); install_element(ENABLE_NODE, &ena_subscr_extension_cmd); |