<div>I've been experimenting with decoding AMR in burst_ind with the following steps:</div><div><br></div><div>1. Ignore SACCH and UL frames</div><div>2. check for FACCH</div><div>3. check for CMI/CMR (only on specific frame numbers) and change codec if necessary after 12 frames</div>
<div>4. check for RATSCCH, if necessary change codec after 12 frames</div><div><br></div><div>Can anyone confirm that this is the proper process?</div><div><br></div><div>I've looked at Bob's code of July 2012. It does not use the above checks which may be the reason for its failure.</div>
<div><br></div><div>B.</div><div><br></div><div><br></div><div>=====================</div>

<div><br></div><div><div class="headers" style="margin-top:2pt;font-family:arial,sans-serif">From: bob <avwiseav <at> <a href="http://gmail.com">gmail.com</a>><br>Subject: <a target="_top" rel="nofollow" href="http://news.gmane.org/find-root.php?message_id=%3c1342688308441%2d4025199.post%40n3.nabble.com%3e" style="color:rgb(0,35,144);font-weight:bold;text-decoration:initial">is my patch for capturing TCH frame correctly?</a><br>
Newsgroups: <a href="http://news.gmane.org/gmane.comp.mobile.osmocom.baseband.devel" target="_top" style="color:rgb(0,35,144);font-weight:bold;text-decoration:initial">gmane.comp.mobile.osmocom.baseband.devel</a><br>Date: 2012-07-19 08:58:28 GMT (27 weeks, 6 days, 20 hours and 14 minutes ago)<br>
</div><pre>Hi, everyone interesting the topic, this is my latest patch for TCH decode,
fix few bug;
but it not work well for TCH AMR decode, welcome everyone interesting it to
review it and
modify it!

the most problem now I think is the capture of the Correct TCH frame, at the
last ,there is
some output for analysis

--- app_ccch_scan.c     2012-03-14 16:08:11.305112000 +0800
+++ new_app_ccch_scan.c 2012-07-19 15:32:31.945314000 +0800
 <at>  <at>  -50,20 +50,80  <at>  <at> 
 #include <l1ctl_proto.h>
 
 #include <osmocom/bb/misc/xcch.h>
+#include <codec.h>
+#include "conv_tch_afs.h"
+//#include "../openbtsstuff/GSML1FEC.h"
+//extern bool TCHFACCHL1Decoder::processBurst( const RxBurst& inBurst);
+//const struct osmo_conv_code conv_tch_afs_12_2;
 
+extern FILE *log_tmsi;
 extern struct gsmtap_inst *gsmtap_inst;
+FILE *d_speech_file;
+const unsigned char amr_nb_magic[6] = { 0x23, 0x21, 0x41, 0x4d, 0x52, 0x0a
};
+</pre></div>