<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 (4)</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" > same => n,SendDTMF(1) <br> same => n,Set(CALLERID(number)=${CALLERID(name):2:10}) <br></td></tr>
<tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;"> same => n,Set(CALLERID(name)=NAS2 External) <br></td></tr>
<tr><td class="diff-added-lines" style="background-color: #dfd;"> same => n,Set(CALLERID(name)=External Line) <br></td></tr>
<tr><td class="diff-changed-lines" >same => <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">n,Dial(SIP/100,30,m(nas2))</span> <span class="diff-added-words"style="background-color: #dfd;">n,Dial(SIP/100,30)</span> <br></td></tr>
<tr><td class="diff-unchanged" > same => n,Voicemail(100@internal) <br>{code} <br></td></tr>
<tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;"> <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 => 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>