Python - pjsip BUG in the core?

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

 



*This must be a BUG no? Is there no one please can confirm?? I have been
testing this for 2 weeks now same result.*

Try 0: fail when used 0, 0 fails, when used -1, -1 fails when used -1,-2
fails all fails.

root at sun-Alienware-X51:/var/tmp/pjproject-2.1.0/pjsip-apps/bin#
./pjsua-x86_64-unknown-linux-gnu --capture-dev=0 --playback-dev=0
13:22:58.899 os_core_unix.c !pjlib 2.1 for POSIX initialized
13:22:58.900 sip_endpoint.c  .Creating endpoint instance...
13:22:58.900          pjlib  .select() I/O Queue created (0xc508a0)
13:22:58.900 sip_endpoint.c  .Module "mod-msg-print" registered
13:22:58.900 sip_transport.  .Transport manager created.
13:22:58.900   pjsua_core.c  .PJSUA state changed: NULL --> CREATED
13:22:58.900 sip_endpoint.c  .Module "mod-pjsua-log" registered
13:22:58.900 sip_endpoint.c  .Module "mod-tsx-layer" registered
13:22:58.900 sip_endpoint.c  .Module "mod-stateful-util" registered
13:22:58.900 sip_endpoint.c  .Module "mod-ua" registered
13:22:58.900 sip_endpoint.c  .Module "mod-100rel" registered
13:22:58.900 sip_endpoint.c  .Module "mod-pjsua" registered
13:22:58.900 sip_endpoint.c  .Module "mod-invite" registered
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
13:22:58.974       pa_dev.c  ..PortAudio sound library initialized, status=0
13:22:58.974       pa_dev.c  ..PortAudio host api count=2
13:22:58.974       pa_dev.c  ..Sound device count=18
13:22:58.974          pjlib  ..select() I/O Queue created (0xca5228)
13:22:58.984 sip_endpoint.c  .Module "mod-evsub" registered
13:22:58.984 sip_endpoint.c  .Module "mod-presence" registered
13:22:58.984 sip_endpoint.c  .Module "mod-mwi" registered
13:22:58.984 sip_endpoint.c  .Module "mod-refer" registered
13:22:58.984 sip_endpoint.c  .Module "mod-pjsua-pres" registered
13:22:58.984 sip_endpoint.c  .Module "mod-pjsua-im" registered
13:22:58.984 sip_endpoint.c  .Module "mod-pjsua-options" registered
13:22:58.984   pjsua_core.c  .1 SIP worker threads created
13:22:58.984   pjsua_core.c  .pjsua version 2.1 for
Linux-3.11.0.12/x86_64/glibc-2.17 initialized
13:22:58.984   pjsua_core.c  .PJSUA state changed: CREATED --> INIT
13:22:58.984 sip_endpoint.c  Module "mod-default-handler" registered
13:22:58.984   pjsua_core.c  SIP UDP socket reachable at 192.168.1.19:5060
13:22:58.984    udp0xcb93a0  SIP UDP transport started, published address
is 192.168.1.19:5060
13:22:58.984    pjsua_acc.c  Adding account: id=<sip:192.168.1.19:5060>
13:22:58.984    pjsua_acc.c  .Account <sip:192.168.1.19:5060> added with id
0
13:22:58.984    pjsua_acc.c  Acc 0: setting online status to 1..
13:22:58.985    tcplis:5060  SIP TCP listener ready for incoming
connections at 192.168.1.19:5060
13:22:58.985    pjsua_acc.c  Adding account: id=<sip:192.168.1.19:5060
;transport=TCP>
13:22:58.985    pjsua_acc.c  .Account <sip:192.168.1.19:5060;transport=TCP>
added with id 1
13:22:58.985    pjsua_acc.c  Acc 1: setting online status to 1..
13:22:58.985    pjsua_aud.c  Set sound device: capture=0, playback=0
13:22:58.985    pjsua_app.c  .Turning sound device ON
13:22:58.985    pjsua_aud.c  .Opening sound device PCM at 16000/1/20ms
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
13:22:58.985    pjsua_app.c  .Turning sound device ON
13:22:58.985    pjsua_aud.c  .Opening sound device PCM at 44100/1/20ms
13:22:59.043     ec0xc75b30  ..AEC created, clock_rate=44100, channel=1,
samples per frame=882, tail length=200 ms, latency=100 ms
13:22:59.043   pjsua_core.c  PJSUA state changed: INIT --> STARTING
13:22:59.043 sip_endpoint.c  .Module "mod-unsolicited-mwi" registered
13:22:59.043   pjsua_core.c  .PJSUA state changed: STARTING --> RUNNING
>>>>
Account list:
  [ 0] <sip:192.168.1.19:5060>: does not register
       Online status: Online
 *[ 1] <sip:192.168.1.19:5060;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     |
  |
+-----------------------------------------------------------------------------+
|  q  QUIT   L  ReLoad   sleep MS   echo [0|1|txt]     n: detect NAT type
  |
