mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 12:18:18 +00:00
backport change from the iaxclient sf repository rev 567
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5153 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
310037dff3
commit
2ae95b3754
@ -2993,6 +2993,7 @@ struct iax_event *iax_net_process(unsigned char *buf, int len, struct sockaddr_i
|
||||
if (len < sizeof(struct ast_iax2_full_hdr)) {
|
||||
DEBU(G "Short header received from %s\n", inet_ntoa(sin->sin_addr));
|
||||
IAXERROR "Short header received from %s\n", inet_ntoa(sin->sin_addr));
|
||||
return NULL;
|
||||
}
|
||||
/* Only allow it to make new sessions on types where that makes sense */
|
||||
if ((fh->type == AST_FRAME_IAX) && ((subclass == IAX_COMMAND_NEW) ||
|
||||
@ -3015,6 +3016,7 @@ struct iax_event *iax_net_process(unsigned char *buf, int len, struct sockaddr_i
|
||||
if (len < sizeof(struct ast_iax2_mini_hdr)) {
|
||||
DEBU(G "Short header received from %s\n", inet_ntoa(sin->sin_addr));
|
||||
IAXERROR "Short header received from %s\n", inet_ntoa(sin->sin_addr));
|
||||
return NULL;
|
||||
}
|
||||
/* Miniature, voice frame */
|
||||
session = iax_find_session(sin, ntohs(fh->scallno), 0, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user