[pjsip] Extended ALSA API

Benny Prijono bennylp at pjsip.org
Fri Apr 18 20:25:46 EDT 2008


Can you try with the latest PJSIP from SVN? We've synchronized our
PortAudio tree with the latest version, just in case it helps.

Cheers
 Benny

On Mon, Apr 14, 2008 at 3:38 PM, Joshua Bryant <josh at bryantweb.com> wrote:
> Benny,
>
> I can now see the Bluetooth headset as a plugin device when I run sndinfo,
> and I have attempted to run pjsua with this device. This causes pjsua to
> core dump. Is this an issue with pjsua or portaudio? I have pasted the error
> below and attached to this email:
>
>  13:46:00.109 os_core_unix.c pjlib 0.8.0 for POSIX initialized
>  13:46:00.110 sip_endpoint.c Creating endpoint instance...
>  13:46:00.111          pjlib select() I/O Queue created (0x816d67c)
>  13:46:00.111 sip_endpoint.c Module "mod-msg-print" registered
>   13:46:00.111 sip_transport. Transport manager created.
>  13:46:00.111 sip_endpoint.c Module "mod-pjsua-log" registered
>  13:46:00.111 sip_endpoint.c Module "mod-tsx-layer" registered
>  13:46:00.111 sip_endpoint.c Module "mod-stateful-util" registered
>   13:46:00.111 sip_endpoint.c Module "mod-ua" registered
>  13:46:00.111 sip_endpoint.c Module "mod-100rel" registered
>  13:46:00.111 sip_endpoint.c Module "mod-pjsua" registered
>  13:46:00.111 sip_endpoint.c Module "mod-invite" registered
>   13:46:00.698      pasound.c PortAudio sound library initialized, status=0
>  13:46:00.698      pasound.c PortAudio host api count=2
>  13:46:00.698      pasound.c Sound device count=14
>  13:46:00.699          pjlib select() I/O Queue created (0x81c031c)
>   13:46:00.699 sip_endpoint.c Module "mod-evsub" registered
>  13:46:00.699 sip_endpoint.c Module "mod-presence" registered
>  13:46:00.699 sip_endpoint.c Module "mod-refer" registered
>  13:46:00.699 sip_endpoint.c Module "mod-pjsua-pres" registered
>   13:46:00.699 sip_endpoint.c Module "mod-pjsua-im" registered
>  13:46:00.699 sip_endpoint.c Module "mod-pjsua-options" registered
>  13:46:00.699   pjsua_core.c 1 SIP worker threads created
>  13:46:00.699   pjsua_core.c pjsua version 0.8.0 for i686-pc-linux-gnu
> initialized
>   13:46:00.700   pjsua_core.c SIP UDP socket reachable at 172.29.70.120:5061
>  13:46:00.700   udp0x81db024 SIP UDP transport started, published address is
> 172.29.70.120:5061
>   13:46:00.700    pjsua_acc.c Account <sip:172.29.70.120:5061;transport=UDP>
> added with id 0
>  13:46:00.700    tcplis:5061 SIP TCP listener ready for incoming connections
> at 172.29.70.120:5061
>   13:46:00.700    pjsua_acc.c Account <sip:172.29.70.120:5061;transport=TCP>
> added with id 1
>  13:46:00.700  pjsua_media.c RTP socket reachable at 172.29.70.120:4000
>  13:46:00.700  pjsua_media.c RTCP socket reachable at 172.29.70.120:4001
>   13:46:00.700  pjsua_media.c RTP socket reachable at 172.29.70.120:4002
>  13:46:00.700  pjsua_media.c RTCP socket reachable at 172.29.70.120:4003
>   13:46:00.700  pjsua_media.c RTP socket reachable at 172.29.70.120:4004
>  13:46:00.700  pjsua_media.c RTCP socket reachable at 172.29.70.120:4005
>   13:46:00.700  pjsua_media.c RTP socket reachable at 172.29.70.120:4006
>  13:46:00.700  pjsua_media.c RTCP socket reachable at 172.29.70.120:4007
>   13:46:00.700  pjsua_media.c pjsua_set_snd_dev(): attempting to open
> devices @16000 Hz
>  13:46:00.702  pjsua_media.c ..failed: Invalid sample rate
>  13:46:00.702  pjsua_media.c pjsua_set_snd_dev(): attempting to open devices
> @22050 Hz
>   13:46:00.703  pjsua_media.c ..failed: Invalid sample rate
>  13:46:00.703  pjsua_media.c pjsua_set_snd_dev(): attempting to open devices
> @44100 Hz
>  13:46:00.705  pjsua_media.c ..failed: Invalid sample rate
>  13:46:00.705  pjsua_media.c pjsua_set_snd_dev(): attempting to open devices
> @48000 Hz
>   13:46:00.706  pjsua_media.c ..failed: Invalid sample rate
>  13:46:00.706  pjsua_media.c pjsua_set_snd_dev(): attempting to open devices
> @11025 Hz
>  13:46:00.708  pjsua_media.c ..failed: Invalid sample rate
>  13:46:00.708  pjsua_media.c pjsua_set_snd_dev(): attempting to open devices
> @32000 Hz
>   13:46:00.709  pjsua_media.c ..failed: Invalid sample rate
>  13:46:00.709  pjsua_media.c pjsua_set_snd_dev(): attempting to open devices
> @8000 Hz
>  13:46:01.761   echo_speex.c Speex Echo canceller/AEC created,
> clock_rate=8000, samples per frame=80, tail length=200 ms, latency=119 ms
>  >>>>
> Account list:
>   [ 0] <sip:172.29.70.120:5061;transport=UDP>: does not register
>        Online status: Online
>  *[ 1] <sip:172.29.70.120:5061;transport=TCP>: does not register
>        Online status: Online
>  Buddy list:
>  -none-
>
> +=============================================================================+
> |       Call Commands:         |   Buddy, IM & Presence:  |     Account:
> |
> |                              |                          |
> |
>  |  m  Make new call            | +b  Add new buddy       .| +a  Add new
> accnt |
> |  M  Make multiple calls      | -b  Delete buddy         | -a  Delete
> accnt. |
> |  a  Answer call              |  i  Send IM              | !a  Modify
> accnt. |
>  |  h  Hangup call  (ha=all)    |  s  Subscribe presence   | rr
> (Re-)register |
> |  H  Hold call                |  u  Unsubscribe presence | ru  Unregister
> |
> |  v  re-inVite (release hold) |  t  ToGgle Online status |  >  Cycle next
> ac.|
>  |  U  send UPDATE              |  T  Set online status    |  <  Cycle prev
> ac.|
> | ],[ Select next/prev call
> +--------------------------+-------------------+
> |  x  Xfer call                |      Media Commands:     |  Status &
> Config: |
>  |  X  Xfer with Replaces       |                          |
> |
> |  #  Send RFC 2833 DTMF       | cl  List ports           |  d  Dump status
> |
> |  *  Send DTMF with INFO      | cc  Connect port         | dd  Dump
> detailed |
>  | dq  Dump curr. call quality  | cd  Disconnect port      | dc  Dump config
> |
> |                              |  V  Adjust audio Volume  |  f  Save config
> |
> |  S  Send arbitrary REQUEST   | Cp  Codec priorities     |  f  Save config
> |
>
> +------------------------------+--------------------------+-------------------+
> |  q  QUIT       sleep N: console sleep for N ms    n: detect NAT type
> |
> +=============================================================================+
>  You have 0 active call
> >>>
> pjsua-i686-pc-linux-gnu:
> src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c:2722:
> PaAlsaStream_GetAvailableFrames: Assertion `queryCapture || queryPlayback'
> failed.
> Aborted (core dumped)
>




More information about the pjsip mailing list