Hi to all
i’m experiencing problem with red5phone SIP registration.
The problem seems to be that the phone sends REGISTER message from 127.0.0.1
My test environment is on 3 machine:
One with Asterisk
One with RED5 + red5phone
One with the browser
On the RED5 server i’ve installed:
- jdk1.6.0_13
- red5-0.8.RC2-build-hudson-red5_jdk6_stable-27
- sip application (both from svn and from http://red5phone.googlecode.com/files/sip.zip)
I’ve also tried red5 7 and red5 8RC1 with the same results
The problem seems to be the from SdpUtils:
viaAddress = [127.0.1.1]
Here there are log of RED5:
SIPUser Constructor: sip port 5070 rtp port:3000
SIPUser login
SipUserAgent - initSessionDescriptor -> Init...
SdpUtils - createInitialSdp -> Init...
SdpUtils - createInitialSdp -> userName = [203], viaAddress = [127.0.1.1], audioPort = [3000], 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=203 0 0 IN IP4 127.0.1.1
s=Session SIP/SDP
c=IN IP4 127.0.1.1
t=0 0
m=audio 3000 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...
SIPUser register
RegisterAgent: Registering contact <sip:203@127.0.1.1:5070> (it expires in 3600 secs)
RegisterAgent: Registration failure: No response from server.
SIP Registration failure Timeout
[INFO] [pool-4-thread-10] org.red5.server.adapter.MultiThreadedApplicationAdapter - W3C x-category:session x-event:disconnect c-ip:192.168.187.212 c-client-id:0
SIPUser close1
SIPUser hangup
SIPUser closeStreams
RTMPUser stopStream
SIPUser unregister
RegisterAgent: Unregistering contact <sip:203@127.0.1.1:5070>
SipUserAgent - hangup -> Init...
SipUserAgent - closeMediaApplication -> Init...
SIPUser provider.halt
RegisterAgent: Registration failure: No response from server.
SIP Registration failure Timeout
Any help?
Thanks