<div dir="ltr"><div dir="ltr">On Thu, Dec 12, 2019 at 6:39 AM marek <<a href="mailto:cervajs64@gmail.com">cervajs64@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">hi,<br>
<br>
i have following topology<br>
<br>
PSTN - Asterisk ---- internet -----  router - jssip client (wss)<br>
<br>
Asterisk 13.29.1 on public IP, chan_pjsip for wss, chan_sip/udp for SIP <br>
connection to PSTN<br>
<br>
router - public IP/private IP (NAT)<br>
<br>
jssip client - private IP - sip over websocket to Asterisk PJSIP<br>
<br>
<br>
~30% of calls has problem with no audio. reason is that Asterisk is <br>
sending RTP to private IP of jssip<br>
<br>
SDP looks the same for good call and bad call too<br>
<br>
<br>
i searched through res_rtp_asterisk.c but i'm not sure where to put <br>
DEBUG info about which IP and why Asterisk pick for RTP<br>
<br>
any hint?<br>
<br>
<br>
is it possible debug Asterisk STUN request/response ? or is it hidden in <br>
pjsip internals?<br></blockquote><div><br></div><div>ICE is performed using pjnath, which is part of pjproject and not Asterisk itself. Looking at the SDP and the ICE candidates can tell you the possibilities for the paths, and a wireshark capture can show you the actual traffic going back and forth and what is being attempted.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Senior Software Developer</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div>