JohnHoder / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
1 stars 0 forks source link

You can listen the caller sound when the ringtone ringing #1119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.setup sip server.
2.use one sip account call other one ,but the answer not pick the one up,let 
the ringtone belling.
3.speak something to the caller microphone . now you can listen the sound from 
the caller.

What version of the product are you using? On what device/operating system?
sipdroid 2.7/

Which SIP server are you using? What happens with PBXes?
I use my own sip server.

Which type of network are you using?
WIFI

Please provide any additional information below.
I fix the bug in the class org.sipdroid.media.RtpStreamReceiver
in function run()
like this 
rtp_socket.receive(rtp_packet);
                if (timeout != 0) {
                    tg.stopTone();
                    track.pause();
                    for (int i = maxjitter*2; i > 0; i -= BUFFER_SIZE)
                        write(lin2,0,i>BUFFER_SIZE?BUFFER_SIZE:i);
                    cnt += maxjitter*2;
                    if(Receiver.call_state!=UserAgent.UA_STATE_INCOMING_CALL){
                        track.play();
                    }
                    empty();
                }

when the user state is incoming call the track not play.
I don't know it happened in sipdroid 3.0 or not

Original issue reported on code.google.com by utwtandr...@gmail.com on 8 Jul 2013 at 4:17

GoogleCodeExporter commented 8 years ago
I tested use sipdroid 3.1 the bug still have.

Original comment by utwtandr...@gmail.com on 8 Jul 2013 at 4:38