man2015 / sipservlets

Automatically exported from code.google.com/p/sipservlets
0 stars 0 forks source link

SipSessionKey parsing breaks on ":" in CallId #264

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Send an INVITE with ":" in the Call Id (this is valid according to the RFC)
2. Store the SipSession id using getSession().getId()
3. Try to retrieve the SipSession using SipApplicationSession.getSipSession(id)

What is the expected output? What do you see instead?
The expected output is the SipSession object corresponding to the id. Instead 
we see null, even though the SipSession exists. This can be confirmed by 
iterating through the SipSessions using SipApplicationSession.getSessions()

What version of the product are you using? On what operating system?
MSS 2.1.0 on Linux

Please provide any additional information below.
The reason this happens is that ":" is used as a session key separator. When 
':' appears in the Call Id, wrong values are assigned to the various components 
of the SipSessionKey. 

Original issue reported on code.google.com by lokare.a...@gmail.com on 10 Apr 2014 at 9:20

GoogleCodeExporter commented 9 years ago
This issue was updated by revision f8fe7e1b1ee4.

Fix + Non regression test

Original comment by jean.der...@telestax.com on 18 Apr 2014 at 10:17

GoogleCodeExporter commented 9 years ago

Original comment by jean.deruelle on 18 Apr 2014 at 10:17

GoogleCodeExporter commented 9 years ago

Original comment by jean.der...@telestax.com on 25 Aug 2014 at 10:52