Skip to content

Commit

Permalink
core: enhace error log for unexpected replies
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiusas committed Oct 31, 2023
1 parent 267b938 commit cc0ac00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion forward.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,11 @@ int forward_reply(struct sip_msg* msg)
|| (msg->via2==0) || (msg->via2->error!=PARSE_OK))
{
/* no second via => error */
LM_ERR("no 2nd via found in reply\n");
LM_ERR("no 2nd via found in [%.*s] [%.*s] reply from [%s] for callid [%.*s]\n",
msg->first_line.u.reply.status.len, msg->first_line.u.reply.status.s,
msg->cseq->body.len, msg->cseq->body.s,
ip_addr2a(&msg->rcv.src_ip),
msg->callid->body.len, msg->callid->body.s);
goto error;
}

Expand Down

0 comments on commit cc0ac00

Please sign in to comment.