RestComm / jain-sip

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.
http://www.restcomm.com/
144 stars 152 forks source link

ParseException in Contact header with URI parameters #168

Open jleren opened 7 years ago

jleren commented 7 years ago

Hi,

Im having problems with the following Contact header in a SUBSCRIBE message:

Contact: <sip:sip_wuclnzqtpt@10.200.40.113;x-tiu="VGhdczoaJVQaHyQ3HgYqHzsUGAIkHClLfF1nX1FYZVFeXXtDZVRcRmBYUgc7EjsdGRkmHFQGLQNNbhwSJFJYSnpdZ15aWGZZWV14QmRUX0ZiWA==">

I get the following ParserException: 017-11-03 11:30:12,157 - [debug] - SIPStackLogger - gov.nist.javax.sip.stack.UDPMessageChannel.handleException(UDPMessageChannel.java:679) [Parsing Issue [C@44fa741e Expecting >>>><<< got >>>"<<<]

As far as I can read from the SIP RFC, it is allowed to have this kind of parameter in a SIP URI, so I think this is an error in the ContactHeader parser.

I have been looking around the parser code myself, but have not been able to find a solution.

Kind Regards Jon Schøpzinsky

jaimecasero commented 6 years ago

let me create a test for this scenario,and come back with answer