> From: Guan Xsun [[email protected]]
>
> A SIP gateway send A INVITE to our Sip Server with the From header:
>
> <sip:\x13\x12\x1aY]]A]\001:@10.96.116.20>;tag=13316249421331624526-1 .
>
> I want to know whether this From header is valid?
Given how this message is formatted, I believe that there are two
different questions that you might be asking.
If the header in question is:
From: <sip:\x13\x12\x1aY]]A]\001:@10.96.116.20>;tag=13316249421331624526-1
the answer is No, because in the URI, the "user" part (RFC 3261
section 25.1) is "\x13\x12\x1aY]]A]\001", and "\" is not allowed to
appear in a "user".
Alternatively, it is possible that what I see in your message as
"\x13", "\x12", "\x1a", and "\001" are escape sequences representing
octets with the decimal values 19, 18, 26, and 1, respectively. (And
the remaining characters represent single octets via ASCII.) Under
that interpretation, the sequence of octets is a valid UTF-8
encoding, although the 4 escape sequences represent non-graphic code
points (= control characters). But control characters are not allowed
in "user" parts.
So using either interpretation, the header is not valid.
It appears that the user attempted to set the UA's "user name", but
failed to do so correctly because of a mis-interpretation of the
encoding of the characters. Perhaps a two-octet encoding of
characters was transmitted to a receiver that expected a one-octet or
UTF-8 encoding. (SIP header lines are sequences of Unicode characters
encoded via UTF-8.)
Dale
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors