Hello, Thanks for reply. i did it and it seems it working but i think my procesor is too slow for G729... i have ARM XScale-PXA255 400Mhz with BogoMips 400. When i run pjsua aplication and make call CPU usage is about 90-100% and sound is broken....but when i run streamutil(sample application) which only encode sound from file and send it to remote side it's working fine... CPU usage is about 25-30% ...yes it's only half work what streamutil must do(only encoding) but i thing it is faster then pjsua..and my question is...why? I have bridge ,sound device and codec set to 8KHz sample rate.( no resampling is needed), VAD and echo canceller (EC) is off too or pjsua doing something more? have a nice day :) > Hello > > You need to download g729a codec implementation and compile it > http://code.google.com/p/siphon/source/browse/#svn/trunk > This code work for arm, I think you can replace arm statement by x86 > statement or by C code. > > When I made the patch I forgot to include the file to register the > codec, you should find the solution in mailing list archive. > > Regards > > Samuel > > Le 19/02/10 14:02, Peter Lukac a ?crit : > > Hi > > I want implement G729 codec to my application > > i found in mailing list this project: > > > > http://code.google.com/p/siphon/downloads/list > > > > my steps: > > 1) I apply patch patch-g729.txt from > > http://code.google.com/p/siphon/downloads/list > > > > 2) add code for inicializing g729 codec to pjsua_media.c > > 3) copy headers + source files from sipphon project > > http://code.google.com/p/siphon/source/browse/#svn/trunk/g729a > > to .../third_party/g729 > > 4) run autoconf ./aconfigure.ac> aconfigure > > 5) run ./configure CFLAGS="-g" --disable-ssl --enable-g729-codec&& make > > dep&& make > > > > but i suppose the patch is not complete because i get follow error: > > > > output/pjsua-i686-pc-linux-gnu/main.o output/pjsua-i686-pc-linux- > > gnu/pjsua_app.o > > -L/opt/emtest/compile_386/voip/pjproject-1.5-729/pjlib/lib - > > L/opt/emtest/compile_386/voip/pjproject-1.5-729/pjlib-util/lib - > > L/opt/emtest/compile_386/voip/pjproject-1.5-729/pjnath/lib - > > L/opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/lib - > > L/opt/emtest/compile_386/voip/pjproject-1.5-729/pjsip/lib - > > L/opt/emtest/compile_386/voip/pjproject-1.5-729/third_party/lib > > -lpjsua-i686- pc-linux-gnu -lpjsip-ua-i686-pc-linux-gnu > > -lpjsip-simple-i686-pc-linux-gnu - lpjsip-i686-pc-linux-gnu > > -lpjmedia-codec-i686-pc-linux-gnu -lpjmedia-i686-pc- linux-gnu > > -lpjmedia-audiodev-i686-pc-linux-gnu -lpjnath-i686-pc-linux-gnu - > > lpjlib-util-i686-pc-linux-gnu -lresample-i686-pc-linux-gnu > > -lmilenage-i686-pc- linux-gnu -lsrtp-i686-pc-linux-gnu > > -lgsmcodec-i686-pc-linux-gnu -lspeex-i686- pc-linux-gnu > > -lilbccodec-i686-pc-linux-gnu -lg7221codec-i686-pc-linux-gnu - > > lportaudio-i686-pc-linux-gnu -lpj-i686-pc-linux-gnu -lm -lnsl -lrt > > -lpthread > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/lib/libpjmedia-cod > >ec- i686-pc-linux-gnu.a(g729.o): In function `g729_open': > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/build/../src/pjmed > >ia- codec/g729.c:422: undefined reference to `g729a_enc_mem_size' > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/build/../src/pjmed > >ia- codec/g729.c:425: undefined reference to `g729a_enc_init' > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/build/../src/pjmed > >ia- codec/g729.c:429: undefined reference to `g729a_dec_mem_size' > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/build/../src/pjmed > >ia- codec/g729.c:432: undefined reference to `g729a_dec_init' > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/lib/libpjmedia-cod > >ec- i686-pc-linux-gnu.a(g729.o): In function `g729_close': > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/build/../src/pjmed > >ia- codec/g729.c:447: undefined reference to `g729a_enc_deinit' > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/build/../src/pjmed > >ia- codec/g729.c:448: undefined reference to `g729a_dec_deinit' > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/lib/libpjmedia-cod > >ec- i686-pc-linux-gnu.a(g729.o): In function `g729_encode': > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/build/../src/pjmed > >ia- codec/g729.c:548: undefined reference to `g729a_enc_process' > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/lib/libpjmedia-cod > >ec- i686-pc-linux-gnu.a(g729.o): In function `g729_decode': > > /opt/emtest/compile_386/voip/pjproject-1.5-729/pjmedia/build/../src/pjmed > >ia- codec/g729.c:580: undefined reference to `g729a_dec_process' > > > > > > I suppose i have to add Makefile to /third_party/build/g729 and compile > > all source from codec to libpjmedia-codec but i'm not very familiar with > > automake mess :) > > and my question..have somebody "this" makefile? or some other patch?? > > or is something wrong on my side ? > > > > thanks > > > > > > > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip at lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org