mondain / red5phone

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

Help , SIP contact 127.0.0.1 #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
now I use red5.0.8.0 and red5phone
http://red5phone.googlecode.com/files/sip.zip

Unzip and move the sip folder to webapps. 

and i start the red5, i register from another pc<10.20.16.188>,
and i got <<<<Registering contact <sip:600666@127.0.0.1:5076>>>>>
the right contact could be <sip :600666@10.20.16.192>--(my red5 server )

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

linux <2.6.18-92.el5xen>
red5   0.8.0
red5phone   http://red5phone.googlecode.com/files/sip.zip

Please provide any additional information below.

This is the debug info;

[INFO] [NioProcessor-1]
org.red5.server.adapter.MultiThreadedApplicationAdapter - W3C
x-category:session x-event:connect c-ip:10.20.16.188 c-client-id:0
SIPUser Constructor: sip port 5070 rtp port:3000
SIPUser login
SipUserAgent - initSessionDescriptor -> Init...
SdpUtils - createInitialSdp -> Init...
SdpUtils - createInitialSdp -> userName = [1002], viaAddress = [127.0.0.1],
audioPort = [3000], videoPort = [21070], audioCodecsPrecedence = [8;18;0;111].
SIPCodecFactory - getAvailableAudioCodecsWithPrecedence -> codecsPrecedence
= [8;18;0;111], initIndex =  [0], finalIndex =  [1].
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 =
[1], initIndex =  [2], finalIndex =  [4].
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 =
[2], initIndex =  [5], finalIndex =  [6].
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 =
[3], initIndex =  [7], finalIndex =  [10].
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 =
[4], initIndex =  [11], finalIndex =  [-1].
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 [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 [0] with value =
[0 PCMU/8000/1].
SdpUtils - createInitialSdp -> Audio codec has no especific media attributes.
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 - getFormatList -> Init...
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 = [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 = [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 - 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 - getFormatList -> formatList = [8 18 0 111].
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=1002 0 0 IN IP4 127.0.0.1
s=Session SIP/SDP
c=IN IP4 127.0.0.1
t=0 0
m=audio 3000 RTP/AVP 8 18 0 111
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000/1
a=rtpmap:111 ILBC/8000/1
a=fmtp:111 mode=30
a=ptime:20

SIPUser register
RegisterAgent: Registering contact <sip:600666@127.0.0.1:5076> (it expires
in 3600 secs)
RegisterAgent: onTransFailureResponse start: 
RegisterAgent: onTransFailureResponse 401 or 407: 
RegisterAgent: Registration success: 
SIP Registration success 200 OK

Original issue reported on code.google.com by geniuske...@gmail.com on 27 Aug 2009 at 8:15

GoogleCodeExporter commented 9 years ago
i have same problem

Original comment by site...@gmail.com on 26 Oct 2010 at 7:35

GoogleCodeExporter commented 9 years ago
i have same problem again
pls help me

Original comment by FidelHu...@gmail.com on 26 Oct 2010 at 8:07

GoogleCodeExporter commented 9 years ago
Same problem here.

Original comment by pozsarba...@gmail.com on 10 Nov 2010 at 9:39

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/red5phone/issues/detail?id=133&start=100

Hack posted here.

Original comment by ser...@gmail.com on 17 Nov 2010 at 11:58