Can't find audio device on Raspberry Pi

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

 



I will look at it again

I'm running (with logilink usb sound card ) pi at .. 
~/tmppjsip/pjproject-2.1.0/tests/pjsua $ python runall.py //taking some 
time, are those results interesting (sending only failed) ? should i 
send it as an atachemnt? forgive me if i should

210 tests completed, 67 test(s) failed,
Running 29/210: python run.py  mod_sendto.py 
scripts-sendto/412_fmtp_amrnb_offer_band_eff2.py... failed!! [7s]
Running 42/210: python run.py  mod_sendto.py 
scripts-sendto/401_fmtp_g7221_with_bitrate_32000.py... failed!! [7s]
Running 54/210: python run.py  mod_sendto.py 
scripts-sendto/410_fmtp_amrnb_offer_octet_align.py... failed!! [7s]
Running 55/210: python run.py  mod_sendto.py 
scripts-sendto/411_fmtp_amrnb_offer_band_eff.py... failed!! [7s]
Running 79/210: python run.py  mod_sendto.py 
scripts-sendto/401_fmtp_g7221_with_bitrate_24000.py... failed!! [7s]
Running 98/210: python run.py  mod_sendto.py 
scripts-sendto/400_fmtp_g7221_with_bitrate.py... failed!! [7s]
Running 117/210: python run.py  mod_media_playrec.py 
scripts-media-playrec/100_resample_lf_8_48.py... failed!! [3s]
Running 118/210: python run.py  mod_media_playrec.py 
scripts-media-playrec/100_resample_lf_8_44.py... failed!! [3s]
Running 119/210: python run.py  mod_media_playrec.py 
scripts-media-playrec/100_resample_lf_8_32.py... failed!! [3s]
Running 120/210: python run.py  mod_media_playrec.py 
scripts-media-playrec/100_resample_lf_8_16.py... failed!! [3s]
Running 126/210: python run.py  mod_pesq.py 
scripts-pesq/200_codec_speex_16000.py... failed!! [3s]
Running 127/210: python run.py  mod_pesq.py 
scripts-pesq/200_codec_ilbc.py... failed!! [3s]
Running 131/210: python run.py  mod_pesq.py 
scripts-pesq/200_codec_l16_16000.py... failed!! [3s]
Running 133/210: python run.py  mod_pesq.py 
scripts-pesq/200_codec_l16_8000_stereo.py... failed!! [3s]
Running 135/210: python run.py  mod_pesq.py 
scripts-pesq/200_codec_l16_8000.py... failed!! [3s]
Running 136/210: python run.py  mod_pesq.py 
scripts-pesq/200_codec_l16_16000_stereo.py... failed!! [3s]
Running 141/210: python run.py  mod_pesq.py 
scripts-pesq/200_codec_speex_8000.py... failed!! [3s]
Running 144/210: python run.py  mod_pesq.py 
scripts-pesq/200_codec_g711a.py... failed!! [3s]
Running 167/210: python run.py  mod_sipp.py 
scripts-sipp/uas-answer-180-multiple-fmts.xml... failed!! [12s]
Running 168/210: python run.py  mod_sipp.py 
scripts-sipp/uac-inv-without-sdp.xml... failed!! [42s]
Running 169/210: python run.py  mod_sipp.py scripts-sipp/uas-mwi.xml... 
failed!! [12s]
Running 170/210: python run.py  mod_sipp.py 
scripts-sipp/uas-reinv-glare.xml... failed!! [42s]
Running 171/210: python run.py  mod_sipp.py 
scripts-sipp/uac-bad-ack.xml... failed!! [12s]
Running 172/210: python run.py  mod_sipp.py scripts-sipp/uas-auth.xml... 
failed!! [15s]
Running 173/210: python run.py  mod_sipp.py 
scripts-sipp/uac-message-no-body.xml... failed!! [12s]
Running 174/210: python run.py  mod_sipp.py 
scripts-sipp/uac-inv-and-ack-without-sdp.xml... failed!! [12s]
Running 175/210: python run.py  mod_sipp.py 
scripts-sipp/uas-inv-answered-with-srtp.xml... failed!! [12s]
Running 176/210: python run.py  mod_sipp.py 
scripts-sipp/uas-forked-200.xml... failed!! [12s]
Running 177/210: python run.py  mod_sipp.py 
scripts-sipp/uas-answer-200-reinvite-without-sdp.xml... failed!! [42s]
Running 178/210: python run.py  mod_sipp.py 
scripts-sipp/uas-cancel-no-final.xml... failed!! [42s]
Running 179/210: python run.py  mod_sipp.py 
scripts-sipp/uas-subscribe-notify-terminate.xml... failed!! [47s]
Running 180/210: python run.py  mod_sipp.py 
scripts-sipp/uas-reinv-and-ack-without-sdp.xml... failed!! [12s]
Running 181/210: python run.py  mod_sipp.py 
scripts-sipp/uas-forked-100rel.xml... failed!! [12s]
Running 182/210: python run.py  mod_sipp.py 
scripts-sipp/uas-422-then-200-bad-se.xml... failed!! [12s]
Running 183/210: python run.py  mod_sipp.py 
scripts-sipp/uas-subscribe-late-notify.xml... failed!! [47s]
Running 184/210: python run.py  mod_sipp.py 
scripts-sipp/uac-reinvite-port-0-bad-sdp.xml... failed!! [12s]
Running 185/210: python run.py  mod_sipp.py 
scripts-sipp/uas-answer-200-inv-without-sdp.xml... failed!! [12s]
Running 186/210: python run.py  mod_sipp.py 
scripts-sipp/uas-subscribe-refresh-481.xml... failed!! [47s]
Running 187/210: python run.py  mod_sipp.py 
scripts-sipp/transfer-unattended.xml... failed!! [22s]
Running 188/210: python run.py  mod_sipp.py 
scripts-sipp/uas-mwi-0.xml... failed!! [12s]
Running 189/210: python run.py  mod_sipp.py 
scripts-sipp/uas-answer-180-multiple-fmts-support-update.xml... failed!! 
[12s]
Running 190/210: python run.py  mod_sipp.py 
scripts-sipp/transfer-attended.xml... failed!! [22s]
Running 191/210: python run.py  mod_sipp.py 
scripts-sipp/uas-timer-reinvite.xml... failed!! [12s]
Running 192/210: python run.py  mod_sipp.py 
scripts-sipp/uas-inv_401_retry_after_100.xml... failed!! [12s]
Running 193/210: python run.py  mod_sipp.py 
scripts-sipp/uas-answer-200-multiple-fmts-support-update.xml... failed!! 
[12s]
Running 194/210: python run.py  mod_sipp.py 
scripts-sipp/uas-subscribe-multipart-notify.xml... failed!! [47s]
Running 195/210: python run.py  mod_sipp.py 
scripts-sipp/uas-answer-200-update-without-sdp.xml... failed!! [42s]
Running 196/210: python run.py  mod_sipp.py 
scripts-sipp/uac-reinvite-bad-via-branch.xml... failed!! [12s]
Running 197/210: python run.py  mod_sipp.py 
scripts-sipp/uac-ticket-1148.xml... failed!! [42s]
Running 198/210: python run.py  mod_sipp.py 
scripts-sipp/uas-answer-200-multiple-fmts.xml... failed!! [12s]
Running 199/210: python run.py  mod_sipp.py 
scripts-sipp/uac-subscribe.xml... failed!! [12s]
Running 200/210: python run.py  mod_sipp.py 
scripts-sipp/uac-inv-two-media-but-one-disabled-no-rtpmap.xml... 
failed!! [42s]
Running 201/210: python run.py  mod_sipp.py 
scripts-sipp/uas-reinv-with-less-media.xml... failed!! [42s]
Running 202/210: python run.py  mod_sipp.py 
scripts-sipp/uac-inv-multiple-require.xml... failed!! [12s]
Running 203/210: python run.py  mod_sipp.py 
scripts-sipp/uas-template.xml... failed!! [12s]
Running 204/210: python run.py  mod_sipp.py 
scripts-sipp/uas-early-bye.xml... failed!! [12s]
Running 205/210: python run.py  mod_sipp.py 
scripts-sipp/uas-reinv-no-media.xml... failed!! [12s]
Running 206/210: python run.py  mod_sipp.py 
scripts-sipp/uas-reinv-and-ack-same-branch-without-sdp.xml... failed!! [12s]
Running 207/210: python run.py  mod_sipp.py 
scripts-sipp/strict-route.xml... failed!! [42s]
Running 208/210: python run.py  mod_sipp.py 
scripts-sipp/uas-prack_fork.xml... failed!! [12s]
Running 209/210: python run.py  mod_sipp.py 
scripts-sipp/uas-subscribe-terminated-retry.xml... failed!! [47s]
Running 210/210: python run.py  mod_sipp.py 
scripts-sipp/uas-timer-update.xml... failed!! [12s]
210 tests completed, 67 test(s) failed

