From de776d7bc03673ec0d240ec1deec4a7b9eb4ee7a Mon Sep 17 00:00:00 2001 From: Manawyrm Date: Sat, 14 Oct 2023 16:46:22 +0200 Subject: [PATCH] gsm48_ie.c: add 3.1kHz audio bearer capability for CSD calls GSM48_BCAP_ITCAP_3k1_AUDIO should be handled just like fax or unregistricted digital CSD calls. The transfer capability just indicates that an (external) interworking function should convert the call into an analog modem call on the network edge. The CSD call is still regular V.110/RLP non-transparent data. Change-Id: I44b76be0f6a891bc1d8f55ede1ef140ea0a19e3d --- src/gsm/gsm48_ie.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gsm/gsm48_ie.c b/src/gsm/gsm48_ie.c index 0cdcb7ca1..7de1f9814 100644 --- a/src/gsm/gsm48_ie.c +++ b/src/gsm/gsm48_ie.c @@ -233,6 +233,7 @@ int gsm48_decode_bearer_cap(struct gsm_mncc_bearer_cap *bcap, } break; case GSM_MNCC_BCAP_UNR_DIG: + case GSM_MNCC_BCAP_AUDIO: case GSM_MNCC_BCAP_FAX_G3: i = 1; while (!(lv[i] & 0x80)) { @@ -334,6 +335,7 @@ int gsm48_encode_bearer_cap(struct msgb *msg, int lv_only, lv[i] |= 0x80; /* last IE of octet 3 etc */ break; case GSM48_BCAP_ITCAP_UNR_DIG_INF: + case GSM48_BCAP_ITCAP_3k1_AUDIO: case GSM48_BCAP_ITCAP_FAX_G3: lv[i++] |= 0x80; /* last IE of octet 3 etc */ /* octet 4 */