diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2011-10-31 18:14:03 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2011-11-13 20:25:20 +0100 |
commit | fb7be589e6f2a7e8dcbd560a0b0fdbda7d1fd316 (patch) | |
tree | f67115ddda056bb78d318257c1454eb343d508df /src/host/layer23/src/mobile/main.c | |
parent | cf55219d45b13f8103c54746d61ce4a77e7f5703 (diff) |
host/mobile/sms: Adding SMS support for osmocomBB/mobile
Both MO and MT SMS are supported.
Transmission an reception can be controlled via VTY:
en
sms 1 <destination> <text>
All received SMS are stored in "~/.osmocom/bb/sms.txt".
SMS transmission is performed on SAPI 3 datalink, using DCCH or ACCH.
Written-by: Andreas Eversberg <jolly@eversberg.eu>
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/host/layer23/src/mobile/main.c')
-rw-r--r-- | src/host/layer23/src/mobile/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/host/layer23/src/mobile/main.c b/src/host/layer23/src/mobile/main.c index 3da8e89f..3590ec61 100644 --- a/src/host/layer23/src/mobile/main.c +++ b/src/host/layer23/src/mobile/main.c @@ -67,6 +67,9 @@ int mobile_work(struct osmocom_ms *ms); int mobile_exit(struct osmocom_ms *ms, int force); +const char *debug_default = + "DCS:DNB:DPLMN:DRR:DMM:DSIM:DCC:DMNCC:DLSMS:DPAG:DSUM"; + const char *openbsc_copyright = "Copyright (C) 2008-2010 ...\n" "Contributions by ...\n\n" @@ -87,7 +90,8 @@ static void print_help() printf(" -i --gsmtap-ip The destination IP used for GSMTAP.\n"); printf(" -v --vty-port The VTY port number to telnet to. " "(default %u)\n", vty_port); - printf(" -d --debug Change debug flags.\n"); + printf(" -d --debug Change debug flags. default: %s\n", + debug_default); printf(" -D --daemonize Run as daemon\n"); printf(" -m --mncc-sock Disable built-in MNCC handler and " "offer socket\n"); @@ -198,7 +202,7 @@ int main(int argc, char **argv) handle_options(argc, argv); if (!debug_set) - log_parse_category_mask(stderr_target, "DCS:DNB:DPLMN:DRR:DMM:DSIM:DCC:DMNCC:DPAG:DSUM"); + log_parse_category_mask(stderr_target, debug_default); log_set_log_level(stderr_target, LOGL_DEBUG); if (gsmtap_ip) { |