I am trying to get simph323 to work, but I having some trouble w/ the audio. Running h323plus-v1_21_0 with ptlib-2.4.5 on Linux.
I run the following command:
simph323 -s "HDA Intel" -n h323:192.168.15.163
H323> Could not open sound device HDA Intel - Check permissions or full duplex capability. Could not open sound device HDA Intel - Check permissions or full duplex capability. In call with Kattanekm Could not open sound device HDA Intel - Check permissions or full duplex capability. Could not open sound device HDA Intel - Check permissions or full duplex capability. ....
running with trace enabled shows that the sound device is opened properly, but then it fails shortly after
0:04.512 H245:b7e3db90 H245 Default OnSelectLogicalChannels, FastStartDisabled 0:04.512 H245:b7e3db90 H323 FindCapability: G.711-ALaw-64k <1> 0:04.512 H245:b7e3db90 H323 Found capability: G.711-ALaw-64k <4> 0:04.513 H245:b7e3db90 H323 Selecting G.711-ALaw-64k <4> 0:04.513 H245:b7e3db90 H245 Opening channel: T-103 0:04.513 H245:b7e3db90 PWLib File handle low water mark set: 17 PUDPSocket 0:04.514 H245:b7e3db90 RTP_UDP Session 1 created: 192.168.15.153:5002-5003 ssrc=2757625043 0:04.514 H245:b7e3db90 RTP Adding session RTP_UDP 0:04.514 H245:b7e3db90 H323RTP Transmitter created using session 1 0:04.514 H245:b7e3db90 H323RTP OnSendingPDU 0:04.514 H245:b7e3db90 RTP OnSendingPDU 0:04.514 H245:b7e3db90 Codec G711 ALaw encoder created for at 64k, 240 samples 0:04.515 H245:b7e3db90 ALSA Open this=0x0x9627ea8 0:04.517 H245:b7e3db90 Alsa Buffer time is 85312 0:04.517 H245:b7e3db90 Alsa Period time is 85312 0:04.519 H245:b7e3db90 ALSA Device plughw:0 Opened 0:04.519 H245:b7e3db90 Codec Opened sound channel "HDA Intel" for recording at 8000 samples/second using 2x480 byte buffers. 0:04.519 H245:b7e3db90 ALSA setBuffers this=0x0x9627ea8 oshandle=0x9626698 init 1 0:04.519 H245:b7e3db90 psound isOPen basechannel 0x0x9627ea8 pchannel os_handle=-1 0:04.519 H245:b7e3db90 Codec channel 0x0x96243a8 isOpen=0 Could not open sound device HDA Intel - Check permissions or full duplex capability. 0:04.519 H245:b7e3db90 LogChan Transmit thread aborted (open fail) for G.711-ALaw-64k <4> 0:04.519 H245:b7e3db90 H323 OnSelectLogicalChannels, OpenLogicalChannel failed: G.711-ALaw-64k <4>
Some debugging later I noticed that H323EndPoint::OpenAudioChannel() calls codec.AttachChannel() [codecs.cxx] and fails in channel->IsOpen().
Looking at ptlib/common/sound.cxx PSoundChannel it is baseChannel->PChannel::IsOpen() which returns FALSE
For a quick test I changed the line to baseChannel->IsOpen() which makes it jump that hurdle and simph323 connects with the other h323 end and sound bits are exchanged.
Here is the thing that puzzles me! I am using the same version of ptlib with opal (e.g. simpleopal) and don't see this problem. Code is build and run on the same machine.
Any thoughts? mat