<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2176/25/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=22087899#comment-22087899">Calling using Google</a></h2>
    <h4>Comment edited by             <a href="https://wiki.asterisk.org/wiki/display/~newageserver">Andrew</a>
     :</h4>
    <br/>
                        <h4>Changes (3)</h4>
                                
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-changed-lines" >The Caller ID filtering code doesn&#39;t work on certain <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">incoming call service providers:</span> <span class="diff-added-words"style="background-color: #dfd;">telephone services:</span> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;"> <br></td></tr>
            <tr><td class="diff-unchanged" >First off, in my area we dial 7 digits for in-State calls and all 10 digits for out-of-state calls. <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > <br>If my friend in CA calls long distance, it works perfectly fine for him. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Same for a client I have in another state. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>I commented out lines, one at a time, and determined that the second and third lines of the Caller ID code are causing Asterisk to drop the call if it is in a local area code. Has something to do with the variables or something. <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                          <div class="notificationGreySide">
            <p>The Caller ID filtering code doesn't work on certain telephone services:<br/>
First off, in my area we dial 7 digits for in-State calls and all 10 digits for out-of-state calls.</p>

<p>If I call from my home landline, I get one ring, then it hangs up on me. Destination extension never rings.<br/>
If I call from my cell phone, same thing.<br/>
If I call from my home landline and dial all ten digits, the same thing happened.</p>

<p>If my friend in CA calls long distance, it works perfectly fine for him.<br/>
Same for a client I have in another state.</p>

<p>I commented out lines, one at a time, and determined that the second and third lines of the Caller ID code are causing Asterisk to drop the call if it is in a local area code. Has something to do with the variables or something.</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">exten =&gt; s,1,NoOp()
 same =&gt; n,Wait(1)
 same =&gt; n,Answer()
 same =&gt; n,SendDTMF(1)
 same =&gt; n,Set(CALLERID(number)=${CALLERID(name):2:10})
 same =&gt; n,Set(CALLERID(name)=External Line)
 same =&gt; n,Dial(SIP/100,30)
 same =&gt; n,Voicemail(100@internal)</pre>
</div></div>

        </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=22087899#comment-22087899">View Online</a>
              |
       <a id="reply-22087899" href="https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google?replyToComment=22087899#comment-22087899">Reply To This</a>
           </div>

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