[SIPSERVLET_SPEC-23] SipSession should include a getOriginalRequest method Created: 25/Oct/12  Updated: 09/Jan/14  Resolved: 09/Jan/14

Status: Closed
Project: sipservlet-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: bpulito Assignee: keith-lewis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This is currently accomplished by storing the request object as a session attribute. An example of how this would be useful is:

When using a B2BUA and getting a timeout on a PRACK there is no simple way to send a CANCEL to the UAC side of the B2BUA without searching through the message list for the outbound INVITE. Support for getOriginalRequest would simplify the coding of this.

There was some concern about memory consumption expressed when this idea was introduced that will need to be addressed.



 Comments   
Comment by keith-lewis [ 29/Aug/13 ]

Current proposal is to add a new method SipSession.getActiveInvite(UAMode mode)
This would avoid the need to search through the pending message list in order to find the request.

Once an ACK or final error response has been sent/received the INVITE would no longer be considered active allowing the memory footprint of the container to be reduced.

Generated at Fri Sep 30 16:02:11 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.