mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
parse error response for code to only change roles on 487
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user