aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-07 19:25:19 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-07 19:25:19 +0000
commit65bae3d66ba782676486a58f6219002e5a31c0d8 (patch)
treebab073b4b1ec69c052731558e257f4d510850d1d /channels
parent3c9910c57ea93ad5c743ee7d4384f74df5f462f1 (diff)
Add some more information to SIP history
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18370 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 196e60f08..0cce4226b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -1521,7 +1521,7 @@ static int send_response(struct sip_pvt *p, struct sip_request *req, enum xmitty
if (recordhistory) {
struct sip_request tmp;
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) ?
__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) {
struct sip_request tmp;
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) ?
__sip_reliable_xmit(p, seqno, 0, req->data, req->len, (reliable > 1), req->method) :
@@ -11574,7 +11574,7 @@ retrylock:
}
p->recv = sin;
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;
if (handle_request(p, &req, &sin, &recount, &nounlock) == -1) {
/* Request failed */