From 0932d1e2b41ac733f7f12ca8b887e3ba96525225 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 16 Feb 2009 22:53:52 +0000 Subject: forgot the header files in last commit. sigh. --- include/openbsc/gsm_04_08.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/openbsc/gsm_04_08.h') diff --git a/include/openbsc/gsm_04_08.h b/include/openbsc/gsm_04_08.h index 5fa92faff..edff7691f 100644 --- a/include/openbsc/gsm_04_08.h +++ b/include/openbsc/gsm_04_08.h @@ -480,6 +480,7 @@ enum gsm48_reject_value { struct msgb; struct gsm_bts; +struct gsm_subscriber; /* config options controlling the behaviour of the lower leves */ void gsm0408_allow_everyone(int allow); @@ -488,7 +489,7 @@ void gsm0408_set_reject_cause(int cause); int gsm0408_rcvmsg(struct msgb *msg); void gsm0408_generate_lai(struct gsm48_loc_area_id *lai48, u_int16_t mcc, u_int16_t mnc, u_int16_t lac); -int gsm48_cc_tx_setup(struct gsm_lchan *lchan); +int gsm48_cc_tx_setup(struct gsm_lchan *lchan, struct gsm_subscriber *calling); enum gsm_chan_t get_ctype_by_chreq(struct gsm_bts *bts, u_int8_t ra); enum gsm_chreq_reason_t get_reason_by_chreq(struct gsm_bts *bts, u_int8_t ra); @@ -499,4 +500,9 @@ int generate_mid_from_tmsi(u_int8_t *buf, u_int32_t tmsi); int gsm48_send_rr_release(struct gsm_lchan *lchan); +/* convert a ASCII phone number to call-control BCD */ +int encode_bcd_number(u_int8_t *bcd_lv, u_int8_t max_len, + u_int8_t type, const char *input); +u_int8_t decode_bcd_number(char *output, int output_len, const u_int8_t *bcd_lv); + #endif -- cgit v1.2.3