+=============================================================================+
You have 0 active call
>>> 13:22:59.065 os_core_unix.c  Info: possibly re-registering existing
thread
13:23:04.068   sound_port.c  EC suspended because of inactivity

q
13:24:07.074   pjsua_core.c !Shutting down, flags=0...
13:24:07.074   pjsua_core.c  PJSUA state changed: RUNNING --> CLOSING
13:24:07.083   pjsua_call.c  .Hangup all calls..
13:24:07.083   pjsua_pres.c  .Shutting down presence..
13:24:07.083  pjsua_media.c  .Shutting down media..
13:24:07.083    pjsua_app.c  ...Turning sound device OFF
13:24:07.083    pjsua_aud.c  ...Closing HDA Intel PCH: ALC892 Analog
(hw:0,0) sound playback device and HDA Intel PCH: ALC892 Analog (hw:0,0)
sound capture device
13:24:08.208  pjsua_media.c  ..Call 0: deinitializing media..
13:24:08.208  pjsua_media.c  ..Call 1: deinitializing media..
13:24:08.208  pjsua_media.c  ..Call 2: deinitializing media..
13:24:08.208  pjsua_media.c  ..Call 3: deinitializing media..
13:24:08.484       pa_dev.c  ..PortAudio sound library shutting down..
13:24:08.485    pjsua_aud.c  .Closing sound device after idle for 1
second(s)
13:24:09.492   pjsua_core.c  .Destroying...
13:24:09.492 sip_transactio  .Stopping transaction layer module
13:24:09.492 sip_transactio  .Stopped transaction layer module
13:24:09.492 sip_endpoint.c  .Module "mod-default-handler" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-unsolicited-mwi" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-pjsua-options" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-pjsua-im" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-pjsua-pres" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-pjsua" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-stateful-util" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-refer" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-mwi" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-presence" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-evsub" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-invite" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-100rel" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-ua" unregistered
13:24:09.492 sip_transactio  .Transaction layer module destroyed
13:24:09.492 sip_endpoint.c  .Module "mod-tsx-layer" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-msg-print" unregistered
13:24:09.492 sip_endpoint.c  .Module "mod-pjsua-log" unregistered
13:24:09.493    tcplis:5060  .SIP TCP listener destroyed
13:24:09.493 sip_endpoint.c  .Endpoint 0xc45b08 destroyed
13:24:09.493   pjsua_core.c  .PJSUA state changed: CLOSING --> NULL
13:24:09.493   pjsua_core.c  .PJSUA destroyed...



Try 1: fails

