osmo-msc/src/libmsc
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.c add LOG_RAN_CONN() to use the conn->fi->id for context 2019-01-12 09:51:22 +00:00
a_iface_bssap.c add LOG_RAN_CONN() to use the conn->fi->id for context 2019-01-12 09:51:22 +00:00
a_reset.c combine several small .h in msc_common.h 2018-11-30 22:46:15 +01:00
ctrl_commands.c cosmetic: remove forgotten debug printf 2018-11-08 11:10:15 +01:00
db.c libmsc/db.c: cosmetic: mark missing breaks in switch as intended 2018-11-21 19:48:16 +07:00
gsm_04_08.c refactor log ctx for vlr_subscr and ran_conn 2019-01-12 09:51:22 +00:00
gsm_04_08_cc.c remove code dup: add msc_mgcp_try_call_assignment() 2019-01-04 16:24:59 +00:00
gsm_04_11.c libmsc/gsm_04_11.c: accept MT SMS messages over GSUP 2019-01-11 21:42:43 +00:00
gsm_04_11_gsup.c libmsc/gsm_04_11.c: accept MT SMS messages over GSUP 2019-01-11 21:42:43 +00:00
gsm_04_14.c rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
gsm_04_80.c rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
gsm_09_11.c Use explicit protocol discriminator for NC SS/USSD session 2019-01-10 17:41:05 +01:00
gsm_subscriber.c use osmo_rat_type from libosmocore 2019-01-04 17:26:14 +00:00
iu_dummy.c refactor log ctx for vlr_subscr and ran_conn 2019-01-12 09:51:22 +00:00
iucs.c use osmo_rat_type from libosmocore 2019-01-04 17:26:14 +00:00
iucs_ranap.c use osmo_rat_type from libosmocore 2019-01-04 17:26:14 +00:00
mncc.c Massive removal of unused code/structs/headers 2018-01-25 00:18:05 +01:00
mncc_builtin.c MNCC: use log wrapper for call processing 2018-12-23 09:51:53 +00:00
mncc_sock.c libmsc/mncc_sock.c: Add lchan_type_offset in queue_hello() 2018-08-10 14:31:30 +00:00
msc_ifaces.c use osmo_rat_type from libosmocore 2019-01-04 17:26:14 +00:00
msc_mgcp.c use mgcp-client configured endpoint domain name 2019-01-05 04:37:56 +01:00
msc_vty.c msc_vty.c: make check-imei-rqd configurable 2019-01-09 14:33:35 +00:00
osmo_msc.c abort assignment on Assignment Failure 2019-01-04 16:24:59 +00:00
ran_conn.c refactor log ctx for vlr_subscr and ran_conn 2019-01-12 09:51:22 +00:00
rrlp.c move ran_conn declarations to new ran_conn.h 2018-11-30 22:46:15 +01:00
silent_call.c combine several small .h in msc_common.h 2018-11-30 22:46:15 +01:00
smpp_openbsc.c rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
smpp_smsc.c smpp_smsc_conf: Fix heap-use-after-free 2018-04-17 16:10:35 +02:00
smpp_smsc.h rename gsm_subscriber_connection to ran_conn 2018-11-30 22:45:42 +01:00
smpp_utils.c dissolve libcommon: drop debug.c 2018-03-22 17:05:42 +01:00
smpp_vty.c vty: skip installing cmds now always installed by default 2017-11-01 00:51:21 +01:00
sms_queue.c GSM_EXTENSION_LENGTH -> VLR_MSISDN_LENGTH 2018-11-30 22:46:15 +01:00
transaction.c Constify transaction helpers parameters 2019-01-04 09:38:07 +00:00