Try to run snd_info & snd_test for each sound device (they should be in pjsip-apps/bin/samples directory), just to make sure whether the existing pjmedia sound device abstraction (pasound.c in this case) can works on your board. If it is not working, then you may need to follow the quoted doc above, creating your own sound device wrapper. Here is the doc of sound device interface (sound.h): http://www.pjsip.org/pjmedia/docs/html/group__PJMED__SND.htm There are some samples of sound device wrapper implementation: pasound.c, symbian_sound[_aps].c, dsound.c Btw, since PJSIP sound device implementation on Linux is using PortAudio, it may also be useful to find related topics from PortAudio forums/mailing list archive. Regards, nanang On Mon, Sep 8, 2008 at 9:15 PM, P.Muge Ersoy <muge.ersoy at gmail.com> wrote: > Hi All; > > I am having trouble about sound on st linux. I compiled the pjsua and had > two assertion. First one was; > > "pjsua-sh4-unknown-linux-gnu: > src/../../../portaudio/src/common/pa_front.c:352: Pa_Initialize: Assertion > `"PortAudio: compile time and runtime endianness don't match" && (((char > *)&nativeOne)[0]) == 0' failed. > little endian a set ediyoruz pa_endianness.h " > > I set it to little endian manually.. Second one was ; > > pjsua-sh4-unknown-linux-gnu: > src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c:837: > BuildDeviceList: Assertion `devIdx < numDeviceNames' failed. > pa_linux_alsa.c > > I simply command out it. > > I compiled and when i started pjsua it loaded and registered successfully > ... I made call, connection establish but there was no sound. > > There is Alsa driver register on the ST board; > > Advanced Linux Sound Architecture Driver Version 1.0.11rc4 (Wed Mar 22 > 10:27:24 > 2006 UTC). > ALSA device list: > #0: STb7100_PCM0 > #1: STb7100_PCM1 > #2: STb7100_SPDIF > #3: STb7100_CNV > > I saw below at documentation page; > > "Use your own sound device abstraction, rather than PortAudio. If you are > porting PJSIP to an embedded platform, you will need to create your own > sound device abstraction. So supposing we don't use PortAudio and use the > NULL sound device implementation > (PJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_NULL_SOUND), we will reduce > executable size by approximately 49 KB." > > Actually i didn't quite get the meaning of sound device abstraction ? How > would it be done ? > > > Regards > Muge > > _______________________________________________ > 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 > > -- Regards, nanang