diff options
Diffstat (limited to 'src/common/voice.c')
-rw-r--r-- | src/common/voice.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/common/voice.c b/src/common/voice.c new file mode 100644 index 00000000..5c33e680 --- /dev/null +++ b/src/common/voice.c @@ -0,0 +1,19 @@ +#include <errno.h> + +#include <osmocom/core/msgb.h> +#include <osmocom/trau/rtp.h> + +#include <osmo-bts/gsm_data.h> + +/* input of an uplink received GSM codec frame + * this is called by the BTS L1 code after a uplink voice frame was + * received and has to be transmitted towards the TRAU */ +int lchan_codec_up(struct gsm_lchan *lchan, struct msgb *msg) +{ + struct rtp_socket *rs = lchan->abis_ip.rtp_socket; + + if (!rs) + return -ENODEV; + + return rtp_socket_send(rs, msg); +} |