mirror of
https://gerrit.osmocom.org/osmo-gbproxy
synced 2024-08-18 08:56:23 +00:00
VTY (silent sms / sms): better error reporting
This commit is contained in:
parent
bbe3172996
commit
81cf1980ea
1 changed files with 9 additions and 4 deletions
|
@ -230,9 +230,11 @@ DEFUN(subscriber_send_sms,
|
||||||
struct buffer *b;
|
struct buffer *b;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (!subscr)
|
if (!subscr) {
|
||||||
|
vty_out(vty, "%% No subscriber found for %s %s%s",
|
||||||
|
argv[0], argv[1], VTY_NEWLINE);
|
||||||
return CMD_WARNING;
|
return CMD_WARNING;
|
||||||
|
}
|
||||||
b = argv_to_buffer(argc, argv, 2);
|
b = argv_to_buffer(argc, argv, 2);
|
||||||
rc = _send_sms_buffer(subscr, b, 0);
|
rc = _send_sms_buffer(subscr, b, 0);
|
||||||
buffer_free(b);
|
buffer_free(b);
|
||||||
|
@ -251,8 +253,11 @@ DEFUN(subscriber_silent_sms,
|
||||||
struct buffer *b;
|
struct buffer *b;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (!subscr)
|
if (!subscr) {
|
||||||
|
vty_out(vty, "%% No subscriber found for %s %s%s",
|
||||||
|
argv[0], argv[1], VTY_NEWLINE);
|
||||||
return CMD_WARNING;
|
return CMD_WARNING;
|
||||||
|
}
|
||||||
|
|
||||||
b = argv_to_buffer(argc, argv, 2);
|
b = argv_to_buffer(argc, argv, 2);
|
||||||
rc = _send_sms_buffer(subscr, b, 64);
|
rc = _send_sms_buffer(subscr, b, 64);
|
||||||
|
@ -273,7 +278,7 @@ DEFUN(subscriber_silent_call,
|
||||||
|
|
||||||
if (!subscr) {
|
if (!subscr) {
|
||||||
vty_out(vty, "%% No subscriber found for %s %s%s",
|
vty_out(vty, "%% No subscriber found for %s %s%s",
|
||||||
argv[0], argv[1]);
|
argv[0], argv[1], VTY_NEWLINE);
|
||||||
return CMD_WARNING;
|
return CMD_WARNING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue