pgaval / red5phone

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

how to get the dialSound from remote ringing #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make a call
2. the ringing begin use local .mp3 even the call is not connected
3. ...

What is the expected output? What do you see instead?
I guess maybe the question in here:
private function doCall():void 
{               parentApplication.red5Manager.doCall(dialnumTxt.text);              ialButton.enabled
 = false;
    clearButton.enabled = true;
    indicatorIcon.source = green;
    statusTxt.text = "Calling......";
      if(!isDialing) {
      dialChannel =  dialSound.play(0,10);          
      isDialing = true;
        }
    if(dialedCalls.length >= 10) {
      dialedCalls.pop();
    }
    dialedCallObj= new Object();
    dialedCallObj.data  = dialnumTxt.text;
    dialedCallObj.label = dialnumTxt.text;
    dialedCallObj.time  = new Date().toString();
    dialedCalls.unshift(dialedCallObj);
    }
even the call is connected or not,up methoed invoke dialSound.play(0,10) to 
play local .mp3 ringing...,but people want to hear real ringing from remote 
phone ...

What version of the product are you using? On what operating system?
Red5 Server 0.9.1 Final   linux centos 5.5 i386 
sip_r40                   linux centos 5.5 i386 

Please provide any additional information below.

Original issue reported on code.google.com by yangwinc...@gmail.com on 15 Oct 2010 at 6:35

GoogleCodeExporter commented 9 years ago
the thing is the real sound from the call isn't played until the call is 
connected. take a look at callConnected and callConnectedEvent

Original comment by joab...@gmail.com on 18 Oct 2010 at 3:38

GoogleCodeExporter commented 9 years ago
how can get the real ring stream from the far end if the connection is not 
created?

Original comment by tzhan...@gmail.com on 21 Oct 2010 at 1:34