[pjsip] PJSUA with no sound device

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

 



Hi Gideon,

have you tried py_pjsua.set_null_snd_dev()?

(sorry for the one liner)

  -benny

Gideon Klompje wrote:
> Hi guys,
> 
>  
> 
> I?m having trouble with pjmedia.  Here?s the scenario:
> 
>  
> 
> My implementation is a simple SIP client that registers to an Asterisk 
> server (sometimes on the same physical machine) and does nothing but 
> monitor a number of phones (buddies).  It therefore does not actually 
> make/receive any calls, which to me means that it never needs to listen 
> to an RTP media stream.  I?ve successfully implemented this system on 
> several machines using py_pjsua, but I?m running into some problems on a 
> machine which does not have a sound device /dev/dsp.  This (as would be 
> expected) is the error that I receive:
> 
>  
> 
>  08:50:03.419  pjsua_media.c RTP socket reachable at 192.168.0.239:4000
> 
>  08:50:03.419  pjsua_media.c RTCP socket reachable at 192.168.0.239:4001
> 
>  08:50:03.419  pjsua_media.c RTP socket reachable at 192.168.0.239:4002
> 
>  08:50:03.419  pjsua_media.c RTCP socket reachable at 192.168.0.239:4003
> 
>  08:50:03.419  pjsua_media.c RTP socket reachable at 192.168.0.239:4004
> 
>  08:50:03.419  pjsua_media.c RTCP socket reachable at 192.168.0.239:4005
> 
>  08:50:03.419  pjsua_media.c RTP socket reachable at 192.168.0.239:4006
> 
>  08:50:03.419  pjsua_media.c RTCP socket reachable at 192.168.0.239:4007
> 
>  08:50:03.419  pjsua_media.c pjsua_set_snd_dev(): attempting to open 
> devices @16000 Hz
> 
>  08:50:03.419  pjsua_media.c ..failed: No suitable sound capture device 
> (PJMEDIA_ENOSNDREC)
> 
>  08:50:03.419  pjsua_media.c pjsua_set_snd_dev(): attempting to open 
> devices @22050 Hz
> 
>  08:50:03.419  pjsua_media.c ..failed: No suitable sound capture device 
> (PJMEDIA_ENOSNDREC)
> 
>  08:50:03.419  pjsua_media.c pjsua_set_snd_dev(): attempting to open 
> devices @44100 Hz
> 
>  08:50:03.420  pjsua_media.c ..failed: No suitable sound capture device 
> (PJMEDIA_ENOSNDREC)
> 
>  08:50:03.420  pjsua_media.c pjsua_set_snd_dev(): attempting to open 
> devices @48000 Hz
> 
>  08:50:03.420  pjsua_media.c ..failed: No suitable sound capture device 
> (PJMEDIA_ENOSNDREC)
> 
>  08:50:03.420  pjsua_media.c pjsua_set_snd_dev(): attempting to open 
> devices @11025 Hz
> 
>  08:50:03.420  pjsua_media.c ..failed: No suitable sound capture device 
> (PJMEDIA_ENOSNDREC)
> 
>  08:50:03.420  pjsua_media.c pjsua_set_snd_dev(): attempting to open 
> devices @32000 Hz
> 
>  08:50:03.420  pjsua_media.c ..failed: No suitable sound capture device 
> (PJMEDIA_ENOSNDREC)
> 
>  08:50:03.420  pjsua_media.c pjsua_set_snd_dev(): attempting to open 
> devices @8000 Hz
> 
>  08:50:03.420  pjsua_media.c ..failed: No suitable sound capture device 
> (PJMEDIA_ENOSNDREC)
> 
>  08:50:03.420  pjsua_media.c Unable to open sound device: No suitable 
> sound capture device (PJMEDIA_ENOSNDREC) [status=220200]
> 
>  08:50:03.420  pjsua_media.c Error opening sound device: No suitable 
> sound capture device (PJMEDIA_ENOSNDREC) [status=220200]
> 
>  08:50:03.420   pjsua_core.c Shutting down...
> 
>  08:50:04.428  pjsua_media.c Closing (null) sound playback device and 
> (null) sound capture device
> 
>  08:50:04.919      pasound.c PortAudio sound library shutting down..
> 
>  
> 
> I have tried the following (on SVN r1438) in an attempt to bypass sound 
> device initialization, but the problem persists:
> 
>    1. Omitted the optional ?pjsua_media_config
>       <http://www.pjsip.org/pjsip/docs/html/structpjsua__media__config.htm>?
>       (third parameter) when calling py_pjsua.init()
>    2. Set ?AC_PA_USE_ALSA=0? in pjmedia/build/os-auto.mak and
>       third_party/build/portaudio/os-auto.mak and recompiled
>    3. Set ?AC_PJMEDIA_SND=null? in the above files and recompiled
>    4. Updated to r1490 and repeated the above
> 
>  
> 
> Is there any (other) way I can bypass the sound device initialization, 
> since I do not require media?
> 
>  
> 
> Thanks in advance,
> 
> Gideon





[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