No sound is heard at local/remote end!

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

 



Hello,

I am trying to test pjsua with a pc2pc call in a LAN environment. My
environment is Ubuntu 10.04. After pressing "a" to accept the call at the
remote end there is no sound heard at either ends and only a beep sound
comes.
It also asks to enter a numeric code in the range [100:699] and even after
entering 100 there are no changes.

After this, I tried to solve the problem as given in the manual.
For checking whether it plays a WAV file using pjsua the following output
is given without any actual sound heard:

****************************************************************************

abhat002 at shetland:~/pjproject-1.0.3/pjsip-apps/bin 122%
./pjsua-x86_64-unknown-linux-gnu --play-file output_segment_004.wav
 22:14:06.456 os_core_unix.c  pjlib 1.0.3 for POSIX initialized
 22:14:06.458 sip_endpoint.c  Creating endpoint instance...
 22:14:06.458          pjlib  select() I/O Queue created (0x12c8b10)
 22:14:06.458 sip_endpoint.c  Module "mod-msg-print" registered
 22:14:06.458 sip_transport.  Transport manager created.
 22:14:06.458 sip_endpoint.c  Module "mod-pjsua-log" registered
 22:14:06.458 sip_endpoint.c  Module "mod-tsx-layer" registered
 22:14:06.458 sip_endpoint.c  Module "mod-stateful-util" registered
 22:14:06.458 sip_endpoint.c  Module "mod-ua" registered
 22:14:06.458 sip_endpoint.c  Module "mod-100rel" registered
 22:14:06.458 sip_endpoint.c  Module "mod-pjsua" registered
 22:14:06.458 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)
 22:14:06.652      pasound.c  PortAudio sound library initialized, status=0
 22:14:06.652      pasound.c  PortAudio host api count=2
 22:14:06.652      pasound.c  Sound device count=10
 22:14:06.652          pjlib  select() I/O Queue created (0x1311928)
 22:14:06.652 sip_endpoint.c  Module "mod-evsub" registered
 22:14:06.652 sip_endpoint.c  Module "mod-presence" registered
 22:14:06.652 sip_endpoint.c  Module "mod-refer" registered
 22:14:06.653 sip_endpoint.c  Module "mod-pjsua-pres" registered
 22:14:06.653 sip_endpoint.c  Module "mod-pjsua-im" registered
 22:14:06.653 sip_endpoint.c  Module "mod-pjsua-options" registered
 22:14:06.653   pjsua_core.c  1 SIP worker threads created
 22:14:06.653   pjsua_core.c  pjsua version 1.0.3 for
x86_64-unknown-linux-gnu initialized
 22:14:06.653 sip_endpoint.c  Module "mod-default-handler" registered
 22:14:06.666  pjsua_media.c  Unable to open file for playback: Not found
(PJ_ENOTFOUND) [status=70006]
 22:14:07.152      pasound.c  PortAudio sound library shutting down..
 22:14:07.153   pjsua_core.c  Shutting down...
 22:14:08.159   pjsua_core.c  Destroying...
 22:14:08.159 sip_transactio  Stopping transaction layer module
 22:14:08.159 sip_endpoint.c  Module "mod-default-handler" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-pjsua-options" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-pjsua-im" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-pjsua-pres" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-pjsua" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-stateful-util" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-refer" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-presence" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-evsub" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-invite" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-100rel" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-ua" unregistered
 22:14:08.159 sip_transactio  Transaction layer module destroyed
 22:14:08.159 sip_endpoint.c  Module "mod-tsx-layer" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-msg-print" unregistered
 22:14:08.159 sip_endpoint.c  Module "mod-pjsua-log" unregistered
 22:14:08.159 sip_endpoint.c  Endpoint 0x12bdd78 destroyed
 22:14:08.159   pjsua_core.c  PJSUA destroyed...
**************************************************************************

Even directly playing the playfile sample program also produces similar
messages with no sound output.

