Can't check incoming sip debug until after we receive the packet!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-08-17 14:26:25 +00:00
parent 5d589eb866
commit 3385ecc112
1 changed files with 2 additions and 1 deletions

View File

@ -7412,7 +7412,7 @@ static int sipsock_read(int *id, int fd, short events, void *ignore)
int len;
int nounlock;
int recount = 0;
int debug=sip_debug_test_addr(&sin);
int debug;
len = sizeof(sin);
memset(&req, 0, sizeof(req));
@ -7426,6 +7426,7 @@ static int sipsock_read(int *id, int fd, short events, void *ignore)
}
req.data[res] = '\0';
req.len = res;
debug = sip_debug_test_addr(&sin);
if (debug)
ast_verbose("\n\nSip read: \n%s\n", req.data);
if (pedanticsipchecking)