parse error response for code to only change roles on 487

This commit is contained in:
Anthony Minessale
2013-06-27 13:00:20 -05:00
parent a26ab6e3e0
commit cd56d774a0
3 changed files with 51 additions and 23 deletions
+21
View File
@@ -142,6 +142,27 @@ typedef struct {
} switch_stun_ip_t;
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
typedef struct {
unsigned padding:21;
unsigned code:3;
unsigned number:8;
char reason[764];
} switch_stun_error_code_t;
#else
typedef struct {
unsigned number:8;
unsigned code:3;
unsigned padding:21;
char reason[764];
} switch_stun_error_code_t;
#endif
/*!
\brief Writes random characters into a buffer
\param buf the buffer