bupt-william / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

Error in linphonemediaengine.cc causes no voice received problem #319

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add linphone media engine into call example
2. Enable related macros like "HAVE_LINPHONE", "HAVE_SPEEX", etc.
3. Call the other side which is a Google Talk client.

What is the expected output? What do you see instead?
Both sides should be able to hear voices. Instead call example cannot hear. 
Google talk can hear.

What version of the product are you using? On what operating system?
libingle-0.6.6
Visual Studio 2010, 
Win 7

Please provide any additional information below.
I go into the code and found the problem is with 
LinphoneVoiceChannel::OnPacketReceived, and the error line is 
if (play_ && payloadtype != 13)
    socket_->SendTo(buf, len, talk_base::SocketAddress("localhost",2000));

I print out the return value of SendTo function and found it returns -1, which 
means sending fails. Anyone encountered this problem before, and why does it 
happen? Many thanks!

Original issue reported on code.google.com by tangketa...@gmail.com on 3 Mar 2012 at 8:03