Affects Version/s: None
Fix Version/s: None
1.Call addHeader to add a Reason header for SIP
2.Call addHeader to add a Reason header for Q.850
3.Send the message
What is the expected output? What do you see instead?
I expect to see a message being sent with both reason headers (as per RFC 3326). Only the first header is present in the outgoing message.
Please provide any additional information below.
The problem is in gov.nist.javax.sip.message.ListMap - it does not include ReasonList in the table of headers that may contain more than one item (headerListTable). When addHeader is called in gov.nist.javax.sip.message.SIPMessage, it calls attachHeader which asks ListMap if the Reason header may be a list. ListMap returns no and step 2 above silently drops the second header. As the header is not added to the message, the header is not included when the message is sent.