[Bulk] [sip-comm-dev] net.java.sip.communicator.media.MediaException: Incorrect SDP data!


#1

hi

I get below exception when connecting through my sip proxy server.

net.java.sip.communicator.media.MediaException: Incorrect SDP data!
at net.java.sip.communicator.media.MediaManager.openMediaStreams(MediaManager.java:307)
at net.java.sip.communicator.SipCommunicator.callStateChanged(SipCommunicator.java:758)
at net.java.sip.communicator.sip.Call.fireCallStatusChangedEvent(Call.java:250)

But the problem actually seems to be with audio receiving port

m=audio 3514235196 RTP/AVP 0 3 4 5 6 8 15 18
m=video 35198 RTP/AVP 26 34 31
a=recvonly
a=nortpproxy:yesjava.lang.NumberFormatException: For input string: "3514235196"

Complete trace of the exception is given below. Please help me resolve this problem.

Thanks
Rajesh

···

-----------------------------------------------------------------------------------------------------------------

processResponse
<message
from="69.229.23.57:5060"
to="192.168.1.223:5060"
time="1131586513092"
isSender="false"
statusMessage="normal processing"
transactionId="z9hg4bk87a3a2cf2f2d394b0363bbc1b4d454d3"
firstLine="SIP/2.0 200 OK"
callId="bd4b8f85fd798595601abb20afea31a6@192.168.1.223"
debugLine="0"

<![CDATA[SIP/2.0 200 OK
Record-Route: <sip:test11@69.229.23.57:5060;nat=yes;ftag=22445676;lr=on>
Call-ID: bd4b8f85fd798595601abb20afea31a6@192.168.1.223
CSeq: 2 INVITE
To: <sip:test11@69.229.23.57>;tag=26081910
Via: SIP/2.0/UDP 192.168.1.223:5060;rport=5060;received=68.225.20.250;branch=z9hG4bK87a3a2cf2f2d394b0363bbc1b4d454d3
Max-Forwards: 16

From: "test11" <sip:test12@iptel.org:5060;transport=udp>;tag=22445676

Content-Type: application/sdp
Contact: "test12" <sip:68.225.20.250:6022;transport=udp>
Content-Length: 200
]]>
</message>
45556 [EventScannerThread] TRACE sip.SipManager - [entry] processResponse
45566 [EventScannerThread] DEBUG sip.SipManager - received response=javax.sip.ResponseEvent[source=gov.nist.javax.sip.SipProviderImpl@41a12f]
45596 [EventScannerThread] TRACE sip.CallProcessing - [entry] processInviteOK
45596 [EventScannerThread] TRACE sip.CallDispatcher - [entry] findCall
45596 [EventScannerThread] TRACE sip.CallDispatcher - [exit] findCall
<message
from="192.168.1.223:5060"
to="69.229.23.57:5060"
time="1131586513493"
isSender="true"
transactionId="322e3136382e312e3232333a3530363"
callId="bd4b8f85fd798595601abb20afea31a6@192.168.1.223"
firstLine="ACK sip:68.225.20.250:6022;transport=udp SIP/2.0"
debugLine="0"

<![CDATA[ACK sip:68.225.20.250:6022;transport=udp SIP/2.0
Call-ID: bd4b8f85fd798595601abb20afea31a6@192.168.1.223
CSeq: 2 ACK
To: <sip:test11@69.229.23.57>;tag=26081910
Via: SIP/2.0/UDP 192.168.1.223:5060;branch=322e3136382e312e3232333a3530363
Max-Forwards: 70

From: "test11" <sip:test12@iptel.org:5060;transport=udp>;tag=22445676

Route: <sip:test11@69.229.23.57:5060;nat=yes;ftag=22445676;lr=on>
Content-Length: 0
]]>
</message>
45656 [EventScannerThread] DEBUG sip.Call - setting remote description to [v=0
o=Jaime_Polly 0 0 IN IP4 192.168.1.169
s=-
c=IN IP4 69.229.23.5769.229.23.57
t=0 0
m=audio 3514235196 RTP/AVP 0 3 4 5 6 8 15 18
m=video 35198 RTP/AVP 26 34 31
a=recvonly
a=nortpproxy:yes
]
45666 [EventScannerThread] TRACE sip.Call - [entry] setState
45676 [EventScannerThread] DEBUG sip.Call - setting call status to Connected
45686 [EventScannerThread] TRACE communicator.Interlocutor - [entry] callStateChanged
45686 [EventScannerThread] TRACE communicator.Interlocutor - [exit] callStateChanged
45696 [EventScannerThread] TRACE communicator.SipCommunicator - [entry] callStateChanged
45716 [EventScannerThread] TRACE media.MediaManager - [entry] openMediaStreams
45716 [EventScannerThread] DEBUG media.MediaManager - sdpData arg - v=0
o=Jaime_Polly 0 0 IN IP4 192.168.1.169
s=-
c=IN IP4 69.229.23.5769.229.23.57
t=0 0
m=audio 3514235196 RTP/AVP 0 3 4 5 6 8 15 18
m=video 35198 RTP/AVP 26 34 31
a=recvonly
a=nortpproxy:yes
java.lang.NumberFormatException: For input string: "3514235196"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at gov.nist.javax.sdp.parser.MediaFieldParser.mediaField(MediaFieldParser.java:43)
at gov.nist.javax.sdp.parser.MediaFieldParser.parse(MediaFieldParser.java:104)
at gov.nist.javax.sdp.parser.SDPAnnounceParser.parse(SDPAnnounceParser.java:69)
at javax.sdp.SdpFactory.createSessionDescription(SdpFactory.java:111)
at net.java.sip.communicator.media.MediaManager.openMediaStreams(MediaManager.java:302)
at net.java.sip.communicator.SipCommunicator.callStateChanged(SipCommunicator.java:758)
at net.java.sip.communicator.sip.Call.fireCallStatusChangedEvent(Call.java:250)
at net.java.sip.communicator.sip.Call.setState(Call.java:156)
at net.java.sip.communicator.sip.CallProcessing.processInviteOK(CallProcessing.java:236)
at net.java.sip.communicator.sip.SipManager.processResponse(SipManager.java:1673)
at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:236)
at gov.nist.javax.sip.EventScanner.run(EventScanner.java:352)
at java.lang.Thread.run(Unknown Source)
<message
from="192.168.1.223:5060"
to="69.229.23.57:5060"
time="1131586513773"
isSender="true"
transactionId="322e3136382e312e3232333a3530363"
callId="bd4b8f85fd798595601abb20afea31a6@192.168.1.223"
firstLine="ACK sip:68.225.20.250:6022;transport=udp SIP/2.0"
debugLine="0"

