<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2166/10/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?focusedCommentId=18415671#comment-18415671">Calling using Google</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://wiki.asterisk.org/wiki/display/~utah_dave">David Boucha</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>I had a similar symptom. I could dial call my Google Voice number one time successfully, and then nothing would come through after that.</p>

<p>I found that if I were logged out of Gmail and Google Talk, then I could successfully call my Google Voice number and have it work each time.</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/~lakesidetech@hotmail.com"
                          class="url fn confluence-userlink" data-username="lakesidetech@hotmail.com"
                   >Lakeside Tech</a>:</strong><br/>
        <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>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?focusedCommentId=18415671#comment-18415671">View Online</a>
              |
       <a id="reply-18415671" href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?replyToComment=18415671#comment-18415671">Reply To This</a>
           </div>

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