<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2171/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=19005505#comment-19005505">Calling using Google</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://wiki.asterisk.org/wiki/display/~chathuragune">Chathura Gunarathane</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>Malcolm,<br/>
I can report to you, i was successfully get SIP calling via Google voice to work.</p>

<p>I read somewhere that you can use Google Voice with Fax For Asterisk (FFA) to make fax via SIP. Can you show how to do that via a sample dialplan?</p>

<p>Can you show using above jabber.conf configuration and gtalk.conf Channel Driver?</p>

<p>Here is sample code i am trying to use in extension.conf:</p>

<p><span class="error">&#91;fax-tx&#93;</span><br/>
exten =&gt; send,1,NoOp(**** SENDING FAX ****)<br/>
exten =&gt; send,n,Wait(6)<br/>
exten =&gt; send,n,Set(GLOBAL(FAXCOUNT)=$[ $</p>
<div class="error"><span class="error">Unknown macro: {GLOBAL(FAXCOUNT)}</span> <p> + 1 ])<br/>
exten =&gt; send,n,Set(FAXCOUNT=$</p></div>
<p>)<br/>
exten =&gt; send,n,Set(FAXFILE=dw-faxout.tif) ; &lt;&lt;&lt; FAX FILE<br/>
; Set FAXOPTs<br/>
exten =&gt; send,n,NoOp(**** SETTING FAXOPT ****)<br/>
exten =&gt; send,n,Set(FAXOPT(ecm)=yes)<br/>
exten =&gt; send,n,Set(FAXOPT(headerinfo)=Fax from $</p>
<div class="error"><span class="error">Unknown macro: {GLOBAL(LASTFAXCALLERNAME)}</span> </div>
<p> at $</p>
<div class="error"><span class="error">Unknown macro: {GLOBAL(LASTFAXCALLERNUM)}</span> </div>
<p> was received.)<br/>
exten =&gt; send,n,Set(FAXOPT(localstationid)=1234567890)<br/>
exten =&gt; send,n,Set(FAXOPT(maxrate)=14400)<br/>
exten =&gt; send,n,Set(FAXOPT(minrate)=2400)<br/>
; Send the fax<br/>
exten =&gt; send,n,NoOp(**** SENDING FAX : $</p>
<div class="error"><span class="error">Unknown macro: {FAXFILE}</span> <p> ****)<br/>
exten =&gt; send,n,SendFAX(/home/dwayne/faxout/$</p></div>
<p>,d) ; FAX FILE LOCATION and FILE<br/>
; Hangup! Print FAXOPTs<br/>
exten =&gt; h,1,NoOp(FAXOPT(ecm) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(ecm)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(filename) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(filename)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(headerinfo) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(headerinfo)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(localstationid) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(localstationid)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(maxrate) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(maxrate)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(minrate) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(minrate)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(pages) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(pages)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(rate) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(rate)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(remotestationid) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(remotestationid)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(resolution) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(resolution)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(status) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(status)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(statusstr) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(statusstr)}</span> </div>
<p>)<br/>
exten =&gt; h,n,NoOp(FAXOPT(error) : $</p>
<div class="error"><span class="error">Unknown macro: {FAXOPT(error)}</span> </div>
<p>)</p>

<p><span class="error">&#91;default&#93;</span><br/>
exten =&gt; fax,1,NoOp(**** FAX DETECTED ****)<br/>
exten =&gt; fax,n,Goto(fax-rx,receive,1)</p>

<p>What i am not clear is where do i place the SIP dialing in extension.conf?</p>

<p><span class="error">&#91;local&#93;</span><br/>
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)</p>

<p>exten =&gt; 100,1,Dial(gtalk/asterisk/myfriends@gmail.com)<br/>
exten =&gt; _1XXXXXXXXXX,1,Dial(gtalk/asterisk/+$</p>
<div class="error"><span class="error">Unknown macro: {EXTEN}</span> </div>
<p>@voice.google.com)</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=19005505#comment-19005505">View Online</a>
              |
       <a id="reply-19005505" href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?replyToComment=19005505#comment-19005505">Reply To This</a>
           </div>

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