asterisk 1.6.2.7 with g723 issue

41 views
Skip to first unread message
Message has been deleted

katerin

unread,
Jun 2, 2010, 11:59:15 AM6/2/10
to Asterisk G.729
Hello, everyone
I tested your codec binaries on different versions of asterisk
(different
processors) and newer had any problem. but recently I installed
version 1.6.2.7 ( 2 core intel proc). If I load codec g723 into the
asterisk everything is fine and in cli I see
asterisk*CLI> module load codec_g723.so
== Parsing '/etc/asterisk/codecs.conf': == Found
== Registered translator 'g723tolin' from format g723 to slin, cost
1
== Registered translator 'lintog723' from format slin to g723, cost
4000
Loaded codec_g723.so => (g723 Coder/Decoder, based on IPP)

But somehow then asterisk don't plays files which I converted (as
usual I do) into format .g723.
while playing:
-- Executing [123456789@default:1] Playback("SIP/from-
blabla-00000229", sound") in new stack
-- <SIP/from-blabla-00000229> Playing 'sound.g723' (language 'en')
[Jun 2 10:17:44] WARNING[16524]: app_playback.c:471 playback_exec:
ast_streamfile failed on SIP/from-blabla-00000229 for sound

I also tried on 4 core proc, got the same issue (tried different
asterisk applications Background, Read..the same) On asterisk 1.4.23
is no prob with these files playing. Probably did anyone encounter
such a problem..I am wondering what I did wrong

P.S
I also then built the codecs from sources, transformed voice file with
the utility astconv, nothing helped

Arkadi Shishlov

unread,
Jun 2, 2010, 6:12:32 PM6/2/10
to asteri...@googlegroups.com
I will look at this a little bit later, when time permits.
Just give me some time to sort out other projects.

katerin

unread,
Jun 3, 2010, 3:07:44 AM6/3/10
to Asterisk G.729

and a bit more info. The transcoding is done well with this type of
combination (asterisk version, dual core cpu, codec used), problem is
with just playing native codec file .g723 (.wav is ok)

Arkadi Shishlov

unread,
Jun 3, 2010, 2:55:25 PM6/3/10
to asteri...@googlegroups.com, kate...@gmail.com
On 06/02/10 18:59, katerin wrote:
> -- <SIP/from-blabla-00000229> Playing 'sound.g723' (language 'en')
> [Jun 2 10:17:44] WARNING[16524]: app_playback.c:471 playback_exec:
> ast_streamfile failed on SIP/from-blabla-00000229 for sound

I'm surprised that playing .g723 files worked in Asterisk 1.4.
1. The .g723 file format is not raw data, but a stream of timestamp + frame size
+ frame. So "astconv" was of no use.
2. Nobody bothered to update format_g723.c for a while, so I assume it just
silently stopped working in 1.6.

I changed format_g723.c to closely match format_g729.c, so it works now with
astconv produced data with a codec default rate of 6.3kbps.
Patch and entire file attached.

format_g723.diff
format_g723.c

katerin

unread,
Jun 4, 2010, 7:05:17 AM6/4/10
to Asterisk G.729


Thanks a lot, Arkadi. everything works fine with patched format
Reply all
Reply to author
Forward
0 new messages