<p dir="ltr">Barry,</p>
<p dir="ltr">Would the same logic then apply to setup an ANAC code?</p>
<p dir="ltr">Some of my carrier clients have voice gateways that terminate to multiple lines at 66-block like in a multitenant commercial building (MDU).</p>
<p dir="ltr">Many voice techs in the US are used to being able to check the telephone number assigned to a pair by "ANACing" the line - dialing 2006666666. </p>
<p dir="ltr">This causes the switch to announce the associated telephone number with that pair of wires.</p>
<p dir="ltr">I realize that the asterisk script would be different, but could it be accomplished in the same manner? I would imagine asterisk would see the CLI of the callee as its needed for voicemail access, correct?</p>
<p dir="ltr">Thanks,</p>
<p dir="ltr">Jeremy D. Ward, CWNE<br>
(954) 661-4965</p>
<div class="gmail_quote">On Aug 28, 2014 4:48 AM, "Barry Flanagan" <<a href="mailto:barry@flanagan.ie">barry@flanagan.ie</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div>On 27 August 2014 22:24, Matthew Ogden <span dir="ltr"><<a href="mailto:matthew@tenacit.net" target="_blank">matthew@tenacit.net</a>></span> wrote:<br></div><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks Jeremy, that’s exactly what I mean!</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Echo test.</span></p>
</div></div></blockquote><div><br></div><div>You could quite easily do this on the Asterisk server included with spce. Just make a custom extensions.conf like so:</div><div><br></div><div>cd /etc/ngcp-config/templates/etc/asterisk/</div>
<div>cp extentions.conf.tt2 extensions.conf.customtt.tt2</div><div><br></div><div>Then edit extensions.conf.customtt.tt2 and add something like the following at the bottom of the file:</div><div><br></div><div>### Echo Test Context ####</div>
<div><div>[echo-test]</div><div>exten => s,1,wait(2)</div><div>exten => s,n,Playback(demo-echotest) ; Let them know what's going on</div><div>exten => s,n,Answer()</div><div>exten => s,n,Echo() ; Do the echo test</div>
<div>exten => s,n,Playback(demo-echodone) ; Let them know it's over</div><div>exten => s,n,Hangup()</div></div><div>### End of Echo Test ###<br></div><div><br></div><div>Then, in the existing [sip-in] context, at the top, put in an extension for the number you want to use for the echo test. For example, if you wanted to use 500 as the number someone would dial to do the echo test, then you would do:</div>
<div><br></div><div>[sip-in] <-- NOTE: this line exists already - do not put it in, just look for it in the file!</div><div>exten => 500,1,Goto(echo-test,s,1)<br></div><div><br></div><div>You then need to run 'ngcpcfg apply' so that Asterisk picks up the new config.</div>
<div><br></div><div>Then what you need to do in order to get SPCE to actually send this number - 500 - to the asterisk voicemail server, is to put a rule into your subscribers rewrite rule set, under "Inbound Rewrite Rules for Callee":</div>
<div><br></div><div>Match Pattern: ^500$<br></div><div>Replace Pattern: 500@voicebox.local</div><div>Description: Echo Test</div><div>Direction: Inbound</div><div>Field: Callee</div><div><br></div><div>So now, any call from the subscriber to 500 will get re-written to 500@voicebox.local and sent to the Asterisk server where it should get the echo test.</div>
<div><br></div><div>Hope this helps.</div><div><br></div><div>-Barry Flanagan</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span></p><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Jeremy Ward [mailto:<a href="mailto:jward01@gmail.com" target="_blank">jward01@gmail.com</a>] <br>
<b>Sent:</b> 27 August 2014 09:20 PM<br><b>To:</b> Daniel Grotti<br><b>Cc:</b> <a href="mailto:spce-user@lists.sipwise.com" target="_blank">spce-user@lists.sipwise.com</a>; Matthew Ogden<br><b>Subject:</b> Re: [Spce-user] voip loopback test</span></p>
<p class="MsoNormal"> </p><p>Not to stick my nose in something that it doesn't belong, but I think he is referring to what asterisk calls an "echo test". </p><p>Its usually accessed via a star code (*31, if my memory serves me correctly).</p>
<p>Hope this helps.</p><p>Jeremy D. Ward, CWNE<br><a href="tel:%28954%29%20661-4965" value="+19546614965" target="_blank">(954) 661-4965</a></p><div><p class="MsoNormal">On Aug 27, 2014 1:01 PM, "Daniel Grotti" <<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>> wrote:</p>
<blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><p class="MsoNormal">Hi,<br>We don't have a specific number.<br>
It depends what you want to achieve, you can call the voicebox number for example or you can call another subscriber with a CF set to a mobile phone.<br>
Again it depends what you mean with loopback test.<br><br>Daniel<br><br>On 27 Aug 2014 16:43, Matthew Ogden <<a href="mailto:matthew@tenacit.net" target="_blank">matthew@tenacit.net</a>> wrote:<br>><br>> Hi<br>
><br>> <br>
><br>> Does spce have a number I can dial built-in that is a loopback test?<br>><br>> <br>><br>> Regards<br>><br>> <br>><br>> <br>><br>> Matthew Ogden<br>><br>> Management<br>
><br>
> TenacIT<br>><br>> <br>><br>> <br>><br>> <br>><br>> Strategic IT Consulting • Advanced Networking • Virtualisation<br>><br>> Custom Development • Hosting • Syspro Support • MS Licensing<br>
><br>> National Tel: 041 10 10 100 | Cell: 084 205 4445 | Email: <a href="mailto:matthew@tenacit.net" target="_blank">matthew@tenacit.net</a> <br>><br>> CT Tel: <a href="tel:021%C2%A0201%200333" value="+353212010333" target="_blank">021 201 0333</a> | Skype Name: matthew.ogden | Web: <a href="http://www.tenacit.net" target="_blank">http://www.tenacit.net</a><br>
><br>> <br>><br>> <br>><br>> <br>_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a></p>
</blockquote></div></div></div>
<br>_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div>