X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=gsm.cpp;h=3157e10a655cee91f2ae5a83d24ce30ec2fbaf92;hp=eeb91e831c9c3a4b925c3baa8aba1176585d79de;hb=b2dfcf34e67bad4896bb5f73b33509771b937802;hpb=7f0d14c706328e1ff74fe8b8c16ae54407cc8055 diff --git a/gsm.cpp b/gsm.cpp index eeb91e8..3157e10 100644 --- a/gsm.cpp +++ b/gsm.cpp @@ -254,6 +254,12 @@ void Pgsm::frame_receive(void *arg) } } + /* record data */ + if (p_record) + record(data, 160, 0); // from down + if (p_tap) + tap(data, 160, 0); // from down + /* local echo */ if (p_echotest) bridge_rx(data, 160); @@ -275,6 +281,12 @@ int Pgsm::audio_send(unsigned char *data, int len) { unsigned char frame[33]; + /* record data */ + if (p_record) + record(data, len, 1); // from up + if (p_tap) + tap(data, len, 1); // from up + /* encoder init failed */ if (!p_g_encoder) return -EINVAL;