pgaval / red5phone

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

Reg.failure=407 Unauthorized #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install red5
2. down red5phone
3. cp sip /webapp
4. use sip/flex/index.html

What is the expected output? What do you see instead?
I want to see the success of the flex sip application 
but it is failure to see that the reg.failure=407 Unauthorized
What version of the product are you using? On what operating system?
I use sip_r53.zip 

Please provide any additional information below.

[INFO] [NioProcessor-1] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - 
Action connect
[INFO] [NioProcessor-1] org.red5.server.net.rtmp.RTMPHandler - Connecting to: 
[WebScope@ae3da8 Depth = 1, Path = '/default', Name = 'sip']
Red5SIP Client connected 25 service RTMPMinaConnection from 114.249.234.133 : 
4620 to  (in: 3406 out 3073 )
Red5SIP Client joined app 25
[INFO] [NioProcessor-1] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - 
Action open
Red5SIP open
Red5SIP login F9940178-AD50-5763-7424-6CB1037D7015
Alloc port number:5096
Alloc port number:3026
[SIPUser] Constructor: sip port 5096 rtp port:3026
Red5SIP open creating sipUser for 8000 on sip port 5096 audio port 3026 uid 
F9940178-AD50-5763-7424-6CB1037D7015
[SIPUser] login
SipUserAgent - initSessionDescriptor -> Init...
SdpUtils - createInitialSdp -> Init...
SdpUtils - createInitialSdp -> userName = [8000], viaAddress = [221.5.69.195], 
audioPort = [3026], videoPort = [21070], audioCodecsPrecedence = [18;111;8;0].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsPrecedence = 
[18;111;8;0], initIndex =  [0], finalIndex =  [2].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [18].
SIPCodecFactory - getSIPAudioCodec -> Init...
SIPCodecFactory - getSIPAudioCodec -> codecId = [18].
SIPCodecFactory - getSIPAudioCodec -> codecId = [18], codecName =  [G729].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [18], 
codecName =  [G729].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsIndex = [1], 
initIndex =  [3], finalIndex =  [6].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [111].
SIPCodecFactory - getSIPAudioCodec -> Init...
SIPCodecFactory - getSIPAudioCodec -> codecId = [111].
SIPCodecFactory - getSIPAudioCodec -> codecId = [111], codecName =  [ILBC].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [111], 
codecName =  [ILBC].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsIndex = [2], 
initIndex =  [7], finalIndex =  [8].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [8].
SIPCodecFactory - getSIPAudioCodec -> Init...
SIPCodecFactory - getSIPAudioCodec -> codecId = [8].
SIPCodecFactory - getSIPAudioCodec -> codecId = [8], codecName =  [PCMA].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [8], 
codecName =  [PCMA].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsIndex = [3], 
initIndex =  [9], finalIndex =  [10].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [0].
SIPCodecFactory - getSIPAudioCodec -> Init...
SIPCodecFactory - getSIPAudioCodec -> codecId = [0].
SIPCodecFactory - getSIPAudioCodec -> codecId = [0], codecName =  [PCMU].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecId = [0], 
codecName =  [PCMU].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsIndex = [4], 
initIndex =  [11], finalIndex =  [-1].
SdpUtils - createInitialSdp -> Adding rtpmap for payload [18] with value = [18 
G729/8000/1].
SdpUtils - createInitialSdp -> Adding 1 audio codec media attributes.
SdpUtils - createInitialSdp -> Adding audio media attribute [fmtp:18 annexb=no].
SdpUtils - parseAttributeField -> Init...
SdpUtils - parseAttributeField -> codecMediaAttribute = [fmtp:18 annexb=no].
SdpUtils - parseAttributeField -> attribName = [fmtp] attribValue  = [18 
annexb=no].
SdpUtils - parseAttributeField -> End...
SdpUtils - createInitialSdp -> Adding rtpmap for payload [111] with value = 
[111 ILBC/8000/1].
SdpUtils - createInitialSdp -> Adding 1 audio codec media attributes.
SdpUtils - createInitialSdp -> Adding audio media attribute [fmtp:111 mode=30].
SdpUtils - parseAttributeField -> Init...
SdpUtils - parseAttributeField -> codecMediaAttribute = [fmtp:111 mode=30].
SdpUtils - parseAttributeField -> attribName = [fmtp] attribValue  = [111 
mode=30].
SdpUtils - parseAttributeField -> End...
SdpUtils - createInitialSdp -> Adding rtpmap for payload [8] with value = [8 
PCMA/8000/1].
SdpUtils - createInitialSdp -> Audio codec has no especific media attributes.
SdpUtils - createInitialSdp -> Adding rtpmap for payload [0] with value = [0 
PCMU/8000/1].
SdpUtils - createInitialSdp -> Audio codec has no especific media attributes.
SdpUtils - getFormatList -> Init...
SdpUtils - getPayloadIdFromAttribute -> Init...
SdpUtils - getPayloadIdFromAttribute -> AttributeName = [rtpmap], 
AttributeValue = [18 G729/8000/1].
SdpUtils - isPayloadRelatedAttribute -> Init...
SdpUtils - isPayloadRelatedAttribute -> AttributeName = [rtpmap], 
AttributeValue = [18 G729/8000/1].
SdpUtils - isPayloadRelatedAttribute -> isPayloadAttribute = true
SdpUtils - isPayloadRelatedAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> payloadId = 18
SdpUtils - getPayloadIdFromAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> Init...
SdpUtils - getPayloadIdFromAttribute -> AttributeName = [rtpmap], 
AttributeValue = [111 ILBC/8000/1].
SdpUtils - isPayloadRelatedAttribute -> Init...
SdpUtils - isPayloadRelatedAttribute -> AttributeName = [rtpmap], 
AttributeValue = [111 ILBC/8000/1].
SdpUtils - isPayloadRelatedAttribute -> isPayloadAttribute = true
SdpUtils - isPayloadRelatedAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> payloadId = 111
SdpUtils - getPayloadIdFromAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> Init...
SdpUtils - getPayloadIdFromAttribute -> AttributeName = [rtpmap], 
AttributeValue = [8 PCMA/8000/1].
SdpUtils - isPayloadRelatedAttribute -> Init...
SdpUtils - isPayloadRelatedAttribute -> AttributeName = [rtpmap], 
AttributeValue = [8 PCMA/8000/1].
SdpUtils - isPayloadRelatedAttribute -> isPayloadAttribute = true
SdpUtils - isPayloadRelatedAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> payloadId = 8
SdpUtils - getPayloadIdFromAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> Init...
SdpUtils - getPayloadIdFromAttribute -> AttributeName = [rtpmap], 
AttributeValue = [0 PCMU/8000/1].
SdpUtils - isPayloadRelatedAttribute -> Init...
SdpUtils - isPayloadRelatedAttribute -> AttributeName = [rtpmap], 
AttributeValue = [0 PCMU/8000/1].
SdpUtils - isPayloadRelatedAttribute -> isPayloadAttribute = true
SdpUtils - isPayloadRelatedAttribute -> End...
SdpUtils - getPayloadIdFromAttribute -> payloadId = 0
SdpUtils - getPayloadIdFromAttribute -> End...
SdpUtils - getFormatList -> formatList = [18 111 8 0].
SdpUtils - getFormatList -> End...
SdpUtils - createInitialSdp -> Creating audio media descriptor.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Just adding attribute.
SdpUtils - createInitialSdp -> Adding 1 common audio media attributes.
SdpUtils - createInitialSdp -> Adding common audio media attribute [ptime:20].
SdpUtils - parseAttributeField -> Init...
SdpUtils - parseAttributeField -> codecMediaAttribute = [ptime:20].
SdpUtils - parseAttributeField -> attribName = [ptime] attribValue  = [20].
SdpUtils - parseAttributeField -> End...
SdpUtils - createInitialSdp -> End...
SipUserAgent - initSessionDescriptor -> localSession = v=0
o=8000 0 0 IN IP4 221.5.69.195
s=Session SIP/SDP
c=IN IP4 221.5.69.195
t=0 0
m=audio 3026 RTP/AVP 18 111 8 0
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:111 ILBC/8000/1
a=fmtp:111 mode=30
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
a=ptime:20

