<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google">Calling using Google</a></h2>
    <h4>Comment <b>removed</b> by              <a href="https://wiki.asterisk.org/wiki/display/~mdavenport">Malcolm Davenport</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
        <p>I just had time to take a look at the problem. It looks like a problem with RTP  behind NAT through STUN.</p>

<p>One problem I notice with NAT support in chan_gtalk is, it sends private IP as the first RTP candidate and then sends the external ip as second candidate. This can be reproed with setting stunaddr=x.x.x.x in gtalk.conf. </p>

<p>The private IP should not be sent as candidate. That seems a bug to me. I just modified the code and compiled asterisk with my own chan_gtalk.</p>

<p>Now back to the incoming call problem with behind NAT asterisk server. Setting externip or stunaddr made it work exactly ONCE, then all following calls fail. It looks some state keeping on gtalk server is messed up after one call. Strange.</p>
    </div>

    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
    </div>
</div>
</div>
</div>
</div>
</body>
</html>