<div dir="ltr">On Mon, Mar 18, 2013 at 4:13 PM, Giovanni Maruzzelli <span dir="ltr"><<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><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">yes, we all want.<br></blockquote><div><br></div><div style>
When you register a number at <a href="http://e164.org">e164.org</a>, it first asks for the URL, and it will place a test call to verify it. Since my PBX is at a static address, I used <DID number>@pbx.<domain>.com:5080, since that's what the FreeSwitch default is. I opened port 5080 in the firewall to allow incoming SIP calls. Since it was already working through <a href="http://flowroute.com">flowroute.com</a>, the appropriate media ports were already open.</div>
<div style><br></div><div style>Next, to verify a number, <a href="http://e164.org">e164.org</a> will call your number via the PSTN. By testing with a POTS line, I knew <a href="http://e164.org">e164.org</a> would be sending<font color="#000000" face="Lucida Grande, LucidaGrande, Lucida, DejaVu Sans, Bitstream Vera Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px"> +12243336164 as the caller-ID number. Therefore, I short-circuited the route to our IVR in the public dialplan to route calls from that number directly to my extension:</span></font></div>
<div style><font color="#000000" face="Lucida Grande, LucidaGrande, Lucida, DejaVu Sans, Bitstream Vera Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px"><br></span></font></div><div style><font color="#000000" face="Lucida Grande, LucidaGrande, Lucida, DejaVu Sans, Bitstream Vera Sans, Helvetica, Arial, sans-serif"><div>
<span style="font-size:12px"><include></span></div><div><span style="font-size:12px"> <extension name="CID route"></span></div><div><span style="font-size:12px"> <condition field="caller_id_number" expression="^\+?(12243336164)$"></span></div>
<div><span style="font-size:12px"> <action application="set" data="domain_name=$${domain}"/></span></div><div><span style="font-size:12px"> <action application="transfer" data="523 XML default"/></span></div>
<div><span style="font-size:12px"> </condition></span></div><div><span style="font-size:12px"> </extension></span></div><div><span style="font-size:12px"></include></span></div><div><span style="font-size:12px"><br>
</span></div><div style><span style="font-size:12px">After <a href="http://e164.org">e164.org</a> had placed the SIP test call, I pressed the "next" button and a few minutes later it called through the PSTN. I picked up the phone and listened very carefully, because it only says the numbers once, and it says them very quickly. I wrote the PIN down and entered it in the "My Numbers" page. I also added my white pages information while I was there.</span></div>
<div style><span style="font-size:12px"><br></span></div><div style><span style="font-size:12px">Next, I set up the outgoing dialplan to use the <a href="http://e164.org">e164.org</a> ENUM service exactly as specified at </span></div>
<div><span style="font-size:12px"><a href="http://wiki.freeswitch.org/wiki/ENUM_support#enum">http://wiki.freeswitch.org/wiki/ENUM_support#enum</a></span><br></div><div style><span style="font-size:12px">To test it out, I used the <a href="http://e164.org">e164.org</a> white pages lookup to find somebody in my same city and gave him a call. It routed the call directly via SIP, bypassing the PSTN.</span></div>
<div style><span style="font-size:12px"><br></span></div><div style><span style="color:rgb(34,34,34);font-family:arial">On Mon, Mar 18, 2013 at 4:51 PM, Sergey Okhapkin </span><span dir="ltr" style="color:rgb(34,34,34);font-family:arial"><<a href="mailto:sos@sokhapkin.dyndns.org" target="_blank">sos@sokhapkin.dyndns.org</a>></span><span style="color:rgb(34,34,34);font-family:arial"> wrote:</span><br style="color:rgb(34,34,34);font-family:arial">
<blockquote class="gmail_quote" style="color:rgb(34,34,34);font-family:arial;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Congratulations! Expect a lot of free spam calls now...</blockquote>
<div><br></div><div style>I was getting those before. :-) Do telemarketers prefer VoIP?</div><div style><br></div><div style>-- </div><div style>Steve </div></div></font></div></div><br></div></div>