[pjsua] Failure using kernel 2.6.39

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 

Thanks for your quick message. Although I rebuilt pjsystest and pjsua I?m still having problems recording
audio in pjsystest:

/**************************************************/
systest.c
/* Device ID to test */
//int systest_cap_dev_id = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV;
//int systest_play_dev_id = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV;
int systest_cap_dev_id = 1;
int systest_play_dev_id = 1;
/*****************************************************/


***
PJSYSTEST 

Audio Recording
This test will allow you to record audio from the microphone, and playback the audio to the speaker. Press OK to start recording, CANCEL to skip.
1:OK  9:Cancel  
1
 12:46:30.710      systest.c  Running Audio Recording
 12:46:30.714   wav_writer.c  File writer 'PJSYSTEST_TESTREC.WAV' created: samp.rate=8000, bufsize=4KB
 12:46:30.715  pjsua_media.c  Opening sound device PCM at 8000/1/20ms
 12:46:30.724   conference.c  Port 0 (CS5535 Audio: CS5535 Audio (hw:0,0)) transmitting to port 1 (PJSYSTEST_TESTREC.WAV)
Audio Recording
Recording is in progress now, please say something in the microphone. Press OK to stop recording
1:OK  
 12:46:30.744 os_core_unix.c  Info: possibly re-registering existing thread
1
 12:46:40.918   conference.c  Port 0 (CS5535 Audio: CS5535 Audio (hw:0,0)) stop transmitting to port 1 (PJSYSTEST_TESTREC.WAV)
 12:46:40.923   wav_player.c  File player 'PJSYSTEST_TESTREC.WAV' created: samp.rate=8000, ch=1, bufsize=4KB, filesize=162KB
 12:46:40.925   conference.c  Port 1 (PJSYSTEST_TESTREC.WAV) transmitting to port 0 (CS5535 Audio: CS5535 Audio (hw:0,0))
***

Is there any problem in "conference.c" as it doesn?t report the "default" device?
The previous tests run OK...

Anyway, I ran this new pjsua and sometimes seems to work OK but sometimes it stops suddenly. Watching the 'top' command results its CPU load gets down from around 36% to just 2-3 %...

I also tried changing the echo canceller algorithm (--ec-opt=0, 1 or 2):

./pjsua --ec-tail=256 --ec-opt=1 --add-codec pcma --clock-rate 8000 --no-vad --quality 10 --log-file=/mntDAT/VoIP/vgsua.log --log-level=6 --app-log-level=0 --capture-dev=1 --playback-dev=1 --auto-answer=200
 
I attach 5 logs of the rang end so you can see what is happening:

ec0-OK.log = --ec-opt=0 properly working 
ec0_KO.log = --ec-opt=0 not working
ec1_OK.log = --ec-opt=1 properly working
ec1_KO.log = --ec-opt=1 not working
ec2_KO.log = --ec-opt=2 not working

Thanks in advance once again...what can I do now?


*************************************************************************
Hi,

I don't see the native ALSA device enabled in both of your logs, so
maybe it hasn't been tried? (setting #define
PJMEDIA_AUDIO_DEV_HAS_ALSA 1 is sufficient to enable native ALSA).

In my experience (I use 2.6.32-33), it's common to have audio stuck
especially during closing with PA backend, but it never happens with
the native ALSA backend.

Also you can change the default device used by pjsystest by modifying
systest.c:120-121. If you have problems with sound device, this *is*
the utility to use before jumping in with pjsua.

 Benny

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111014/173abec8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ec0-KO.log
Type: text/x-log
Size: 24576 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111014/173abec8/attachment-0005.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ec1-KO.log
Type: text/x-log
Size: 19456 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111014/173abec8/attachment-0006.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ec1-OK.log
Type: text/x-log
Size: 38113 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111014/173abec8/attachment-0007.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ec2-KO.log
Type: text/x-log
Size: 21504 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111014/173abec8/attachment-0008.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ec0-OK.log
Type: text/x-log
Size: 35739 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20111014/173abec8/attachment-0009.log>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux