diff options
author | Olle Johansson <oej@edvina.net> | 2006-04-07 20:19:44 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2006-04-07 20:19:44 +0000 |
commit | 815912457223a6e14a00de82c283b0fc0facad87 (patch) | |
tree | 31a32aa263a85d881cb878ffa7d0af65de783843 /channels | |
parent | aefba4ad7ddffb6856078a3b37e3a72d683d4fd9 (diff) |
-Fixing some debugging messages in history and console
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 85ec6dd03..328e0e9b4 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1521,7 +1521,8 @@ 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 - %s", tmp.data, get_header(&tmp, "CSeq"), sip_methods[req->method].text); + append_history(p, reliable ? "TxRespRel" : "TxResp", "%s / %s - %s", tmp.data, get_header(&tmp, "CSeq"), + tmp.method == SIP_RESPONSE ? tmp.rlPart2 : sip_methods[tmp.method].text); } res = (reliable) ? __sip_reliable_xmit(p, seqno, 1, req->data, req->len, (reliable == XMIT_CRITICAL), req->method) : @@ -1546,7 +1547,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 - %s", tmp.data, get_header(&tmp, "CSeq"), sip_methods[req->method].text); + append_history(p, reliable ? "TxReqRel" : "TxReq", "%s / %s - %s", tmp.data, get_header(&tmp, "CSeq"), sip_methods[tmp.method].text); } res = (reliable) ? __sip_reliable_xmit(p, seqno, 0, req->data, req->len, (reliable > 1), req->method) : @@ -9692,7 +9693,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru case 403: /* Forbidden */ /* First we ACK */ transmit_request(p, SIP_ACK, seqno, XMIT_UNRELIABLE, 0); - ast_log(LOG_WARNING, "Forbidden - wrong password on authentication for INVITE to '%s'\n", get_header(&p->initreq, "From")); + ast_log(LOG_WARNING, "Received response: \"Forbidden\" from '%s'\n", get_header(&p->initreq, "From")); if (!ignore && p->owner) ast_queue_control(p->owner, AST_CONTROL_CONGESTION); ast_set_flag(&p->flags[0], SIP_NEEDDESTROY); |