diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-09-01 18:18:43 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-09-03 18:23:20 +0200 |
commit | ab386e6120559ef2deb6a27f4455539cba920c9d (patch) | |
tree | 425cb2f19eac173c8d59c719143735865f94740b /openbsc/include | |
parent | 6b353778c4329deb27f69301c050e0b6e55d4df6 (diff) |
Add VTY command to specify default speech codec
In order to have the MNCC application reliably decide on the codec type,
it needs to know if we are running on a TCH/F or TCH/H. Thus, we pass
lchan_mode as a new parameter to the 'struct gsm_mncc'
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/Makefile.am | 2 | ||||
-rw-r--r-- | openbsc/include/openbsc/mncc.h | 1 | ||||
-rw-r--r-- | openbsc/include/openbsc/mncc_int.h | 12 | ||||
-rw-r--r-- | openbsc/include/openbsc/vty.h | 1 |
4 files changed, 15 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/Makefile.am b/openbsc/include/openbsc/Makefile.am index 7717efb36..bb78535d8 100644 --- a/openbsc/include/openbsc/Makefile.am +++ b/openbsc/include/openbsc/Makefile.am @@ -11,7 +11,7 @@ noinst_HEADERS = abis_nm.h abis_rsl.h db.h gsm_04_08.h gsm_data.h \ gprs_ns_frgre.h auth.h osmo_msc.h bsc_msc.h bsc_nat.h \ osmo_bsc_rf.h osmo_bsc.h network_listen.h bsc_nat_sccp.h \ osmo_msc_data.h osmo_bsc_grace.h sms_queue.h abis_om2000.h \ - bss.h gsm_data_shared.h control_cmd.h ipaccess.h + bss.h gsm_data_shared.h control_cmd.h ipaccess.h mncc_int.h openbsc_HEADERS = gsm_04_08.h meas_rep.h bsc_api.h openbscdir = $(includedir)/openbsc diff --git a/openbsc/include/openbsc/mncc.h b/openbsc/include/openbsc/mncc.h index ed1bfd652..8c59fe2c6 100644 --- a/openbsc/include/openbsc/mncc.h +++ b/openbsc/include/openbsc/mncc.h @@ -148,6 +148,7 @@ struct gsm_mncc { int emergency; char imsi[16]; + unsigned char lchan_type; unsigned char lchan_mode; }; diff --git a/openbsc/include/openbsc/mncc_int.h b/openbsc/include/openbsc/mncc_int.h new file mode 100644 index 000000000..4f30f08c0 --- /dev/null +++ b/openbsc/include/openbsc/mncc_int.h @@ -0,0 +1,12 @@ +#ifndef _MNCC_INT_H +#define _MNCC_INT_H + +#include <stdint.h> + +struct mncc_int { + uint8_t def_codec[2]; +}; + +extern struct mncc_int mncc_int; + +#endif diff --git a/openbsc/include/openbsc/vty.h b/openbsc/include/openbsc/vty.h index d455a2b81..19b168fac 100644 --- a/openbsc/include/openbsc/vty.h +++ b/openbsc/include/openbsc/vty.h @@ -35,6 +35,7 @@ enum bsc_vty_node { OM2K_NODE, TRUNK_NODE, PGROUP_NODE, + MNCC_INT_NODE, }; extern int bsc_vty_is_config_node(struct vty *vty, int node); |