<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>Nice tutorial. Incoming calls are working fine.I'm facing problem with outbound calls. The outbound calls only works when I add gmail id which is already in my buddy list to jabber.conf &amp; gtalk.conf. Find my configurations files below. Now the outbound calls work only on those 2 buddys. How can I dial anyone/any pstn number without adding it to gtalk/jabber config. In Gmail my chat setting is "Only allow people that I've explicitly approved to chat with me and see when I'm online." Any insight would be appreciated.</p>

<p>Version: Asterisk 10.0.0-beta1</p>

<p>/etc/asterisk/jabber.conf</p>

<p><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=general" class="createlink">general</a><br/>
autoregister = yes<br/>
autoprune = no</p>

<p><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=asterisk" class="createlink">asterisk</a><br/>
type = client<br/>
serverhost = talk.google.com<br/>
username = shy**@gmail.com/Talk<br/>
secret = ******<br/>
port = 5222<br/>
usetls = yes<br/>
usesasl = yes<br/>
buddy = shy**@epillars.com<br/>
buddy = +971554880722@voice.google.com<br/>
statusmessage = "I am an Asterisk Server"<br/>
timeout = 100</p>

<p>/etc/asterisk/gtalk.conf</p>

<p><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=general" class="createlink">general</a><br/>
context = default<br/>
allowguests = yes<br/>
;bindaddr = 192.168.20.159<br/>
bindaddr = 0.0.0.0<br/>
externip = 2.50.27.181<br/>
;allowguest = yes<br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=guest" class="createlink">guest</a><br/>
;username = _.@gmail.com<br/>
disallow = all<br/>
allow = all<br/>
context = gtalk_incoming_guest<br/>
connection = asterisk</p>

<p><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=shyju" class="createlink">shyju</a><br/>
username = shy**@gmail.com<br/>
disallow = all<br/>
allow = all<br/>
context = gtalk_incoming_guest<br/>
connection = asterisk</p>

<p><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=971" class="createlink">971</a><br/>
username = +971554880722@voice.google.com<br/>
disallow = all<br/>
allow = all<br/>
context = gtalk_incoming_guest<br/>
connection = asterisk</p>

<p>/etc/asterisk/extensions.conf</p>

<p>exten =&gt; _XXXXXXXXXX.,1,Dial(gtalk/asterisk/+${EXTEN}@voice.google.com)<br/>
exten =&gt; 123,1,Dial(gtalk/asterisk/shy**@epillars.com)</p>


<p>Asterisk CLI<br/>
  == Using SIP RTP CoS mark 5<br/>
    &#8211; Executing <span class="error">&#91;971503014208@DLPN_ePillars:1&#93;</span> Dial("SIP/604-00000000", "gtalk/asterisk/+971503014208@voice.google.com") in new stack<br/>
    &#8211; Called gtalk/asterisk/+971503014208@voice.google.com<br/>
    &#8211; Gtalk/+971503014208@voice.google.com-6a29 is ringing<br/>
  == Everyone is busy/congested at this time (1:0/0/1)</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>