aboutsummaryrefslogtreecommitdiffstats
path: root/tests/msc_vlr/msc_vlr_test_call.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/msc_vlr/msc_vlr_test_call.c')
-rw-r--r--tests/msc_vlr/msc_vlr_test_call.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/msc_vlr/msc_vlr_test_call.c b/tests/msc_vlr/msc_vlr_test_call.c
index 392d38df6..dfa3141c6 100644
--- a/tests/msc_vlr/msc_vlr_test_call.c
+++ b/tests/msc_vlr/msc_vlr_test_call.c
@@ -25,11 +25,13 @@
#include <osmocom/msc/gsm_04_08.h>
-static void mncc_sends_to_cc(uint32_t msg_type, struct gsm_mncc *mncc)
-{
- mncc->msg_type = msg_type;
- mncc_tx_to_cc(net, mncc);
-}
+#define mncc_sends_to_cc(MSG_TYPE, MNCC) do { \
+ (MNCC)->msg_type = MSG_TYPE; \
+ log("MSC <-- MNCC: callref 0x%x: %s\n%s", (MNCC)->callref, \
+ get_mncc_name((MNCC)->msg_type), \
+ (MNCC)->sdp); \
+ mncc_tx_to_cc(net, MNCC); \
+ } while(0)
/*
static void on_call_release_mncc_sends_to_cc(uint32_t msg_type, struct gsm_mncc *mncc)