<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://18/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">you would want your carrier to send you the isup-oli= field like below, based on the isup-oil= you would make your routing decisions <div><br></div><div> From: <<a href="sip:+1XXXXXXXXXX@YYY.YYY.YYY.YYY:5060;isup-oli=27">sip:+1XXXXXXXXXX@YYY.YYY.YYY.YYY:5060;isup-oli=27</a>>;tag=gK1e00826b</div><div><br></div><div>Ref <a href="http://www.nanpa.com/number_resource_info/ani_ii_assignments.html">http://www.nanpa.com/number_resource_info/ani_ii_assignments.html</a> for ANI-II Codes 27 and 70 are generally pay phone people also seem to block 29 prison calls</div><div><br></div><div><br></div><div><br><div><div>On Aug 14, 2012, at 2:28 PM, Bob Coleman <<a href="mailto:bobc@devassert.com">bobc@devassert.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div dir="ltr">Hi Phil,<br> <br>We run the same sort of service as you, and have faced the same issue.<br> <br>In some countries they provide you with a list of all payphones, not sure whether the US does, but we found that to be the easiest way to record the surcharge.<br> <br>Bob<br> <br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Tue, 14 Aug 2012 17:19:02 -0400<br>From: <a href="mailto:phil.kim@valiant.com">phil.kim@valiant.com</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>Subject: [Freeswitch-users] Detecting payphone<br><br><div class="ecxSection1"><div style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; ">Hi all,</span></font></div><p class="ecxMsoNormal" style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; "> </span></font></p><div style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; ">Question might sounds odd but is there any way to detect if a call is coming from a ‘payphone’?</span></font></div><p class="ecxMsoNormal" style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; "> </span></font></p><div style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; ">We have an IVR system which people call in to check in/out of there work. Some calls are coming from a ‘payphone’.</span></font></div><p class="ecxMsoNormal" style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; "> </span></font></p><div style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; ">Problem is our carrier is charging us a huge ‘surcharge’ on those calls maid from ‘payphone’. We would like to block those calls but not sure how to detect them.</span></font></div><p class="ecxMsoNormal" style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; "> </span></font></p><div style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; ">Is there any flag on SIP messages?</span></font></div><p class="ecxMsoNormal" style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; "> </span></font></p><div style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; ">Thank you in advance.</span></font></div><p class="ecxMsoNormal" style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; "> </span></font></p><div style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; ">Best regards,</span></font></div><p class="ecxMsoNormal" style="margin: 0px; padding: 0px; "><font size="2" face="Arial"><span style="font-family: Arial; font-size: 10pt; "> </span></font></p><div style="margin: 0px; padding: 0px; "><font size="3" face="Arial"><span style="font-family: Arial; font-size: 12pt; ">Phil H. Kim</span></font><font><span style=""></span></font></div><div style="margin: 0px; padding: 0px; "><font size="3" face="Arial"><span style="font-family: Arial; font-size: 12pt; ">Software Engineer</span></font><font><span style=""></span></font></div><div style="margin: 0px; padding: 0px; "><b><font color="#ac0000" size="5" face="Arial"><span style="color: rgb(172, 0, 0); font-family: Arial; font-size: 16pt; font-weight: bold; ">VALIANT<span class="Apple-converted-space"> </span></span></font></b><font face="Arial">Workforce Solutions</font></div><div style="margin: 0px; padding: 0px; "><font size="3" face="Arial"><span style="font-family: Arial; font-size: 12pt; "><a href="mailto:phil.kim@valiant.com">phil.kim@valiant.com</a></span></font><font><span style=""></span></font></div><div style="margin: 0px; padding: 0px; "><font size="3" face="Arial"><span style="font-family: Arial; font-size: 12pt; "><a title="http://www.valiant.com/" href="http://www.valiant.com/" target="_blank"><span title="http://www.valiant.com/">www.valiant.com</span></a></span></font></div><div style="margin: 0px; padding: 0px; "><font size="3" face="Arial"><span style="font-family: Arial; font-size: 12pt; ">516-224-1908</span></font><font><span style=""></span></font></div><p class="ecxMsoNormal" style="margin: 0px; padding: 0px; "><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> </span></font></p></div>The information contained in this e-mail message, and any attachment<br>thereto, is the property of Valiant and is confidential and may not be<br>disclosed without our express permission. If you are not the intended<br>recipient or an employee or agent responsible for delivering this message to<br>the intended recipient, you are hereby notified that you have received this<br>message in error and that any review, dissemination, distribution or copying<br>of this message, or any attachment thereto, in whole or in part, is strictly<br>prohibited. If you have received this message in error, please immediately<br>notify us by telephone, fax or e-mail and delete the message and all of its<br>attachments.<span class="Apple-converted-space"> </span><br>Thank you.<span class="Apple-converted-space"> </span><br>Every effort is made to keep our network free from viruses. You should,<br>however, review this e-mail message, as well as any attachment thereto,<br>for viruses. We take no responsibility and have no liability for any<br>computer virus which may be transferred via this e-mail message.<br><br>_________________________________________________________________________ Professional FreeSWITCH Consulting Services: <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a> FreeSWITCH-powered IP PBX: The CudaTel Communication Server <a href="http://www.cudatel.com">http://www.cudatel.com</a> Official FreeSWITCH Sites <a href="http://www.freeswitch.org">http://www.freeswitch.org</a> <a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a> <a href="http://www.cluecon.com">http://www.cluecon.com</a> Join Us At ClueCon - Aug 7-9, 2012 FreeSWITCH-users mailing list <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a> UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a> <a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com">http://www.cluecon.com</a><br><br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></blockquote></div><br></div></body></html>