Small fix for Asterisk10 to reject skinny devices with skinny
firmware version17 and above.
Review: https://reviewboard.asterisk.org/r/1497/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@339722
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
uint32_t ip;
uint32_t type;
uint32_t maxStreams;
+ uint32_t space;
+ uint8_t protocolVersion;
+ char space2[3] ;
};
#define IP_PORT_MESSAGE 0x0002
socklen_t slen;
int instance;
+ if (letohl(req->data.reg.protocolVersion) >= 17) {
+ ast_log(LOG_WARNING, "Asterisk10 does not support skinny protocol 17 and above. Rejecting device.\n");
+ return 0;
+ }
+
AST_LIST_LOCK(&devices);
AST_LIST_TRAVERSE(&devices, d, list){
struct ast_sockaddr addr;