gio mar 13 16:44:17 CET 2003

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@643 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matteo Brancaleoni
2003-03-13 15:44:31 +00:00
parent 4ebaef0e1c
commit d9848d6c49
4 changed files with 31 additions and 4 deletions

View File

@@ -3500,6 +3500,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
int dcallno = 0;
struct ast_iax2_full_hdr *fh = (struct ast_iax2_full_hdr *)buf;
struct ast_iax2_mini_hdr *mh = (struct ast_iax2_mini_hdr *)buf;
struct ast_iax2_meta_hdr *meta = (struct ast_iax2_meta_hdr *)buf;
struct ast_iax2_frame fr, *cur;
struct ast_frame f;
struct ast_channel *c;
@@ -3522,6 +3523,11 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
ast_log(LOG_WARNING, "midget packet received (%d of %d min)\n", res, sizeof(struct ast_iax2_mini_hdr));
return 1;
}
if (meta->zeros == 0) {
/* This is a a meta header */
ast_log(LOG_DEBUG, "Meta header Command = %d!\n", meta->metacmd);
return 1;
}
#ifdef DEBUG_SUPPORT
if (iaxdebug)
showframe(NULL, fh, 1, &sin);