From: Sébastien G. <sgi...@gm...> - 2012-07-18 14:17:41
|
It seems that padding apply to the reason phrase of the 401 ErrorCode is not accurate When doing an ALLOCATE request, turnserver returns me an ERROR class message of type 401 with a reason phrase "Unauthorized" all is right as described in TURN RFC5766. In details, the response contains the following informations : Class 00 09 (ERROR-CODE) Length 00 14 (20 bytes) Reserved 00 00 Class 04 Code 01 Reason 55 6e 61 75 . 74 68 6f 72 . 69 7a 65 64 . 00 00 00 00 U n a u t h o r i z e d Everything is ok except the 00 00 00 00 padding at the end of the reason phrase which is not needed. Without it the length would be 16 bytes which is already a 32bits rounded value You can saw that behavior in Wireshark. |