[asterisk-users] asterisk pjsip webrtc rtp to private IP

Joshua C. Colp jcolp at sangoma.com
Thu Dec 12 07:05:40 CST 2019

On Thu, Dec 12, 2019 at 8:57 AM marek <cervajs64 at gmail.com> wrote:

> Asterisk is on public IP (as described in the first email)
> i have 10 years experience in voip, 4 years webrtc in production. i know
> about ICE/STUN/DTLS-SRTP. yes, not every detail but the basic mechanism
> but i confess. i dont understand WHY Asterisk SOMETIMES switches
> destination IP in RTP. this is not only about ICE. its about RTP engine too
> which is Asterisk specific
> and Asterisk DEBUG is not helping

RTP traffic is given to pjnath to send using ICE, if this fails then it
uses the c= line. If you don't see (via ICE) then the fallback has occurred
and pjnath didn't send it via ICE, which most likely means ICE negotiation
failed for some reason. ICE and STUN is not encrypted in Wireshark, so it
can be seen there easily. You can enable debug in logger.conf to go to
console, and also increase the log_level in pjproject.conf to a high amount
to see some pjnath messages.

The learning phase doesn't impact outgoing. It's for locking on to a source
of media so other sources can be ignored, preventing hijacking.

Joshua C. Colp
Senior Software Developer
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20191212/4a101d6f/attachment.html>

More information about the asterisk-users mailing list