deleolajide / red5phone

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

Initial setup of red5phone #144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. downloading and installing red5
2. downloading and install red5phone in the webapps directory
3. go to web browser and enter http://localhost:5080/sip

What is the expected output? What do you see instead?

i expected to see a successful connection instead i see "Failed to connect to 
red5"

I used the flex phone (but the same results with the other phones)
Phone#: 5052
Username: 5052
password: 5052
mailbox: (blank)
SIP realm: asterisk
SIP server: 192.168.1.17 (also tried it on a remote server ip address)
OB proxy: 192.168.1.17 (also tried the remote server IP address)
Red5 URL: rtmp:/sip (also rtmp://localhost/sip |  rtmp://localhost:5080/sip  
|rtmp://(remote Ip address:5080)/sip |i tried 

it on windows 7 ultimate and windows XP professional
asterisk 1.6

What version of the product are you using? On what operating system?

i'm using the sip47.zip version of red5phone
windows 7 ultimate and windows XP professional
asterisk 1.6

Please provide any additional information below.

i'm new to the red5 but i have been read the previous issues and apparently no 
one give exact set up information. I;m not sure if there is some underlying 
setup that need to be addressed like a trunk for the red5phone to connect to 
but for the last week i was unable to make any progress despite following the 
instruction seen on other isses posted. Can some one please assist because i 
need to do this for project but if i'm unable i'll have to abandon the idea 
which i would not like to do.

I would just like some step by step instruction on how to get the red5phone 
running and connect to red5  server and asterisk PLEASE.

Original issue reported on code.google.com by Teddy...@gmail.com on 22 Mar 2011 at 4:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
rtmp:/sip is correct.
also you can type rtmp://localhost/sip
Don't use port number in "red5 url" field.

Try to open http://localhost:5080/
You should see red5 demo page.
Check demo application "port scanner" or something like that.
It should show that you rtmp port is open.
So be sure that your red5 is up and running.
After that unzip red5phone and copy sip directory to red5 webapps disrectory.
I'm not sure about binary distribution, but on my server i have red5 compiled 
from souces and webapps are located in red5/dist directory

After that try flex distribution of red5phone. In my experience it was the 
easiest application for first configuration and testing of red5phone.

Original comment by ukeb...@gmail.com on 22 Mar 2011 at 11:09

GoogleCodeExporter commented 9 years ago
Oh thank you for you quick response.
ok I have done that and it works. Red 5 is installed and the i ran the port 
tests and the results are as follows

Protocol        Port      status

RTMP         Default      Success
RTMP            80            Failed
RTMP          443             Failed
RTMP         1935            Success
RTMPT        Default         Failed
RTMPT         80               Failed
RTMPT         443            Failed
RTMPT        1935           Failed

Not sure if these results are good or bad but please let me know. any other 
suggestion if this in not the problem.

the Sip information is

[5052]
deny=0.0.0.0/0.0.0.0
secret=5052
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=no
callgroup=
pickupgroup=
dial=SIP/5052
accountcode=
mailbox=5052@default
permit=0.0.0.0/0.0.0.0
callerid=device <5052>
call-limit=50
faxdetect=no

I'm using elastix with the asterisk 1.6. Obtained this information for the 
sip_additional.conf  file. No sure if it helps

Original comment by Teddy...@gmail.com on 23 Mar 2011 at 1:26

GoogleCodeExporter commented 9 years ago
"RTMP 1935 Success" - ok, your port is open.

Now you can open flex sip phone, set "red5 url" to "rtmp:/sip" or 
"rtmp:/127.0.0.1/sip" and press "Login" (with any random sip settings).

You should see "Connection success" message. It means that you have connected 
to red5 successfully.

After that you can try to set sip setting.
You shouldn't meet problems here. Pay attention to "realm" field. The default 
value in asterisk is "asterisk". You can check it in your sip.conf

Original comment by ukeb...@gmail.com on 23 Mar 2011 at 9:39

GoogleCodeExporter commented 9 years ago
Hey thanks for the infor, but still no success. It amazes me that it seems so 
simple but yet it is not working for me. I reinstalled it on the Windows 7 
system and also installed it on the Windows Xp and the problem still exist. I 
even downloaded the SVN in flex and i stll experience the same problem. I'm 
trying to analyze the code to see what can be done but i'm a new bee. The 
problem starts from the RTMP connection which for some strange reason is not 
working despite my best efforts. I'm kind of getting frustrated that i have 
been working on it for so long and still i am no where. Any other suggestion 
will be deeply appreciated.

Original comment by Teddy...@gmail.com on 24 Mar 2011 at 4:18

GoogleCodeExporter commented 9 years ago
Hm.. I didn't use red5 under windows. Only linux. How do you run red5? As 
service? Do you have any logs or output? 
Windows 7 is not the best system for testing. Once i tried to install 
apache+mysql on win 7 with no results. As for XP, maybe you have firewall 
enabled or something like that?

Try to install virtual machine (Sun VritualBox is the best choice) and install 
linux on it and install red5 on linux. I started red5 and red5phone first time 
with no problems. 

Original comment by ukeb...@gmail.com on 24 Mar 2011 at 12:49

GoogleCodeExporter commented 9 years ago
yes it is a service. I do have red5 logs and one reason why the RTMP connectin 
failed was due to a long hand shake. I turned off all my antivirus 
(bitdefender) and firewall after your suggestion and still nothing. I'm going 
to try it on linux and see it i have any success. I will updated when i'm 
finished.

Original comment by Teddy...@gmail.com on 25 Mar 2011 at 4:13

GoogleCodeExporter commented 9 years ago
PROBLEM SOLVED
It was a problem with the red5.jar file (red5 it self was the problem). It 
didn't have the correct permissions chmod +x red5.jar.
This was on a linux os. I don't know about windows installation but anyproblems 
could be windows version of red5.jar.
Thanks to all those who assisted me. I gave me hope to continue

Original comment by Teddy...@gmail.com on 26 Mar 2011 at 5:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Try to build your app and run in from browser, not flash builder.
Check red5 url. This is the only thing that can cause "Failed to connect to 
red5".

Original comment by ukeb...@gmail.com on 2 Apr 2011 at 9:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi. Provide your phone settings and asterisk config. It's also important if you 
have NAT or not.

Original comment by ukeb...@gmail.com on 4 Apr 2011 at 7:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
can i see your asterisk settings?
Your red5 is inside your LAN and asterisk is outside.
You should configure your asterisks's "friend" with NAT support using nat=yes 
and canreinvite=no in your sip.conf

Original comment by ukeb...@gmail.com on 4 Apr 2011 at 10:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
well, you should configure your asterisk to work properly with nat.
check /etc/asterisk/sip.conf 
there are some settings staring with
[your_sip_firiend]
where "your_sip_firiend" - is the username which you use to connect from 
red5phone.
You should check it for the following settings:
nat=yes
canreinvite=yes
disallow=all
allow=ulaw
allow=alaw

Original comment by ukeb...@gmail.com on 5 Apr 2011 at 5:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am using windows xp and into that I am using red5phone sip_47 with red5 
server 0.8. I configured all thing properly when I type 
http://localhost:5080/sip so it's working perfect then I changed red5 property 
and change localhost and used my IP address. that also working fine.

At end when I run my sipphone so my login is done and it show me connection 
success and show me phone window. 
But at end in red5 console it show me an error given below.

RegisterAgent: onTransFailureResponse start:
RegisterAgent: Registration failure: 403 Forbidden (Bad auth)
[SIPUser] SIP Registration failure 403 Forbidden (Bad auth)

Login information
Phone:1003
Username :1003
Password : 1234
SIP Realm: asterisk
SIP Server :98.118.xxx.xxx
OB Proxy : 98.118.xxx.xxx
Red5 Url: rtmp://192.168.0.50/sip

Original comment by wasim.ka...@gmail.com on 12 Apr 2011 at 5:52

GoogleCodeExporter commented 9 years ago
I solved that error... 
It's my asterisk's problem I passed wrong username and password to my asterisk 
server
Now it's working properly thanks.

Original comment by wasim.ka...@gmail.com on 19 Apr 2011 at 5:00

GoogleCodeExporter commented 9 years ago
rtmp:/sip should be rtmp://localhost/sip  ..keep both slashes

Original comment by jackandr...@gmail.com on 6 Dec 2011 at 6:01

GoogleCodeExporter commented 9 years ago
I have installed Red5 0.8.0 on my windows XP machine and copied SIP folder into 
webapps folder. Then in flex phone am trying to connect with 
"rtmp://localhost/sip" (with any random sip settings). But on Login press its 
giving error Red5 not connected. Can you please assist me in to this as I am 
new to Red5 Server. Also upon installing Red5 samples  demos some of its demos 
are working some are not. Any help here will be really appreciated.I am really 
stuck in to this :(

Original comment by asprogra...@gmail.com on 10 Jan 2012 at 3:05