mondain / red5phone

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

SIP Registration failure 401 Unauthorized #105

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the ZIP from red5 page, unzip it and start red5 without errors
2. Download the sip_r29.zip, unzip it and put it into ..\red5\webapps\
3. Close red5-server and start it again
4. open localhost:5080/sip and the korrekt page opens, 
5. click on Flex Phone Template and fill in the datas of 
   my Asterisk-server:
 Phone#:  2000
 Username: 2000
 Password: secret
 Conference:
 SIP Realm: <IP of my Asterisk>
 SIP Server: <IP of my Asterisk>
 OB Proxy: <IP of my Asterisk>
 Red5URL: rtmp:/sip
6. Click on "Login" 
   Message: "Connection success" than "Reg. Failure=401 Unauthorized

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

I expected: Connection to Asterisk, with a Message on the Asterisk CLI

What I see: 
Nothing on Asterisk and Registration failure on red5 especially it tries
to connect at port 5070, I changed the startsipport and endsipport to 5060
in the Application.java, but nothing changed, so i changed the SIP port in
Asterisk to 5070 but again no message in the CLI whean I tried to connect

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

red5 0.8.0 Final    (also tested red5 0.9.1 Final)
red5phone from sip_r29.zip    (maybe there are some parts missing?)
Windows XP

Asterisk 1.6.2 on Ubuntu

Please provide any additional information below.

I tried to change some settings in different files, but seems to have no
effect.

I'm new to use red5 and Asterisk, but Asterisk works fine with every other
application and phones, so I think this is not the problem.
Maybe I have to change something in Asterisk, please tell me.
I saved the logs for a single session, can add it if usefull.

thx
bigfootblue

Original issue reported on code.google.com by theblueb...@gmail.com on 26 Mar 2010 at 9:17

GoogleCodeExporter commented 9 years ago
FYI

10:34:06.911 Fri 26 Mar 2010, <IP of my Asterisk>:5060/udp (380 bytes): sent
REGISTER sip:<IP of my Asterisk> SIP/2.0
Via: SIP/2.0/UDP <IP of my Computer>:5070;rport;branch=z9hG4bK900720
Max-Forwards: 70
To: "2000" <sip:2000@<IP of my Asterisk>>
From: "2000" <sip:2000@<IP of my Asterisk>>;tag=z9hG4bK89326872
Call-ID: 624403577798@<IP of my Computer>
CSeq: 1 REGISTER
Contact: <sip:2000@<IP of my Computer>:5070>
Expires: 3600
User-Agent: mjsip stack 1.6
Content-Length: 0

-----End-of-message-----

10:34:06.911 Fri 26 Mar 2010, <IP of my Asterisk>:5060/udp (533 bytes): received
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP <IP of my Computer>:5070;branch=z9hG4bK900720;received=<IP of 
my
Computer>;rport=5070
From: "2000" <sip:2000@<IP of my Asterisk>>;tag=z9hG4bK89326872
To: "2000" <sip:2000@<IP of my Asterisk>>;tag=as635409d0
Call-ID: 624403577798@<IP of my Computer>
CSeq: 1 REGISTER
Server: Asterisk PBX 1.6.2.0~rc2-0ubuntu1.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="20a37820"
Content-Length: 0

Original comment by theblueb...@gmail.com on 26 Mar 2010 at 9:49

GoogleCodeExporter commented 9 years ago
try using "asterisk" as realm rather than the ip of your server....

look at your log below:
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="20a37820"
Content-Length: 0

Original comment by eleoson....@gmail.com on 4 Apr 2010 at 4:41

GoogleCodeExporter commented 9 years ago
Thanks a lot that solved my problem :)

But now I have another question, how can I use the Callme Button?
I filled all the datas I have to set like server, password and so on,
but I have no connection.

Original comment by theblueb...@gmail.com on 6 Apr 2010 at 6:51

GoogleCodeExporter commented 9 years ago
 i have these error
ERROR o.a.coyote.http11.Http11NioProtocol - Error initializing endpoint
java.net.BindException: Address already in use
please help me.

Original comment by sac...@gmail.com on 14 Jun 2010 at 1:56

GoogleCodeExporter commented 9 years ago
SIP Realm: asterisk 

note: not ip

Original comment by shamun.toha@gmail.com on 31 Jul 2010 at 10:03

GoogleCodeExporter commented 9 years ago
trying to setup sip with red5phone

SIP Registrar/Proxy/Domain: sip.link2voip.com
SIP User ID: united
SIP Username: united
SIP Password: 12345
DTMF Mode: Auto
24.79.132.239
rtmp://192.168.1.10/sip
--------------------------------
Not sure if this is correct?

Original comment by macup...@gmail.com on 26 Aug 2010 at 6:16