Posted: Mon Jun 23, 2008 9:42 am Post subject: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein
Hi Sergio,
On Mon, 2008-06-23 at 10:45 +0200, Sergio Garcia Murillo wrote:
Quote:
Hi,
If I recall correctly the original amr codec was developed for using it with nokia e60 and we had to change it
to support octet-aligned mode. So probably your nokia phone is using non aligned mode while if you followed
the instructions your amr codec is working in octet aligned one.
Try changing it in your codec.conf
By the way Klaus, do you remember if we are signaling the mode in the sdp? I don't think so, that would be
probably the reason why the phone is working in non aligned mode.
Sorry I forgot to mention that I have also tried it with adding to
codecs.conf:
[amr]
octet-aligned=1
But then the sound is completely garbled and I still get the same
messages in the console. So I disabled that and restarted the bunch. So
my initial report is without this octec-aligned=1 setting.
Regards,
Patrick
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Wed Jun 25, 2008 7:35 am Post subject: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein
Patrick schrieb:
Quote:
Hi Klaus,
On Mon, 2008-06-23 at 10:10 +0200, Klaus Darilion wrote:
> Patrick schrieb:
>> Hi Klaus,
>>> 3. review the source code to see when this message is printed
>> The error can be found on line 175 in main/translate.c
>
> Do a little bit more reviewing. Why is this message printed. Check the
> source code and go back from here to find the problem with the frame.
That will be a bit of a challenge since I know very little C :(
/*! \brief framein wrapper, deals with plc and bound checks. */
static int framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
{
int16_t *dst = (int16_t *)pvt->outbuf;
int ret;
int samples = pvt->samples; /* initial value */
/* Copy the last in jb timing info to the pvt */
pvt->f.has_timing_info = f->has_timing_info;
pvt->f.ts = f->ts;
pvt->f.len = f->len;
pvt->f.seqno = f->seqno;
if (f->samples == 0) {
ast_log(LOG_WARNING, "no samples for %s\n", pvt->t->name);
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum