<div dir="ltr">On Mon, Mar 18, 2013 at 4:13 PM, Giovanni Maruzzelli <span dir="ltr">&lt;<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>&gt;</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 &lt;DID number&gt;@pbx.&lt;domain&gt;.com:5080, since that&#39;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">&lt;include&gt;</span></div><div><span style="font-size:12px">  &lt;extension name=&quot;CID route&quot;&gt;</span></div><div><span style="font-size:12px">    &lt;condition field=&quot;caller_id_number&quot; expression=&quot;^\+?(12243336164)$&quot;&gt;</span></div>
<div><span style="font-size:12px">      &lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;</span></div><div><span style="font-size:12px">      &lt;action application=&quot;transfer&quot; data=&quot;523 XML default&quot;/&gt;</span></div>
<div><span style="font-size:12px">    &lt;/condition&gt;</span></div><div><span style="font-size:12px">  &lt;/extension&gt;</span></div><div><span style="font-size:12px">&lt;/include&gt;</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 &quot;next&quot; 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 &quot;My Numbers&quot; 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">&lt;<a href="mailto:sos@sokhapkin.dyndns.org" target="_blank">sos@sokhapkin.dyndns.org</a>&gt;</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>