]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Warn on CLI when UDPTL init fails
authorKinsey Moore <kmoore@digium.com>
Mon, 10 Sep 2012 18:31:22 +0000 (18:31 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 10 Sep 2012 18:31:22 +0000 (18:31 +0000)
This adds a CLI warning when a SDP offer is rejected due to UDPTL
initialization failure. Previously, there was no indication of the
reason for offer rejection in this case.

(closes issue ASTERISK-20357)
Reported-by: Francesco Usseglio Gaudi
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@372763 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d4f933f0602cecaaf7b90ccbeaa0e435b9d92d06..76346870ec558fd8c6229c0676542211365784ca 100644 (file)
@@ -9141,6 +9141,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
                                }
 
                                if (initialize_udptl(p)) {
+                                       ast_log(LOG_WARNING, "Rejecting offer with image stream due to UDPTL initialization failure\n");
                                        return -1;
                                }