Great to see this working :-). -----Original Message----- From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of DEEPAK BHATIA Sent: Friday, February 22, 2013 3:36 PM To: pjsip list Subject: Re: [SPAM] PJSUA Giving Audio Device Problems Hi Gaurav, I switched back to PJSIP 1.12 and it is working the below error is coming with PJSIP 2.01. Thanks for your help. Regards Deepak Bhatia On Fri, Feb 22, 2013 at 3:11 PM, DEEPAK BHATIA <toreachdeepak at gmail.com> wrote: Hello Gaurav, As suggested by Alain I installed *libasound2-dev* and recompile PJSIP afterwards. Now I am getting that 15:00:36.200 pjsua_app.c ....Turning sound device ON 15:00:36.200 pjsua_aud.c ....Opening sound device PCM at 16000/1/20ms Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994 Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294 Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870 Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994 15:00:36.201 pjsua_app.c ....Turning sound device ON 15:00:36.201 pjsua_aud.c ....Opening sound device PCM at 44100/1/20ms 15:00:36.214 ec0xb2d11df8 .....AEC created, clock_rate=44100, channel=1, samples per frame=882, tail length=200 ms, latency=100 ms 15:00:36.214 conference.c ...Port 2 (ring) transmitting to port 0 (HDA Intel: ALC1200 Analog (hw:0,0) (44KHz)) 15:00:36.214 pjsua_app.c ..Incoming call for account 0! Media count: 1 audio & 0 video Regards Deepak On Fri, Feb 22, 2013 at 2:57 PM, Gaurav Srivastava <gaurav.srivastava2 at agnity.com> wrote: Hi Deepak, From the logs , line number 210 , it is clear PJSIP is trying to open device which do not exist , pjsua_aud.c ...Set sound device: capture=-1, playback=-2 pjsua_aud.c ....Error retrieving default audio device parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006] You need to check opened capture and playback devices an accordingly provide values in capture-dev and playback dev. But for now to test Softfone works correctly try running it on other machine. Regards, Gaurav -----Original Message----- From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of DEEPAK BHATIA Sent: Friday, February 22, 2013 2:39 PM To: pjsip list Subject: Re: [SPAM] PJSUA Giving Audio Device Problems Hi Gaurav, Please find the log file and the pjsua command line ./pjsua-i686-pc-linux-gnu --log-file=temp1-22-2-2013.log --log-level=6 --app-log-level=6 --capture-dev=-1 --playback-dev=-1 Regards Deepak Bhatia On Fri, Feb 22, 2013 at 2:27 PM, Gaurav Srivastava <gaurav.srivastava2 at agnity.com> wrote: Hi Deepak, Mention -1 in capture-dev and playback-dev. And still error occurs provide following switch in command line --log-level=6 --app-log-level=6 And share the logs that would be really helpful in debugging. Thanks and Regards, Gaurav -----Original Message----- From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of DEEPAK BHATIA Sent: Friday, February 22, 2013 2:18 PM To: pjsip list Subject: Re: [SPAM] PJSUA Giving Audio Device Problems Hi Khoa, Yes, I have tested the microphone and speaker on my machine and they are working fine. Regards Deepak On Fri, Feb 22, 2013 at 2:12 PM, Khoa Pham <onmyway133 at gmail.com> wrote: @DEEPAK BHATIA When first using pjsip, I encountered this error "Unable to find default audio device". First, check if you have connect microphone to your computer Second, trace where that error message come from, and check Third, read http://trac.pjsip.org/repos/wiki/sound-problems for more information On Fri, Feb 22, 2013 at 3:35 PM, DEEPAK BHATIA <toreachdeepak at gmail.com> wrote: Hi Gaurav, I didn't set any --capture-dev and --playback-dev Also aplay -L command gives the following output [root at localhost bin]# aplay -L default Default sysdefault:CARD=Intel HDA Intel, ALC1200 Analog Default Audio Device front:CARD=Intel,DEV=0 HDA Intel, ALC1200 Analog Front speakers surround40:CARD=Intel,DEV=0 HDA Intel, ALC1200 Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=Intel,DEV=0 HDA Intel, ALC1200 Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Intel,DEV=0 HDA Intel, ALC1200 Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Intel,DEV=0 HDA Intel, ALC1200 Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Intel,DEV=0 HDA Intel, ALC1200 Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=Intel,DEV=0 HDA Intel, ALC1200 Digital IEC958 (S/PDIF) Digital Audio Output On Fri, Feb 22, 2013 at 1:57 PM, Gaurav Srivastava <gaurav.srivastava2 at agnity.com> wrote: Deepak, My question was which value u provides for --capture-dev= --playback-dev= Check which alsa snd device is used for audio and provide its number against the switches I mentioned. By default it is -1 but I think in your system default devices are not used for audio. If you are still facing any issue please drop the exact steps used to run Softphone Thanks and Regards, Gaurav -----Original Message----- From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of DEEPAK BHATIA Sent: Friday, February 22, 2013 1:30 PM To: pjsip list Subject: Re: [SPAM] PJSUA Giving Audio Device Problems http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2010-August/011390.ht ml > 16:14:15.522 pa_dev.c PortAudio sound library initialized, status=0 > 16:14:15.522 pa_dev.c PortAudio host api count=1 > 16:14:15.522 pa_dev.c Sound device count=0 PortAudio not found any sound device... Could this be the reason.... On Fri, Feb 22, 2013 at 1:09 PM, DEEPAK BHATIA <toreachdeepak at gmail.com> wrote: Hi Gaurav, Thanks for the prompt response. >>>+a Your SIP URL: (empty to cancel): sip:100 at xxx.xxx.xxx.xxx URL of the registrar: (empty to cancel): sip:xx.xxx.xxx.xxx Auth Realm: (empty to cancel): asterisk Auth Username: (empty to cancel): 100 Auth Password: (empty to cancel): 100 Also arecord and aply are working fine. Just to add, I had skype also installed which I removed, which I guess had captured the audio device. Regards Deepak On Fri, Feb 22, 2013 at 12:49 PM, Gaurav Srivastava <gaurav.srivastava2 at agnity.com> wrote: Hi Deepak, Please share the command line switches and their values provided to run Softphone(PJSUA). One more thing check with arecord and aplay to check whether there exist support for Audio Recorder and player in your machine. Thanks and Regards, Gaurav -----Original Message----- From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of DEEPAK BHATIA Sent: Friday, February 22, 2013 12:44 PM To: pjsip at lists.pjsip.org Subject: [SPAM] PJSUA Giving Audio Device Problems Hi, I have installed PJSIP 1.12 on the Linux and I am able to connect two softphones but the softphone (PJSUA) on the Linux gives the following errors. Please help me in resolving this error. ============================================================================ ========================================== 20:29:34.153 pjsua_media.c Error retrieving default audio device parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006] 20:29:34.153 pjsua_media.c Error opening sound device: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006] ============================================================================ ========================================== Regards Deepak Bhatia _______________________________________________ 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 _______________________________________________ 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 -- Khoa Pham HCMC University of Science Faculty of Information Technology _______________________________________________ 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 _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130222/56c61649/attachment-0001.html>