if I get a call when the usb sound card is connected instead of webcam i 
get some alsa erros "mumble mumble :D"

    |Incoming call from "7001" <sip:from_la_RASP_PI at 192.168.0.101>
    //autoanswering |

    ||

    |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 |



El 16/01/14 15:28, Swinney C. ha escrit:
>
> Hi Jordi,
>
> First up, I would simply say what others said to me. Have you tested 
> with the prebuilt PJSUA and PJSYSTEST appliactions that should be 
> built in the "pjsip-apps/bin" folder? You should be able to see the 
> different sound devices avliable and test them.
>
> In addiiton, you could try running "alsamixer" that should show the 
> different devices.
>
> Regards,
>
> *Chris *
>
> *From:*jordip [mailto:j.parera at dassa.es]
> *Sent:* 16 January 2014 10:45
> *To:* pjsip list
> *Subject:* Re: [pjsip] Can't find audio device on Raspberry Pi
>
> Hi,
>
> Wow thanks for answering so fast Chris.
>
> You are right I am using Raspbian (i tried Arch but im no linux expert 
> so i wen't back)
> The Asterisk is on the server that it's  a PC not on the pi.
>
> I already make it work using a USB webcam as a mic, i bougth a 
> logilink usb sound card but pjsip doesn't like it ( from command line 
> and even python alsa plays and records fine from that usb soundcard 
> but 2.1 pjsip no),  I also noticed that if no usb webcam it didnt 
> start only to play incoming sound. I need it in two way audio so i 
> won't bother using no input but i would like to make it work with the 
> usb sound card or a usb mic rather that a more expensive logitech webcam.
>
> To make it work consistennty since it fails and gets stuck sometimes I 
> added some daemons that kill revive the pjsic script :D
>
> Again many thanks and cya
>
> Kind Regards Jordi.
>
> El 16/01/14 11:32, Swinney C. ha escrit:
>
>     Hi parera,
>
>     Assuming you are using Raspian on the Pi as an OS (which is
>     usually the case) ALSA is installed and configured by default.
>     Port Audio is NOT installed and for PJSIP to work, doesn't need to
>     be (AFAIK). In fact we had issue when it was installed. However,
>     you will find that PJSIP doesn't like the fact that the Pi only
>     has an Audio Output and no Input. You can get around this in two
>     ways --either use a USB audio device (that has both input and
>     output), or set up a dummy ASLA driver if you don't require an
>     input. The latter is really easy (when you know how), although it
>     took me weeks and months to figure it out! Read the rest of this
>     thread in the archives.
>
>     I have used the standard 2.1 build rather than the SVN
>     repositories as the PJSUA and PJSTEST applications did not compile
>     by default (and I didn't know if this was a sign that there might
>     be other issues).
>
>     However, I am talking here about the PJSIP client that can be
>     downloaded from the PJSIP website. Whilst I believe that Asterisk
>     12 uses PJSIP for its SIP stack, I think that this is a modified
>     version and is not the same thing as that which you would download
>     from PJSIP. I should be looking into this shortly as I would like
>     to setup Asterisk and a PJSIP client on the same Pi, but I haven't
>     got around to this as yet.
>
>     Regards,
>
>     *Chris *
>
>     *From:*jordip [mailto:j.parera at dassa.es]
>     *Sent:* 16 January 2014 09:37
>     *To:* pjsip at lists.pjsip.org <mailto:pjsip at lists.pjsip.org>
>     *Subject:* Re: [pjsip] Can't find audio device on Raspberry Pi
>
>     Hi
>
>     First of all hello to everyone its the firs time I talk to this
>     mailing list.
>
>     Please can you give me any hint on how to use Alsa instead of
>     portaudio in raspberry pi?, in which  release ? 2.1 or 2.x Dev or
>     Both.
>
>     Also on echo cancellation how it can be enabled?I thought by
>     editing asterisk config was enought, is that true ?**
>
>     *sudo gedit /etc/asterisk/sip.conf*
>
>
>     echocancel=yes
>     echocancelwhenbridged=yes
>
>
>     Thank you very much
>
>     El 05/01/14 21:27, Sa?l Ibarra Corretg? ha escrit:
>
>           
>
>         On Jan 3, 2014, at 4:26 PM, Swinney C. wrote:
>
>           
>
>             Hi All,
>
>               
>
>             Is anyone aware of a way to get PJSIP to work on the Raspberry Pi so that it might just use the 3.5mm audio out? We have no need to take a mic input and so just are looking to have PJSIP as a dumb client accepting an inbound call and outputting the incoming audio stream via the 3.5 mm audio socket. At this point in time we didn't want to add a USB (or other) sound device, however, from what I am reading below, even a USB sound device isn't working that well.
>
>               
>
>             Has anyone had ay greater success with the Raspberry Pi? If so, what hardware are you using?
>
>               
>
>           
>
>         Hi,
>
>           
>
>         I did get both the audio jack and a USB device working. Compile PJSIP with ALSA backend instead of PortAudio, and make sure the sample rate is 16KHz. FOr me G722 and PCMA/PCMU codecs worked fine.
>
>           
>
>         Also, update your Raspberry Pi firmware to the latest available, at some point in late october they made a fix for ALSA which made the sound quality noticeably better.
>
>           
>
>           
>
>         Good luck!
>
>           
>
>         --
>
>         Sa?l Ibarra Corretg?
>
>         AG Projects
>
>           
>
>           
>
>           
>
>           
>
>         _______________________________________________
>
>         Visit our blog:http://blog.pjsip.org
>
>           
>
>         pjsip mailing list
>
>         pjsip at lists.pjsip.org  <mailto: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  <mailto: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/20140116/82d9dc91/attachment-0001.html>


[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