showrav017 / jain-sip

Automatically exported from code.google.com/p/jain-sip
0 stars 0 forks source link

Via Parser fails if "from" has '_' #164

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by jmckinne...@gmail.com on 31 Jul 2015 at 12:36

GoogleCodeExporter commented 8 years ago
Can you raise the issue at https://java.net/jira/browse/JSIP ?
Also our git mirror has moved to https://github.com/Mobicents/jain-sip/

Original comment by jean.deruelle on 2 Aug 2015 at 3:09

GoogleCodeExporter commented 8 years ago
Sure.  Done.  JSIP-506 created.

Original comment by jmckinne...@gmail.com on 3 Aug 2015 at 12:55