diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-14 12:32:46 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-14 12:32:46 +0000 |
commit | b59f34d960e3db46693648630a3b4dc0bce9558d (patch) | |
tree | ce9ff08f522106dcb1cafc677b53eb068c1615cb /channels/chan_sip.c | |
parent | 2b41d1ee702176bb35076eefa6c37de1e92fa91f (diff) |
Adding a new debug line for issue #7351 - trying to find where an ACK can overwrite the initreq...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47599 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4985677dc..718de16e3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1631,14 +1631,16 @@ static const char *referstatus2str(enum referstatus rstatus) a dialog */ static void initialize_initreq(struct sip_pvt *p, struct sip_request *req) { - if (p->initreq.headers && option_debug) { - ast_log(LOG_DEBUG, "Initializing already initialized SIP dialog %s (presumably reinvite)\n", p->callid); + if (option_debug) { + if (p->initreq.headers) + ast_log(LOG_DEBUG, "Initializing already initialized SIP dialog %s (presumably reinvite)\n", p->callid); + ast_log(LOG_DEBUG, "Initializing initreq for method %s - callid %s\n", sip_methods[req->method].text, p->callid); } /* Use this as the basis */ copy_request(&p->initreq, req); parse_request(&p->initreq); if (ast_test_flag(req, SIP_PKT_DEBUG)) - ast_verbose("%d headers, %d lines\n", p->initreq.headers, p->initreq.lines); + ast_verbose("Initreq: %d headers, %d lines\n", p->initreq.headers, p->initreq.lines); } |