Add some more information to SIP history

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18370 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson 2006-04-07 19:25:19 +00:00
parent 7089dc1341
commit 8cd506cdfd

View file

@ -1521,7 +1521,7 @@ static int send_response(struct sip_pvt *p, struct sip_request *req, enum xmitty
if (recordhistory) { if (recordhistory) {
struct sip_request tmp; struct sip_request tmp;
parse_copy(&tmp, req); parse_copy(&tmp, req);
append_history(p, reliable ? "TxRespRel" : "TxResp", "%s / %s", tmp.data, get_header(&tmp, "CSeq")); append_history(p, reliable ? "TxRespRel" : "TxResp", "%s / %s - %s", tmp.data, get_header(&tmp, "CSeq"), sip_methods[req->method].text);
} }
res = (reliable) ? res = (reliable) ?
__sip_reliable_xmit(p, seqno, 1, req->data, req->len, (reliable == XMIT_CRITICAL), req->method) : __sip_reliable_xmit(p, seqno, 1, req->data, req->len, (reliable == XMIT_CRITICAL), req->method) :
@ -1546,7 +1546,7 @@ static int send_request(struct sip_pvt *p, struct sip_request *req, enum xmittyp
if (recordhistory) { if (recordhistory) {
struct sip_request tmp; struct sip_request tmp;
parse_copy(&tmp, req); parse_copy(&tmp, req);
append_history(p, reliable ? "TxReqRel" : "TxReq", "%s / %s", tmp.data, get_header(&tmp, "CSeq")); append_history(p, reliable ? "TxReqRel" : "TxReq", "%s / %s - %s", tmp.data, get_header(&tmp, "CSeq"), sip_methods[req->method].text);
} }
res = (reliable) ? res = (reliable) ?
__sip_reliable_xmit(p, seqno, 0, req->data, req->len, (reliable > 1), req->method) : __sip_reliable_xmit(p, seqno, 0, req->data, req->len, (reliable > 1), req->method) :
@ -11574,7 +11574,7 @@ retrylock:
} }
p->recv = sin; p->recv = sin;
if (recordhistory) /* This is a response, note what it was for */ if (recordhistory) /* This is a response, note what it was for */
append_history(p, "Rx", "%s / %s", req.data, get_header(&req, "CSeq")); append_history(p, "Rx", "%s / %s %s", req.data, get_header(&req, "CSeq"), req.rlPart2);
nounlock = 0; nounlock = 0;
if (handle_request(p, &req, &sin, &recount, &nounlock) == -1) { if (handle_request(p, &req, &sin, &recount, &nounlock) == -1) {
/* Request failed */ /* Request failed */