Hang when shutting down on raspberry pi

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

 



Hello,

I hadn't tried that (and wasn't familiar with config_site, thanks for
mentioning it). I added the following to config_site.h and recompiled:

#   define PJMEDIA_AUDIO_DEV_HAS_ALSA       1
#   define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO  0

It works a bit better the. Playing an audio file using using create_player
now works (I'm ultimately not intending to use this in my application, but
I'm testing it as a way to see the system is working). I'm also not seeing
the previously mentioned error messages on my laptop.

What still isn't working is the hanging when shutting down. I'm calling
pjsua.Lib.destroy and this prints out the following and hangs on the last
line (on the raspberry pi, not on my laptop). I no longer see the user
connected to my sip server (so that seems to be working), but I assume it's
hanging trying to do some audio related cleanup (but that's just a guess).

If I kill the program and restart it playing a sound file now doesn't work
until I restart the raspberry pi, where it work again once then hangs on
shutdown.

11:37:56.979   pjsua_pres.c  .Shutting down presence..
11:37:56.980  pjsua_media.c  .Shutting down media..
11:37:56.982    pjsua_aud.c  ...Closing pulse sound playback device and
pulse sound capture device
(On my laptop the next line here is 'pjsua_media.c  ..Call 0:
deinitializing media..'. this never happens on the pi)

Any other thoughts? I saw in config_site_sample.h there are sample configs
for other embedded environments. Is there are a recommended set of defines
for raspberry pis I should be using?

Thanks for your help thus far,
-Matt


Have you tried to use the native ALSA backend instead of PortAudio? Define
> PJMEDIA_AUDIO_DEV_HAS_ALSA in your config_site.h and recompile to give it a
> try. I got better results with the native backend on Linux on a x86 desktop
> system, I haven't tried the RaspberryPi myself though.
>
> --
> Sa?l Ibarra Corretg?
> AG Projects
>
>
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
> ------------------------------
>
> End of pjsip Digest, Vol 71, Issue 75
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130716/c1651871/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