Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException while parsing SDP #64

Closed
hrosa opened this issue Dec 14, 2015 · 0 comments
Closed

NullPointerException while parsing SDP #64

hrosa opened this issue Dec 14, 2015 · 0 comments
Assignees
Labels

Comments

@hrosa
Copy link
Contributor

hrosa commented Dec 14, 2015

The SDP parser throws a NullPointerException when processing the following message:
v=0
o=sbc-SMART-01a 1450021652720 1450021652720 IN IP4 203.87.254.164
s=sip call
c=IN IP4 203.87.254.172
t=0 0
m=audio 38832 RTP/AVP 8 18
a=ptime:20
a=fmtp:18 annexb=no

Here is the associated stack trace:

2015-12-13 15:41:41,270 ERROR CreateConnectionCmd Could not set remote peer
java.io.IOException: org.mobicents.media.server.io.sdp.SdpException: Could not parse SDP: a=fmtp:18 annexb=no
at org.mobicents.media.core.connections.RtpConnectionImpl.setOtherParty(RtpConnectionImpl.java:165)
at org.mobicents.media.core.connections.RtpConnectionImpl.setOtherParty(RtpConnectionImpl.java:171)
at org.mobicents.media.server.mgcp.controller.MgcpConnection.setOtherParty(MgcpConnection.java:128)
at org.mobicents.media.server.mgcp.tx.cmd.CreateConnectionCmd$Preprocessor.perform(CreateConnectionCmd.java:287)
at org.mobicents.media.server.scheduler.Task.run(Task.java:122)
at org.mobicents.media.server.scheduler.PriorityQueueScheduler$WorkerThread.run(PriorityQueueScheduler.java:424)
Caused by: org.mobicents.media.server.io.sdp.SdpException: Could not parse SDP: a=fmtp:18 annexb=no
at org.mobicents.media.server.io.sdp.SessionDescriptionParser.parse(SessionDescriptionParser.java:102)
at org.mobicents.media.core.connections.RtpConnectionImpl.setOtherParty(RtpConnectionImpl.java:161)
... 5 more
Caused by: java.lang.NullPointerException
at org.mobicents.media.server.io.sdp.SessionDescriptionParser.convertAndApplyAttribute(SessionDescriptionParser.java:155)
at org.mobicents.media.server.io.sdp.SessionDescriptionParser.parse(SessionDescriptionParser.java:88)
... 6 more
2015-12-13 15:41:41,271 ERROR MGCP tx=147483660 Failed
org.mobicents.media.server.mgcp.tx.cmd.MgcpCommandException
at org.mobicents.media.server.mgcp.tx.cmd.CreateConnectionCmd$Preprocessor.perform(CreateConnectionCmd.java:290)
at org.mobicents.media.server.scheduler.Task.run(Task.java:122)
at org.mobicents.media.server.scheduler.PriorityQueueScheduler$WorkerThread.run(PriorityQueueScheduler.java:424)

@hrosa hrosa added the bug label Dec 14, 2015
@hrosa hrosa self-assigned this Dec 14, 2015
@hrosa hrosa closed this as completed in 4320b85 Dec 14, 2015
gvagenas added a commit to RestComm/Restcomm-Connect that referenced this issue Dec 14, 2015
gvagenas added a commit to RestComm/Restcomm-Connect that referenced this issue Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant