Posted: Thu Jun 19, 2008 5:11 pm Post subject: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein
Hi,
I just built asterisk 1.4.21 with AMR from fontventa (svn version 213).
When I call from my Nokia N95 via GPRS to my Asterisk box or vice versa
using the AMR codec I see a ton of the following messages in the
Asterisk console:
[Jun 19 19:38:16] WARNING[4493]: translate.c:175 framein: no samples for amrtolin
Is this message an indication of a bug in codec_amr?
There's also a lot of delay (more than 2 seconds) when saying something
on the N95 and hearing it on the Cisco phone attached to the Asterisk
box. Strangely saying something on the Cisco phone can be heard almost
instantaneously on the N95. On the other hand when I talk longer on the
N95, the delay before hearing it on the Cisco gets longer too up to 4 or
5 seconds. Seems like something gets buffered way too much before it is
sent on.
I also tested AMR with a Wifi connection on the N95 and that works much
better although I still see a ton of those messages above in the
Asterisk console. Using ILBC as the codec has no problems with a GPRS or
Wifi connection on the N95 so it really seems this issue is AMR related
(codec or N95).
Would anyone have a suggestion how to fix this?
Thanks and regards,
Patrick
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri Jun 20, 2008 6:38 am Post subject: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein
Patrick schrieb:
Quote:
Hi,
I just built asterisk 1.4.21 with AMR from fontventa (svn version 213).
When I call from my Nokia N95 via GPRS to my Asterisk box or vice versa
using the AMR codec I see a ton of the following messages in the
Asterisk console:
[Jun 19 19:38:16] WARNING[4493]: translate.c:175 framein: no samples for amrtolin
strange. It would be interesting what's the cause of the message. Is
there a AST_FRAME_AUDIO without payload?
Quote:
Is this message an indication of a bug in codec_amr?
Depends on where the log message is located. If the log message happens
before the AMR frame is sent to the AMR codec (for decoding into linear)
then it maybe a bug in the h324m gateway, in libh324m or in the phone.
Do you have the same results with another phone?
Quote:
There's also a lot of delay (more than 2 seconds) when saying something
on the N95 and hearing it on the Cisco phone attached to the Asterisk
box. Strangely saying something on the Cisco phone can be heard almost
instantaneously on the N95. On the other hand when I talk longer on the
Strange. Usually the SIP->3G direction is more problematic.
Do you also have video? Is video delayed too?
Quote:
N95, the delay before hearing it on the Cisco gets longer too up to 4 or
5 seconds. Seems like something gets buffered way too much before it is
sent on.
I also tested AMR with a Wifi connection on the N95 and that works much
better although I still see a ton of those messages above in the
Asterisk console. Using ILBC as the codec has no problems with a GPRS or
Wifi connection on the N95 so it really seems this issue is AMR related
(codec or N95).
Is this a pure SIP->SIP call? Then the bug is obviously in the AMR codec
or in the phone.
Quote:
Would anyone have a suggestion how to fix this?
1. try another phone and see if you have the same results
2. try to increase the log level (logger.conf)
3. review the source code to see when this message is printed
regards
klaus
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri Jun 20, 2008 3:10 pm Post subject: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein
Hi Klaus,
Thank you for your feedback. Comments inline.
On Fri, 2008-06-20 at 09:30 +0200, Klaus Darilion wrote:
Quote:
Patrick schrieb:
> Hi,
>
> I just built asterisk 1.4.21 with AMR from fontventa (svn version 213).
> When I call from my Nokia N95 via GPRS to my Asterisk box or vice versa
> using the AMR codec I see a ton of the following messages in the
> Asterisk console:
>
> [Jun 19 19:38:16] WARNING[4493]: translate.c:175 framein: no samples for amrtolin
strange. It would be interesting what's the cause of the message. Is
there a AST_FRAME_AUDIO without payload?
No idea what that means :) I am afraid my C skills are rather limited.
Quote:
> Is this message an indication of a bug in codec_amr?
Depends on where the log message is located. If the log message happens
before the AMR frame is sent to the AMR codec (for decoding into linear)
then it maybe a bug in the h324m gateway, in libh324m or in the phone.
I don't have a h324m gateway or libh324m installed.
Quote:
Do you have the same results with another phone?
No unfortunately not.
Quote:
> There's also a lot of delay (more than 2 seconds) when saying something
> on the N95 and hearing it on the Cisco phone attached to the Asterisk
> box. Strangely saying something on the Cisco phone can be heard almost
> instantaneously on the N95. On the other hand when I talk longer on the
Strange. Usually the SIP->3G direction is more problematic.
Do you also have video? Is video delayed too?
No I don't have video.
Quote:
> N95, the delay before hearing it on the Cisco gets longer too up to 4 or
> 5 seconds. Seems like something gets buffered way too much before it is
> sent on.
>
> I also tested AMR with a Wifi connection on the N95 and that works much
> better although I still see a ton of those messages above in the
> Asterisk console. Using ILBC as the codec has no problems with a GPRS or
> Wifi connection on the N95 so it really seems this issue is AMR related
> (codec or N95).
Is this a pure SIP->SIP call? Then the bug is obviously in the AMR codec
or in the phone.
Posted: Tue Jun 24, 2008 8:50 am Post subject: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein
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.
No, we do not add it to the SDP, and IIRC that would mean
"non-aligned-mode". Signaling octed-aligned in the SDP should not be
difficult to add. The more interesting thing would be, that the mode
should be set dynamically during call setup - to support both modes.
regards
klaus
Quote:
Best regards
Sergio
----- Original Message -----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
To: asterisk-video@lists.digium.com
Sent: Mon, 23 Jun 2008 10:10:06 +0200
Subject: Re: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein:no samples for amrtolin
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.
regards
klaus
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Tue Jun 24, 2008 11:46 am Post subject: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein
Yep, that would be the best way, but as we talked a while ago this would need to be done with the videocaps branch..
BR
Sergio
----- Original Message -----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
To: asterisk-video@lists.digium.com
Sent: Tue, 24 Jun 2008 11:41:19 +0200
Subject: Re: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein:nosamples for amrtolin
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.
No, we do not add it to the SDP, and IIRC that would mean
"non-aligned-mode". Signaling octed-aligned in the SDP should not be
difficult to add. The more interesting thing would be, that the mode
should be set dynamically during call setup - to support both modes.
regards
klaus
Quote:
Best regards
Sergio
----- Original Message -----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
To: asterisk-video@lists.digium.com
Sent: Mon, 23 Jun 2008 10:10:06 +0200
Subject: Re: [Asterisk-video] AMR: WARNING[4493]: translate.c:175 framein:no samples for amrtolin
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.
regards
klaus
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
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