pjsua with no audio device

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

 



Apologies. I fixed the error on my own, using a few different things
(I'm not sure which exactly solved it).

Make sure the file is encoded properly
(http://trac.pjsip.org/repos/wiki/audio-check-play):
    any clock rate
    mono (not stereo)
    16bit, PCM sample

Then use these settings in conjunction with the ones needed to make the call.
--null-audio
--auto-play
--play-file=""

Also, try "listing ports" (using the command cl) and "connecting
ports" (the command cc) to see if that helps you get it to work
manually.


On Thu, Sep 22, 2011 at 9:02 AM, Isaac Witmer <isaaclw at gmail.com> wrote:
> I have a computer that I want to make out-going calls from. it is a virtual
> machine and has no microphone/speakers (as it's a command line server).
>
> I'm using pjsua to connect to our asterisk server, so specifying:
> ./pjsua --null-audio --id=sip:user at ip --registrar=sip:server --realm=*
> --username=user --password=pass sip:phone#@server
> makes the calls very nicely, but of course I get no sound.
>
> I wanted to make a phone call by specifying a wav file to play, but without
> null-audio I get errors like:
> ?08:58:07.733? pjsua_media.c? Error retrieving default audio device
> parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV)
> [status=420006]
>
>
> How does one go about using pjsua on a computer with no audio devices?
> -Isaac
>



[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