root at sun-Alienware-X51:/var/tmp/pjproject-2.1.0/pjsip-apps/bin#
./pjsua-x86_64-unknown-linux-gnu --capture-dev=1 --playback-dev=1
13:24:26.175 os_core_unix.c !pjlib 2.1 for POSIX initialized
13:24:26.175 sip_endpoint.c  .Creating endpoint instance...
13:24:26.175          pjlib  .select() I/O Queue created (0x8be8a0)
13:24:26.175 sip_endpoint.c  .Module "mod-msg-print" registered
13:24:26.175 sip_transport.  .Transport manager created.
13:24:26.175   pjsua_core.c  .PJSUA state changed: NULL --> CREATED
13:24:26.176 sip_endpoint.c  .Module "mod-pjsua-log" registered
13:24:26.176 sip_endpoint.c  .Module "mod-tsx-layer" registered
13:24:26.176 sip_endpoint.c  .Module "mod-stateful-util" registered
13:24:26.176 sip_endpoint.c  .Module "mod-ua" registered
13:24:26.176 sip_endpoint.c  .Module "mod-100rel" registered
13:24:26.176 sip_endpoint.c  .Module "mod-pjsua" registered
13:24:26.176 sip_endpoint.c  .Module "mod-invite" registered
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
13:24:26.250       pa_dev.c  ..PortAudio sound library initialized, status=0
13:24:26.250       pa_dev.c  ..PortAudio host api count=2
13:24:26.250       pa_dev.c  ..Sound device count=18
13:24:26.250          pjlib  ..select() I/O Queue created (0x913228)
13:24:26.260 sip_endpoint.c  .Module "mod-evsub" registered
13:24:26.260 sip_endpoint.c  .Module "mod-presence" registered
13:24:26.260 sip_endpoint.c  .Module "mod-mwi" registered
13:24:26.260 sip_endpoint.c  .Module "mod-refer" registered
13:24:26.260 sip_endpoint.c  .Module "mod-pjsua-pres" registered
13:24:26.260 sip_endpoint.c  .Module "mod-pjsua-im" registered
13:24:26.260 sip_endpoint.c  .Module "mod-pjsua-options" registered
13:24:26.260   pjsua_core.c  .1 SIP worker threads created
13:24:26.260   pjsua_core.c  .pjsua version 2.1 for
Linux-3.11.0.12/x86_64/glibc-2.17 initialized
13:24:26.260   pjsua_core.c  .PJSUA state changed: CREATED --> INIT
13:24:26.260 sip_endpoint.c  Module "mod-default-handler" registered
13:24:26.260   pjsua_core.c  SIP UDP socket reachable at 192.168.1.19:5060
13:24:26.260    udp0x9273a0  SIP UDP transport started, published address
is 192.168.1.19:5060
13:24:26.260    pjsua_acc.c  Adding account: id=<sip:192.168.1.19:5060>
13:24:26.260    pjsua_acc.c  .Account <sip:192.168.1.19:5060> added with id
0
13:24:26.260    pjsua_acc.c  Acc 0: setting online status to 1..
13:24:26.260    tcplis:5060  SIP TCP listener ready for incoming
connections at 192.168.1.19:5060
13:24:26.261    pjsua_acc.c  Adding account: id=<sip:192.168.1.19:5060
;transport=TCP>
13:24:26.261    pjsua_acc.c  .Account <sip:192.168.1.19:5060;transport=TCP>
added with id 1
13:24:26.261    pjsua_acc.c  Acc 1: setting online status to 1..
13:24:26.261    pjsua_aud.c  Set sound device: capture=1, playback=1
13:24:26.261    pjsua_app.c  .Turning sound device ON
13:24:26.261    pjsua_aud.c  .Opening sound device PCM at 16000/1/20ms
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
13:24:26.261    pjsua_app.c  .Turning sound device ON
13:24:26.261    pjsua_aud.c  .Opening sound device PCM at 44100/1/20ms
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
13:24:26.261    pjsua_app.c  .Turning sound device ON
13:24:26.261    pjsua_aud.c  .Opening sound device PCM at 48000/1/20ms
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
13:24:26.261    pjsua_app.c  .Turning sound device ON
13:24:26.261    pjsua_aud.c  .Opening sound device PCM at 32000/1/20ms
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
13:24:26.261    pjsua_app.c  .Turning sound device ON
13:24:26.261    pjsua_aud.c  .Opening sound device PCM at 16000/1/20ms
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
13:24:26.261    pjsua_app.c  .Turning sound device ON
13:24:26.261    pjsua_aud.c  .Opening sound device PCM at 8000/1/20ms
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
Expression 'parameters->channelCount <= maxChans' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 916
Expression 'ValidateParameters( inputParameters, hostApi,
StreamDirection_In )' failed in
'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1969
13:24:26.261    pjsua_aud.c  .Unable to open sound device: Invalid number
of channels [status=469997]
13:24:26.261   pjsua_core.c  Shutting down, flags=0...
13:24:26.261   pjsua_core.c  PJSUA state changed: INIT --> CLOSING
13:24:26.270   pjsua_call.c  .Hangup all calls..
13:24:26.270   pjsua_pres.c  .Shutting down presence..
13:24:26.270  pjsua_media.c  .Shutting down media..
13:24:26.270  pjsua_media.c  ..Call 0: deinitializing media..
13:24:26.270  pjsua_media.c  ..Call 1: deinitializing media..
13:24:26.270  pjsua_media.c  ..Call 2: deinitializing media..
13:24:26.270  pjsua_media.c  ..Call 3: deinitializing media..
13:24:26.750       pa_dev.c  ..PortAudio sound library shutting down..
13:24:27.758   pjsua_core.c  .Destroying...
13:24:27.758 sip_transactio  .Stopping transaction layer module
13:24:27.758 sip_transactio  .Stopped transaction layer module
13:24:27.758 sip_endpoint.c  .Module "mod-default-handler" unregistered
13:24:27.758 sip_endpoint.c  .Module "mod-pjsua-options" unregistered
13:24:27.758 sip_endpoint.c  .Module "mod-pjsua-im" unregistered
13:24:27.758 sip_endpoint.c  .Module "mod-pjsua-pres" unregistered
13:24:27.758 sip_endpoint.c  .Module "mod-pjsua" unregistered
13:24:27.758 sip_endpoint.c  .Module "mod-stateful-util" unregistered
13:24:27.758 sip_endpoint.c  .Module "mod-refer" unregistered
13:24:27.758 sip_endpoint.c  .Module "mod-mwi" unregistered
13:24:27.758 sip_endpoint.c  .Module "mod-presence" unregistered
13:24:27.759 sip_endpoint.c  .Module "mod-evsub" unregistered
13:24:27.759 sip_endpoint.c  .Module "mod-invite" unregistered
13:24:27.759 sip_endpoint.c  .Module "mod-100rel" unregistered
13:24:27.759 sip_endpoint.c  .Module "mod-ua" unregistered
13:24:27.759 sip_transactio  .Transaction layer module destroyed
13:24:27.759 sip_endpoint.c  .Module "mod-tsx-layer" unregistered
13:24:27.759 sip_endpoint.c  .Module "mod-msg-print" unregistered
13:24:27.759 sip_endpoint.c  .Module "mod-pjsua-log" unregistered
13:24:27.760    tcplis:5060  .SIP TCP listener destroyed
13:24:27.760 sip_endpoint.c  .Endpoint 0x8b3b08 destroyed
13:24:27.760   pjsua_core.c  .PJSUA state changed: CLOSING --> NULL
13:24:27.760   pjsua_core.c  .PJSUA destroyed...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20131202/93d3f46c/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