hkatlane / red5phone

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

Not able to hear the voice from Flex Red5Phone #168

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. installed red5 server (0.9.1) on windows and started service 
2. installed red5phone (r47) , into directory "sip" under 
<red5server_home>/webapps/
3.created two users on Asterisk, done setting for extensions.conf 
4.opened browser , hit the URL for flex phone 
5.logged in as user1 from one machine and user2 from another 
6.called user1 from user2, both are able to connect to each other but no voice  

What is the expected output? What do you see instead?
i expect i should hear voice/audio from red5phone 
i am able get the call from another user 

What version of the product are you using? On what operating system?
i am using red5 server: 0.9.1, red5phone : r47 , windows: windows 2003 sp2

Please provide any additional information below.
In error.log under <red5_home>/log 
Following exception is thrown 

[NioSocketConnector-3] ERROR org.red5.server.webapp.sip.RTMPUser - 
java.net.ConnectException: Connection refused: no further information

In sip.log under log dir, following exception is thrown :

DEBUG o.r.s.webapp.sip.RTPStreamReceiver - RtpStreamReceiver - 
forwardAudioToFlashPlayer -> java.lang.NullPointerException

I am attaching a log file.

Is anything i am missing to configure in red5server or red5phone to get 
audio/voice on flash phone ?
Please help

Original issue reported on code.google.com by perry.a...@gmail.com on 8 Sep 2011 at 6:25

Attachments:

GoogleCodeExporter commented 8 years ago
A null pointer exception is being raised in RTMPStreamReciever.java at the 
forwardaudiotoflashplayer function. This functions encodes (nellymoser 
encoding) the received PCMs float array and fills it into the tempBuffer which 
is then sent to player for playing the audio data. I recommend that you add 
logs of your own into the function to track where exactly the function is 
failing. 

Also, make sure that your asterisk users have the appropriate codec set. Try 
using ulaw for your peers.

There is also the latest version of red5phone, that directly supports G711 
encoding. This gets rid of the nellymoser encoding/decoding. It does not 
require the forwardaudiotoflashplayer functions as the data is directly sent to 
the player when it is received. Give it a try. It requires flash player 11 
though.

I am currently using r53 with 0.9.1. Most of the time I got these issues was 
due to codecs or incorrect permissions for the flash player.

Regards,
Hari

Original comment by harikuma...@gmail.com on 10 Sep 2011 at 4:15

GoogleCodeExporter commented 8 years ago
Sucess !!!!!
No voice Issue solved ...

Just have to make changes in <re5_home>\conf\red5.properties
and make changes as give the port n. as 0.0.0.0  not actual address

contents of red5.prtoperties (snippets)

# HTTP
http.host=0.0.0.0
http.port=5080
https.port=8443

# RTMP
rtmp.host=0.0.0.0
rtmp.port=1935
rtmp.io_threads=16
rtmp.connect_threads=4
rtmp.send_buffer_size=271360
rtmp.receive_buffer_size=65536
rtmp.ping_interval=1000
rtmp.max_inactivity=60000
rtmp.tcp_nodelay=true

I used red5phone r47 and 0.9.1 red5 server

Original comment by perry.a...@gmail.com on 29 Sep 2011 at 12:10

GoogleCodeExporter commented 8 years ago
Hello.... I'm new using Red5... I have installed r53 with 0.9.1... I can make a 
call and only can hear in one direction :(... I've been looking for a solution 
but still the same... I've review the file red5.properties and i have 0.0.0.0 
in all the blocks of the file... Please can someone help me :(

Original comment by alsalaza...@gmail.com on 25 May 2012 at 11:44