Possible bug in Subject Headers
Andrew T Gin <[email protected]> Mon, 23 Apr 2007 12:25:05 +1200
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Organization | University of Canterbury | Te Whare Wananga o Waitaha |
| Message-ID | <[email protected]> |
Hi Ranga, when you mean you want us to use the user list on java.net, are you referring to [email protected]? I think I may have come across a possible bug when it comes to adding subject headers. Can the subject header change midway through a session? I have a session established with a subject header. I add SubjectHeaders using request.addHeader(subjectHeader). However when I come to create another request (using the same session), and I again add a subject header with a different subject: request.addHeader(subjectHeader) the subject header added is the previous one, not the newly created one! At the moment I am getting around this by using request.addHeader(subjectHeader); //this adds the previously used subject header, even though a new one was created! request.removeHeader(SubjectHeader.NAME); //to remove the subject header just added request.addHeader(subjectHeader); //adding the new one a second time adds it correctly. The RFC does not state that Subject headers cannot change during a session/call (section 20.36 of RFC 3261), however it may allude to it "...The Subject header field provides a summary or indicates the nature of the call ..." Jeroem, your suggestion of removing the via header works! thanks a lot!