Change error message (imported from 1.4)
authorOlle Johansson <oej@edvina.net>
Mon, 27 Nov 2006 06:44:40 +0000 (06:44 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 27 Nov 2006 06:44:40 +0000 (06:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48032 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6e634c2..3c0cb21 100644 (file)
@@ -12331,7 +12331,8 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                        if (sipmethod == SIP_INVITE) {
                                /* First we ACK */
                                transmit_request(p, SIP_ACK, seqno, XMIT_UNRELIABLE, FALSE);
                        if (sipmethod == SIP_INVITE) {
                                /* First we ACK */
                                transmit_request(p, SIP_ACK, seqno, XMIT_UNRELIABLE, FALSE);
-                                       ast_log(LOG_WARNING, "INVITE with REPLACEs failed to '%s'\n", get_header(&p->initreq, "From"));
+                               if (option_debug)
+                                       ast_log(LOG_DEBUG, "Got 481 on Invite. Assuming INVITE with REPLACEs failed to '%s'\n", get_header(&p->initreq, "From"));
                                if (owner)
                                        ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
                                sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
                                if (owner)
                                        ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
                                sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);