From: Mark Spencer Date: Tue, 17 Aug 2004 14:26:25 +0000 (+0000) Subject: Can't check incoming sip debug until after we receive the packet! X-Git-Tag: 1.0.0~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3385ecc1128562ae26b8036bcdca41aba4fecbfe;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 81eff91853..836fbac47f 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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)