Then I also tried to test by looping back mic to speaker and the output is
as follows:
***************************************************************************
abhat002 at shetland:~/pjproject-1.0.3/pjsip-apps/bin 112%
./pjsua-x86_64-unknown-linux-gnu
 21:32:54.081 os_core_unix.c  pjlib 1.0.3 for POSIX initialized
 21:32:54.082 sip_endpoint.c  Creating endpoint instance...
 21:32:54.083          pjlib  select() I/O Queue created (0x11a9b10)
 21:32:54.083 sip_endpoint.c  Module "mod-msg-print" registered
 21:32:54.083 sip_transport.  Transport manager created.
 21:32:54.083 sip_endpoint.c  Module "mod-pjsua-log" registered
 21:32:54.083 sip_endpoint.c  Module "mod-tsx-layer" registered
 21:32:54.083 sip_endpoint.c  Module "mod-stateful-util" registered
 21:32:54.083 sip_endpoint.c  Module "mod-ua" registered
 21:32:54.083 sip_endpoint.c  Module "mod-100rel" registered
 21:32:54.083 sip_endpoint.c  Module "mod-pjsua" registered
 21:32:54.083 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)
 21:32:54.322      pasound.c  PortAudio sound library initialized, status=0
 21:32:54.322      pasound.c  PortAudio host api count=2
 21:32:54.322      pasound.c  Sound device count=10
 21:32:54.322          pjlib  select() I/O Queue created (0x11f2928)
 21:32:54.322 sip_endpoint.c  Module "mod-evsub" registered
 21:32:54.323 sip_endpoint.c  Module "mod-presence" registered
 21:32:54.323 sip_endpoint.c  Module "mod-refer" registered
 21:32:54.323 sip_endpoint.c  Module "mod-pjsua-pres" registered
 21:32:54.323 sip_endpoint.c  Module "mod-pjsua-im" registered
 21:32:54.323 sip_endpoint.c  Module "mod-pjsua-options" registered
 21:32:54.323   pjsua_core.c  1 SIP worker threads created
 21:32:54.323   pjsua_core.c  pjsua version 1.0.3 for
x86_64-unknown-linux-gnu initialized
 21:32:54.323 sip_endpoint.c  Module "mod-default-handler" registered
 21:32:54.324   pjsua_core.c  SIP UDP socket reachable at 131.94.129.24:5060
 21:32:54.324   udp0x1205910  SIP UDP transport started, published address
is 131.94.129.24:5060
 21:32:54.324    pjsua_acc.c  Account <sip:131.94.129.24:5060> added with
id 0
 21:32:54.325    tcplis:5060  SIP TCP listener ready for incoming
connections at 131.94.129.24:5060
 21:32:54.325    pjsua_acc.c  Account
<sip:131.94.129.24:5060;transport=TCP> added with id 1
 21:32:54.327  pjsua_media.c  RTP socket reachable at 131.94.129.24:4000
 21:32:54.327  pjsua_media.c  RTCP socket reachable at 131.94.129.24:4001
 21:32:54.328  pjsua_media.c  RTP socket reachable at 131.94.129.24:4002
 21:32:54.328  pjsua_media.c  RTCP socket reachable at 131.94.129.24:4003
 21:32:54.329  pjsua_media.c  RTP socket reachable at 131.94.129.24:4004
 21:32:54.329  pjsua_media.c  RTCP socket reachable at 131.94.129.24:4005
 21:32:54.330  pjsua_media.c  RTP socket reachable at 131.94.129.24:4006
 21:32:54.330  pjsua_media.c  RTCP socket reachable at 131.94.129.24:4007
>>>>
Account list:
  [ 0] <sip:131.94.129.24:5060>: does not register
       Online status: Online
 *[ 1] <sip:131.94.129.24: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     |  f  Save
config   |
+------------------------------+--------------------------+-------------------+
|  q  QUIT       sleep MS     echo [0|1|txt]        n: detect NAT type    
   |
+=============================================================================+
You have 0 active call
>>> cc 0 0
 21:33:05.291  pjsua_media.c  pjsua_set_snd_dev(): attempting to open
devices @16000 Hz
 21:33:05.312  pjsua_media.c  ..failed: Invalid sample rate
 21:33:05.312  pjsua_media.c  pjsua_set_snd_dev(): attempting to open
devices @44100 Hz
 21:33:05.524 os_core_unix.c  Info: possibly re-registering existing thread
 21:33:05.554    ec0x11f0d70  AEC created, clock_rate=44100, channel=1,
samples per frame=882, tail length=200 ms, latency=88969 ms
 21:33:05.554   conference.c  Port 0 (HDA Intel: AD198x Analog (hw:0,0)
(44KHz)) transmitting to port 0 (HDA Intel: AD198x Analog (hw:0,0)
(44KHz))
Success
>>>  21:33:10.573   sound_port.c  EC suspended because of inactivity
***************************************************************************

Even after speaking at the mic the voice is not heard back and the prompt
remains as above.

Your help will be highly appreciated!
Thanks,
Abhishek




[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