Status: New
Owner: ----
Labels: Priority-Medium
New issue 164 by
jmckinne...@gmail.com: Via Parser fails if "from" has '_'
https://code.google.com/p/jain-sip/issues/detail?id=164
What steps will reproduce the problem?
1. Name your local sip.local.hostname to something with an underscore ('_').
2. Send a request such as REGISTER
3. Response is returned with a Via header containing the sent
sip.local.hostname
What is the expected output? What do you see instead?
Expect to see a parsed response message/object model. Receive
ParseException.
What version of the product are you using? On what operating system?
1.2.2380 on Windows 8.1 with JDK 1.8.0.51
Please provide any additional information below.
The below Via header will NOT parse. Johns_PC is a perfectly valid/allowed
name for a windows PC but JAIN-SIP will not process it.
Uncomment the main method in ViaParser and add this to the array of header
examples. It will fail. Remove the underscore from Johns_PC and it will
succeed.
Via: SIP/2.0/TLS
Johns_PC:443;branch=z9hG4bK-353536-6950d4a397633da572ba856c11219306;received=134.170.115.251;ms-received-port=1516;ms-received-cid=DF565200
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings