[Home]

Summary:ASTERISK-23629: PJ ICE Rx error status code: 370400 'Bad Request'.
Reporter:abdasty (abdasty)Labels:
Date Opened:2014-04-14 05:33:48Date Closed:2014-04-17 10:23:06
Priority:CriticalRegression?
Status:Closed/CompleteComponents:Resources/res_rtp_asterisk
Versions:11.8.1 Frequency of
Occurrence
Related
Issues:
is a clone ofASTERISK-28389 PJ ICE Rx error status code: 370400 'Bad Request'.
Environment:Debian GNU/Linux 7 64 bitsAttachments:( 0) myDebugLog.zip
Description:...
Comments:By: Matt Jordan (mjordan) 2014-04-14 07:10:28.885-0500

We require a complete debug log to help triage the issue. This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue: https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information





By: Matt Jordan (mjordan) 2014-04-17 10:23:01.196-0500

That error message occurs when pjnath (which is used by Asterisk for ICE) cannot decode a STUN message it received. Without looking at a pcap of the STUN messages it's hard to say what about the message caused it to be rejected - but it isn't surprising that a bad STUN message would cause ICE to fail.

As it is, this does not appear to be a bug in Asterisk but in a STUN server in your network that is in the path of media between the endpoints attempting to use ICE.

By: Brian J. Murrell (brian_j_murrell) 2019-04-18 10:47:27.397-0500

Please reopen.

I am seeing this on 13.26.0.  Here's what wireshark has to say about the response from stun.linphone.org which is causing these messages.

{noformat}
Simple Traversal of UDP Through NAT
   [Request In: 1]
   [Time: 0.111060000 seconds]
   Message Type: Binding Response (0x0101)
   Message Length: 0x0040
   Message Transaction ID: 6999906837272c48e1da866617eded14
   Attributes
       Attribute: MAPPED-ADDRESS
           Attribute Type: MAPPED-ADDRESS (0x0001)
           Attribute Length: 8
           Protocol Family: IPv4 (0x0001)
           Port: 13210
           IP: d7-19-27-1.example.com (7.19.27.1)
       Attribute: SOURCE-ADDRESS
           Attribute Type: SOURCE-ADDRESS (0x0004)
           Attribute Length: 8
           Protocol Family: IPv4 (0x0001)
           Port: 3478
           IP: sip3.linphone.org (37.59.51.72)
       Attribute: CHANGED-ADDRESS
           Attribute Type: CHANGED-ADDRESS (0x0005)
           Attribute Length: 8
           Protocol Family: IPv4 (0x0001)
           Port: 0
           IP: 0.0.0.0 (0.0.0.0)
       Attribute: Unknown (0x0020)
           Attribute Type: Unknown (0x0020)
           Attribute Length: 8
       Attribute: SERVER
           Attribute Type: SERVER (0x8022)
           Attribute Length: 12
           Server version: oRTP   0.99
{noformat}

By: Joshua C. Colp (jcolp) 2019-04-18 11:08:33.982-0500

[~brian_j_murrell] Please open a new issue and attach the information.