FreeCalypso > hg > osmo-playpen
changeset 10:f9a83463ab52
smsc-daemon: receiving MO SMS actually works
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 25 Aug 2023 15:56:47 -0800 |
parents | dfe99a061249 |
children | 44148d13283c |
files | smsc-daemon/record_mo.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/smsc-daemon/record_mo.c Fri Aug 25 15:48:08 2023 -0800 +++ b/smsc-daemon/record_mo.c Fri Aug 25 15:56:47 2023 -0800 @@ -68,7 +68,6 @@ gsm48_decode_bcd_number2(decode_buf, sizeof decode_buf, lv_buf, sizeof lv_buf, 0); fprintf(smsc_log_file, "%s\n", decode_buf[0] ? decode_buf : "<empty>"); - fflush(smsc_log_file); } void record_mo_sm(struct osmo_gsup_message *gmsg) @@ -83,7 +82,7 @@ tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); fprintf(smsc_log_file, "IMSI: %s\n", gmsg->imsi); - fprintf(smsc_log_file, "SM-RP-MR: 0x%02X\n", gmsg->sm_rp_mr); + fprintf(smsc_log_file, "SM-RP-MR: 0x%02X\n", *gmsg->sm_rp_mr); format_addr("SM-RP-DA", gmsg->sm_rp_da_type, gmsg->sm_rp_da_len, gmsg->sm_rp_da); format_addr("SM-RP-OA", gmsg->sm_rp_oa_type, gmsg->sm_rp_oa_len, @@ -94,4 +93,5 @@ while (dp < endp) fprintf(smsc_log_file, "%02X", *dp++); putc('\n', smsc_log_file); + fflush(smsc_log_file); }