<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2176/25/9/_/styles/combined.css?spaceKey=AST&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 (1)</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;">After several forum searches, here is what I did instead for the dial plan: <br></td></tr>
<tr><td class="diff-unchanged" >{code} <br>exten => s,1,NoOp() <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>
<p>After several forum searches, here is what I did instead for the dial plan:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Confluence; brush: java; gutter: false">exten => s,1,NoOp()
same => n,Wait(1)
same => n,Answer()
same => n,SendDTMF(1)
same => n,Set(CALLERID(number)=${CALLERID(name):2:10})
same => n,Set(CALLERID(name)=External Line)
same => n,Dial(SIP/100,30)
same => 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>