<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 (2)</h4>
                                
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >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> <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{code} <br></td></tr>
            <tr><td class="diff-unchanged" >exten =&gt; s,1,NoOp() <br> same =&gt; n,Wait(1) <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > same =&gt; n,Dial(SIP/100,30,m(nas2)) <br> same =&gt; n,Voicemail(100@internal) <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">{code} <br></td></tr>
            <tr><td class="diff-unchanged" > <br>For the record, my system answers and plays hold music while extension 100 rings. <br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                          <div class="notificationGreySide">
            <p>The Caller ID filtering code doesn't work on certain incoming call service providers:</p>

<p>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.</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)=NAS2 External)
 same =&gt; n,Dial(SIP/100,30,m(nas2))
 same =&gt; n,Voicemail(100@internal)</pre>
</div></div>

<p>For the record, my system answers and plays hold music while extension 100 rings.</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=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>