amitpahune / jain-sip

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

Cannot add multiple reason headers #133

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
See https://code.google.com/p/sipservlets/issues/detail?id=216

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.

Original issue reported on code.google.com by jean.deruelle on 2 May 2014 at 3:58

GoogleCodeExporter commented 8 years ago
Linked jsip repo issue id https://java.net/jira/browse/JSIP-460

Original comment by jean.deruelle on 2 May 2014 at 3:58

GoogleCodeExporter commented 8 years ago
This issue was closed by revision c5f76d1cfcdb.

Original comment by jean.der...@telestax.com on 2 May 2014 at 3:59