summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-10-10 07:40:27 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-10-10 07:40:27 +0000
commit15fcc45c4efc1c6b1692716c5a479dcec49af165 (patch)
treed24ac597574fba65e63dbe42dda43627679751eb
parentf54fc75796f32637e376feea0f4af87dd1a78510 (diff)
improve formatting of SIP packets when dumped to the verbose
output stream, so it is easier to find them in the log. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index c7157056d..0c3436baa 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2096,7 +2096,7 @@ static int send_response(struct sip_pvt *p, struct sip_request *req, enum xmitty
if (sip_debug_test_pvt(p)) {
const struct sockaddr_in *dst = sip_real_dst(p);
- ast_verbose("%sTransmitting (%s) to %s:%d:\n%s\n---\n",
+ ast_verbose("\n<--- %sTransmitting (%s) to %s:%d --->\n%s\n<------------>\n",
reliable ? "Reliably " : "", sip_nat_mode(p),
ast_inet_ntoa(dst->sin_addr),
ntohs(dst->sin_port), req->data);
@@ -14268,7 +14268,7 @@ static int sipsock_read(int *id, int fd, short events, void *ignore)
if (pedanticsipchecking)
req.len = lws2sws(req.data, req.len); /* Fix multiline headers */
if (ast_test_flag(&req, SIP_PKT_DEBUG))
- ast_verbose("\n<-- SIP read from %s:%d: \n%s\n", ast_inet_ntoa(sin.sin_addr), ntohs(sin.sin_port), req.data);
+ ast_verbose("\n<--- SIP read from %s:%d --->\n%s\n<------------->\n", ast_inet_ntoa(sin.sin_addr), ntohs(sin.sin_port), req.data);
parse_request(&req);
req.method = find_sip_method(req.rlPart1);