Disclaimer: This repository is a git-svn mirror of the project found at http://java.net/projects/jsip whose original repository is developed collaboratively by the Advanced Networking Technologies Division at the National Institute of Standards and Technology (NIST) - an agency of the United States Department of Commerce and by a community of individual and enterprise contributors. TeleStax, Inc. will perform some productization work, new features experimentation branches, etc for its TelScale jSIP product that doesn't concern the community from the main repository hence this git repository.
Although SDP RFC 4566 does not limit the sess-id and sess-version field the NIST implementation of gov.nist.javax.sdp.parser.OriginFieldParser limits the fields to 18 digits.
This has been done because the jain.sip API used a Java long field for the session-id and session-version.
Unfortunately the JAVA long allows up to 19 digits (see Long.MAX_VALUE) which means that the SDP parser does not allow the full possible range of values to be used with JAVA long.
The Mozilla Firefox Browser in WebRTC environment created SDP containing the session-id value using the full range for the long value and therefore the first digit may be cut by the current code of OriginFieldParser.java.
My attached simple patch allows to use the full value range of Long.MAX_VALUE.
Although SDP RFC 4566 does not limit the sess-id and sess-version field the NIST implementation of gov.nist.javax.sdp.parser.OriginFieldParser limits the fields to 18 digits. This has been done because the jain.sip API used a Java long field for the session-id and session-version. Unfortunately the JAVA long allows up to 19 digits (see Long.MAX_VALUE) which means that the SDP parser does not allow the full possible range of values to be used with JAVA long. The Mozilla Firefox Browser in WebRTC environment created SDP containing the session-id value using the full range for the long value and therefore the first digit may be cut by the current code of OriginFieldParser.java. My attached simple patch allows to use the full value range of Long.MAX_VALUE.