<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2166/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?focusedCommentId=18415962#comment-18415962">Calling using Google</a></h2>
    <h4>Comment edited by             <a href="https://wiki.asterisk.org/wiki/display/~brucelampson@gmail.com">Bruce Lampson</a>
     :</h4>
    <br/>
                        <h4>Changes (6)</h4>
                                
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-unchanged" >Hi Shyju, <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >this works for <span class="diff-changed-words">me<span class="diff-added-chars"style="background-color: #dfd;">\</span>!</span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br>sip.conf <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > <br>exten =&gt; 100,1,Dial(gtalk/asterisk/MYFRIEND@gmail.com) <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words"><span class="diff-added-chars"style="background-color: #dfd;">\</span>_1XXXXXXXXXX,1,Dial(gtalk/asterisk/+${EXTEN}@voice.google.com)</span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words"><span class="diff-added-chars"style="background-color: #dfd;">\</span>*98,1,Answer()</span> <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words"><span class="diff-added-chars"style="background-color: #dfd;">\</span>*98,2,Wait(1)</span> <br></td></tr>
            <tr><td class="diff-changed-lines" >exten =&gt; <span class="diff-changed-words"><span class="diff-added-chars"style="background-color: #dfd;">\</span>*98,3,VoiceMailMain(${CALLERID}@voicemail)</span> <br></td></tr>
            <tr><td class="diff-changed-lines" >exten=&gt;  <span class="diff-changed-words"><span class="diff-added-chars"style="background-color: #dfd;">\</span>*98,4,Hangup()</span> <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                          <div class="notificationGreySide">
            <p>Hi Shyju,</p>

<p>this works for me&#33;</p>

<p>sip.conf</p>

<p><span class="error">&#91;1000&#93;</span><br/>
type=friend<br/>
secret=1000<br/>
host=dynamic<br/>
context=local</p>



<p>jabber.conf</p>

<p><span class="error">&#91;general&#93;</span><br/>
autoregister=yes</p>

<p><span class="error">&#91;asterisk&#93;</span><br/>
type=client<br/>
serverhost=talk.google.com<br/>
username=YOUR_EMAIL/Talk<br/>
secret=YOUR_PASSWORD<br/>
port=5222<br/>
usetls=yes<br/>
usesasl=yes<br/>
statusmessage="ASTERISK"<br/>
timeout=100</p>


<p>gtalk.conf</p>

<p><span class="error">&#91;general&#93;</span><br/>
context=local<br/>
allowguests=yes<br/>
bindaddr=0.0.0.0<br/>
externip=YOUR_EXTERNAL_IP_ADDRESS</p>


<p><span class="error">&#91;guest&#93;</span><br/>
disallow=all<br/>
allow=ulaw<br/>
context=local<br/>
connection=asterisk</p>


<p>extensions.conf</p>

<p><span class="error">&#91;local&#93;</span></p>

<p>exten =&gt; s,1,Answer()<br/>
exten =&gt; s,n,Wait(8)<br/>
exten =&gt; s,n,SendDTMF(1)<br/>
exten =&gt; s,n,Set(name=$</p>
<div class="error"><span class="error">Unknown macro: {CALLERID(name)}</span> </div>
<p>)<br/>
exten =&gt; s,n,Set(num=$</p>
<div class="error"><span class="error">Unknown macro: {CUT(name,@,1)}</span> </div>
<p>)<br/>
exten =&gt; s,n,Set(CALLERID(all)=$</p>
<div class="error"><span class="error">Unknown macro: {num}</span> </div>
<p>)<br/>
exten =&gt; s,n,Dial(SIP/1000,20,tT)<br/>
exten =&gt; s,n,Voicemail(1000@voicemail)<br/>
exten =&gt; s,n,Playback(vm-goodbye)<br/>
exten =&gt; s,n,Hangup()</p>


<p>exten =&gt; 100,1,Dial(gtalk/asterisk/MYFRIEND@gmail.com)<br/>
exten =&gt; &#95;1XXXXXXXXXX,1,Dial(gtalk/asterisk/+$</p>
<div class="error"><span class="error">Unknown macro: {EXTEN}</span> </div>
<p>@voice.google.com)</p>


<p>exten =&gt; &#42;98,1,Answer()<br/>
exten =&gt; &#42;98,2,Wait(1)<br/>
exten =&gt; &#42;98,3,VoiceMailMain($</p>
<div class="error"><span class="error">Unknown macro: {CALLERID}</span> </div>
<p>@voicemail)<br/>
exten=&gt;  &#42;98,4,Hangup()</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=18415962#comment-18415962">View Online</a>
              |
       <a id="reply-18415962" href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?replyToComment=18415962#comment-18415962">Reply To This</a>
           </div>

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