summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-08-17 14:26:25 +0000
committerMark Spencer <markster@digium.com>2004-08-17 14:26:25 +0000
commit3385ecc1128562ae26b8036bcdca41aba4fecbfe (patch)
tree6d808322b436589b155fac125dc18fff9fb44a85 /channels
parent5d589eb8664921ab46fde5dc9aeed85d4fd602a3 (diff)
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
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 81eff9185..836fbac47 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)