This is a very good question - one I too have wondered about and don't 
know the answer to.

I speculate that the best one could do is to replicate the headers in 
the response and hope for the best. The most troublesome one is probably 
Via. You really have to be able to interpret that to know where to send 
the response.

In my experience, stacks will typically decode (parse) a message into an 
internal form, then manipulate the internal form to create a response, 
and encode that again when sending the response. Trying to preserve 
malformed headers is difficult using this approach. (Consider what to do 
with 'CSeq: XYZ' if you intend to carry the cseq value as a binary 
number in your stack.)

In any case there is a good chance that the response won't be able to be 
processed either.

        Paul

chom sri wrote:
> Hi,
>    
>     RFC 3261 Says that 400  Bad Request should be formed if there is an error 
> in Mandatory headers like To,From,Via and Callid etc or if the Mandatory 
> headers are missing.
>    
>   Can someone tell me how to form the 400 message with these malformed 
> headers?
>    
>   Regards,
>   Srikanth.
>    
> 
> 
>                               
> ---------------------------------
>  Jiyo cricket on Yahoo! India cricket
> _______________________________________________
> Sip-implementors mailing list
> [email protected]
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
> 
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to