On Thu, 2008-02-14 at 18:46 +0530, Prakash Mariasusai, TLS-Chennai wrote: > Hi, > > We would like to know the behavior of s SIP Client in the below error > scenario: > > An UAS, on receiving an INVITE, sends a TCP packet containing two SIP > responses in ONE Packet. Here the first SIP Response has a PARSE error, > while the SECOND SIP Response contains a valid SIP Response. > > Note that in the first Response, the content-length is CORRECTLY formed, > whereas other header - Cseq is malformed (it is "Cseq: 1234 1234" , > instead of "Cseq: 1234 INVITE") > > > UAC UAS (erroneous test UA) > |-----INV (tcp) ------------------------------>| > | | > |<==100+200 in 1 TCP pkt=======================| > | > a) UAC to Drop 100 and accept 200? (or) > b) UAC to Drop 100 and 200 > > Our behavior Vs Others: > ---------------------- > We expect the UAC to accept the SECOND response (a), > but some implementations drop the whole TCP packet due to PARSE error in > first SIP message. (b)
There is no such thing as a TCP 'packet': TCP is a stream - the IP packet boundaries are never significant when using TCP. So long as the SIP framing in the first message (the various body-delimiting mechanisms) are valid so that it is possible to determine where the next message starts, the two messages should be treated as independent. _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
