<div dir="ltr">Hello,<br><div><br>I have some STUN questions. My plan is to build a P2P connection with ICE (psua2 or libnice).<br><br><br>1) According to the cookbook (<a href="http://www.kamailio.org/wiki/cookbooks/4.0.x/core">http://www.kamailio.org/wiki/cookbooks/4.0.x/core</a>) one can activate an internal STUN server:<br>stun_allow_stun = 0 | 1 (off | on); default 1<br><br>This is followed by:<br>"Note: STUN support is only available if sip-router/Kamailio was compiled with STUN support (“make STUN=1 cfg”)"<br><br>I did an installation with sudo apt-get ... Is STUN support availbable? How do I check for STUN support?<br><br>2) I ICE it seems to be usual that the body of the SIP request contains an SDP message that includes the IP addresses and ports to be used. So the results of the STUN request (and TURN request possibily) are already included. How does the kamailio STUN server work? Is it an independent STUN server (caller asks the kamailio STUN server - gets an answer - encodes an SDP with the external IP adress an port information - starts the SIP INVITE) ? Or does Kamailio change SDP lines after contacting the internal STUN server?<br><br>3) Is the kanailio STUN server prefered to other STUN servers, for instance <a href="http://stun.stunprotocol.org">stun.stunprotocol.org</a>? <br><br></div><div>Thanks<br></div><div>Hermann<br></div></div>