<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/2041/1/7/_/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?focusedCommentId=12550952#comment-12550952">Calling using Google</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://wiki.asterisk.org/wiki/display/~lakesidetech@hotmail.com">Lakeside Tech</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 style="border-bottom: 1px solid #ddd; padding: 10px 20px 7px 20px;">
        <strong>In reply to a comment by <a href="/wiki/display/~mdavenport"
                          class="url fn confluence-userlink" data-username="mdavenport"
                   >Malcolm Davenport</a>:</strong><br/>
        <p>Just did an inbound through Google Voice using this dialplan, no problems:</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>exten =&gt; s,1,NoOp()
exten =&gt; s,n,Dial(SIP/malcolm,20,D(:1))
</pre>
</div></div>

<p>Also tried an inbound through Google Talk (via the web client) using the same dialplan.  Also no problems.</p>

<p><b>shrug</b></p>
        </div>
    
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://wiki.asterisk.org/wiki/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?focusedCommentId=12550952#comment-12550952">View Online</a>
              |
       <a id="reply-12550952" href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?replyToComment=12550952#comment-12550952">Reply To This</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>