aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-24 21:05:32 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-24 21:05:32 +0200
commit922ef5dc86a0514c9a9de728f1761ab9bd42031b (patch)
treef70833c96ba6eee57555c8d38ec0b6d446fa0bf7 /openbsc
parent03551e5f3c1f34f7eca257881aa822aa0e24344d (diff)
bts: Remember the last AMR mode that we received
Not every air message contains the AMR mode so we need to remember it to not confuse receiving equipment like AudioCodes Media Gateways.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/include/openbsc/gsm_data_shared.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data_shared.h b/openbsc/include/openbsc/gsm_data_shared.h
index 54bc59645..cc147a6e7 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -291,6 +291,7 @@ struct gsm_lchan {
uint8_t buf[16];
uint8_t len;
} last_sid;
+ uint8_t last_cmr;
} tch;
/* BTS-side ciphering state (rx only, bi-directional, ...) */
uint8_t ciph_state;