osmo-msc/include/osmocom/msc
Neels Hofmeyr 361e571815 refactor log ctx for vlr_subscr and ran_conn
ran_conn_get_conn_id(): instead of a talloc allocated string, return a static
buffer in ran_conn_get_conn_id(). So far this function had no callers.

Refactor ran_conn_update_id() API: during early L3-Complete, when no subscriber
is associated yet, update the FSM Id by the MI type seen in the L3 Complete
message: ran_conn_update_id_from_mi(). Later on set the vsub and re-update.

Call vlr.ops->subscr_update when the TMSI is updated, so that log context
includes the TMSI from then on.

Enrich context for vlr_subscr_name and ran_conn fi name.

Include all available information in vlr_subscr_name(); instead of either IMSI
or MSISDN or TMSI, print all of them when present. Instead of a short log,
rather have more valuable context.

A context info would now look like:

  Process_Access_Request_VLR(IMSI-901700000014706:MSISDN-2023:TMSI-0x08BDE4EC:GERAN-A-3:PAGING_RESP)

It does get quite long, but ensures easy correlation of any BSSAP / IuCS
messages with log output, especially if multiple subscribers are busy at the
same time.

Print TMSI and TMSInew in uppercase hexadecimal, which is the typical
representation in the telecom world.

When showing the RAN conn id
  GERAN_A-00000017
becomes
  GERAN-A-23
- We usually write the conn_id in decimal.
- Leading zeros are clutter and might suggest hexadecimal format.
- 'GERAN-A' and 'UTRAN-Iu' are the strings defined by osmo_rat_type_name().

Depends: I7798c3ef983c2e333b2b9cbffef6f366f370bd81 (libosmocore)
Depends: Ica25919758ef6cba8348da199b0ae7e0ba628798 (libosmocore)
Change-Id: I66a68ce2eb8957a35855a3743d91a86299900834
2019-01-12 09:51:22 +00:00
..
Makefile.am libmsc/gsm_04_11.c: forward MO SMS messages over GSUP 2018-12-30 11:48:22 +01:00
a_iface.h add LOG_RAN_CONN() to use the conn->fi->id for context 2019-01-12 09:51:22 +00:00
a_iface_bssap.h Don't answer to BSC-originated RESET with another RESET 2018-02-09 02:20:51 +01:00
a_reset.h a_reset: cleanup + remove dead code 2018-05-17 20:14:01 +00:00
db.h cosmetic: drop some unused opaque struct defs 2018-11-30 22:46:15 +01:00
debug.h dissolve libcommon: drop debug.c 2018-03-22 17:05:42 +01:00
gsm_04_08.h rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
gsm_04_11.h libmsc/gsm_04_11.c: accept MT SMS messages over GSUP 2019-01-11 21:42:43 +00:00
gsm_04_11_gsup.h libmsc/gsm_04_11.c: accept MT SMS messages over GSUP 2019-01-11 21:42:43 +00:00
gsm_04_14.h rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
gsm_04_80.h rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
gsm_09_11.h rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
gsm_data.h libmsc/VTY: introduce kill-switch for routing SMS over GSUP 2018-12-30 11:48:22 +01:00
gsm_data_shared.h combine several small .h in msc_common.h 2018-11-30 22:46:15 +01:00
gsm_subscriber.h move gsm_cbfn to gsm_subscriber.h, the only user 2018-11-30 22:46:15 +01:00
iu_dummy.h cosmetic: drop some unused opaque struct defs 2018-11-30 22:46:15 +01:00
iucs.h move ran_conn declarations to new ran_conn.h 2018-11-30 22:46:15 +01:00
iucs_ranap.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
mncc.h MNCC: Add input validation 2018-01-23 17:03:05 +00:00
mncc_int.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
msc_common.h add VTY commands: mncc internal / external (== -M) 2018-12-05 19:35:11 +00:00
msc_ifaces.h rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
msc_mgcp.h abort assignment on Assignment Failure 2019-01-04 16:24:59 +00:00
ran_conn.h refactor log ctx for vlr_subscr and ran_conn 2019-01-12 09:51:22 +00:00
rrlp.h RRLP: migrate and share mode definitions from msc_vty.c 2018-08-05 11:33:20 +00:00
signal.h rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
silent_call.h rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
smpp.h rename include/openbsc to include/osmocom/msc 2017-09-06 16:41:25 +02:00
sms_queue.h Add a VTY command which deletes all expired SMS. 2018-01-25 16:16:15 +00:00
transaction.h move trans->assignment_done to cc.assignment_started 2019-01-04 16:24:59 +00:00
vlr.h VLR: vlr_subscr_{,msisdn_or_}name: const vsub arg 2019-01-09 14:34:34 +00:00
vty.h use vty->type instead of local variable 2018-12-21 12:38:47 +00:00