SipUserAgent - listen -> Init...
Red5SIP register
[SIPUser] register
RegisterAgent: Registering contact <sip:8000@221.5.69.195:5096> (it expires in 
3600 secs)
RegisterAgent: onTransFailureResponse start: 
RegisterAgent: Registration failure: 407 Unauthorized
[SIPUser] SIP Registration failure 407 Unauthorized
Red5SIP Client leaving app 25
Red5SIP Client closing client F9940178-AD50-5763-7424-6CB1037D7015
Release ports: sip port 5096 audio port 3026
Release port number:5096
Release port number:3026
[SIPUser] close1
[SIPUser] hangup IDLE
[SIPUser] unregister
RegisterAgent: Unregistering contact <sip:8000@221.5.69.195:5096>
SipUserAgent - hangup -> Init...
SipUserAgent - closeMediaApplication -> Init...
RegisterAgent: onTransFailureResponse start: 
RegisterAgent: Registration failure: 407 Unauthorized
[SIPUser] SIP Registration failure 407 Unauthorized
RegisterAgent: Failed Registration stop try.
[SIPUser] provider.halt

Original issue reported on code.google.com by guanxian...@gmail.com on 19 Apr 2011 at 7:51

GoogleCodeExporter commented 9 years ago
change to Realm  ( Realm = asterisk  or other sip server FQDN )

Original comment by ozanya...@gmail.com on 25 Apr 2011 at 2:51

GoogleCodeExporter commented 9 years ago
Thank you for your help. I think I know the reasion. I use our own sip server . 
and it will receive 407 sip message if the reg server ask the passward. It will 
well if the server has no passward . But I have another problem , it has no 
audio after it the dialogue has been constructed.

Original comment by guanxian...@gmail.com on 25 Apr 2011 at 2:59