<![CDATA[ACK sip:68.225.20.250:6022;transport=udp SIP/2.0
Call-ID: bd4b8f85fd798595601abb20afea31a6@192.168.1.223
CSeq: 2 ACK
To: <sip:test11@69.229.23.57>;tag=26081910
Via: SIP/2.0/UDP 192.168.1.223:5060;branch=322e3136382e312e3232333a3530363
Max-Forwards: 70

From: "test11" <sip:test12@iptel.org:5060;transport=udp>;tag=22445676

Route: <sip:test11@69.229.23.57:5060;nat=yes;ftag=22445676;lr=on>
Content-Length: 0
]]>
</message>
java.text.ParseException: m=audio 3514235196 RTP/AVP 0 3 4 5 6 8 15 18
at gov.nist.javax.sdp.parser.MediaFieldParser.mediaField(MediaFieldParser.java:97)
at gov.nist.javax.sdp.parser.MediaFieldParser.parse(MediaFieldParser.java:104)
at gov.nist.javax.sdp.parser.SDPAnnounceParser.parse(SDPAnnounceParser.java:69)
at javax.sdp.SdpFactory.createSessionDescription(SdpFactory.java:111)
at net.java.sip.communicator.media.MediaManager.openMediaStreams(MediaManager.java:302)
at net.java.sip.communicator.SipCommunicator.callStateChanged(SipCommunicator.java:758)
at net.java.sip.communicator.sip.Call.fireCallStatusChangedEvent(Call.java:250)
at net.java.sip.communicator.sip.Call.setState(Call.java:156)
at net.java.sip.communicator.sip.CallProcessing.processInviteOK(CallProcessing.java:236)
at net.java.sip.communicator.sip.SipManager.processResponse(SipManager.java:1673)
at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:236)
at gov.nist.javax.sip.EventScanner.run(EventScanner.java:352)
at java.lang.Thread.run(Unknown Source)
45926 [EventScannerThread] ERROR media.MediaManager - Incorrect SDP data!
javax.sdp.SdpParseException: Could not parse message
at javax.sdp.SdpFactory.createSessionDescription(SdpFactory.java:114)
at net.java.sip.communicator.media.MediaManager.openMediaStreams(MediaManager.java:302)
at net.java.sip.communicator.SipCommunicator.callStateChanged(SipCommunicator.java:758)
at net.java.sip.communicator.sip.Call.fireCallStatusChangedEvent(Call.java:250)
at net.java.sip.communicator.sip.Call.setState(Call.java:156)
at net.java.sip.communicator.sip.CallProcessing.processInviteOK(CallProcessing.java:236)
at net.java.sip.communicator.sip.SipManager.processResponse(SipManager.java:1673)
at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:236)
at gov.nist.javax.sip.EventScanner.run(EventScanner.java:352)
at java.lang.Thread.run(Unknown Source)
45936 [EventScannerThread] TRACE media.MediaManager - [exit] openMediaStreams
net.java.sip.communicator.media.MediaException: Incorrect SDP data!
at net.java.sip.communicator.media.MediaManager.openMediaStreams(MediaManager.java:307)
at net.java.sip.communicator.SipCommunicator.callStateChanged(SipCommunicator.java:758)
at net.java.sip.communicator.sip.Call.fireCallStatusChangedEvent(Call.java:250)
at net.java.sip.communicator.sip.Call.setState(Call.java:156)
at net.java.sip.communicator.sip.CallProcessing.processInviteOK(CallProcessing.java:236)
at net.java.sip.communicator.sip.SipManager.processResponse(SipManager.java:1673)
at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:236)
at gov.nist.javax.sip.EventScanner.run(EventScanner.java:352)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.sdp.SdpParseException: Could not parse message
at javax.sdp.SdpFactory.createSessionDescription(SdpFactory.java:114)
at net.java.sip.communicator.media.MediaManager.openMediaStreams(MediaManager.java:302)
... 8 more
57313 [EventScannerThread] TRACE communicator.SipCommunicator - [exit] callStateChanged
57313 [EventScannerThread] TRACE sip.Call - [exit] setState
57313 [EventScannerThread] TRACE sip.CallProcessing - [exit] processInviteOK
57323 [EventScannerThread] TRACE sip.SipManager - [exit] processResponse

---------------------------------
Enjoy this Diwali with Y! India Click here
    
---------------------------------
Enjoy this Diwali with Y! India Click here