{"id":5206,"date":"2022-11-14T01:17:21","date_gmt":"2022-11-14T01:17:21","guid":{"rendered":"https:\/\/serviceobjects.wpaladdin.com\/?page_id=5206"},"modified":"2025-08-21T18:19:57","modified_gmt":"2025-08-22T01:19:57","slug":"pe2-frequently-asked-questions","status":"publish","type":"page","link":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/","title":{"rendered":"PE2 &#8211; Frequently Asked Questions"},"content":{"rendered":"<section class=\"faq-accordion\" aria-label=\"phone exchange 2 faq\">\n<details class=\"accordion-section\" aria-label=\"the sample code is giving strange errors or is crashing!\">\n<summary>The Sample Code is Giving Strange Errors or is Crashing!<\/summary>\n<article>Most likely, the sample code cannot connect to Service Objects. Many environments will not allow you to connect out on port 80 or will clip out XML data from these requests\/responses.<\/article>\n<article>The easiest way to check for this is to open a browser on the machine running the sample code. In your browser, navigate to:\u00a0<a href=\"https:\/\/trial.serviceobjects.com\/pe2\/\">https:\/\/trial.serviceobjects.com\/pe2<\/a><\/article>\n<article>Then try to run one of the operations with your trial key. If you get a browser error, or get no data back, then the sample code isn&#8217;t able to connect, either. Contact your systems administrator to resolve why you are not able to connect to Service Objects.<\/article>\n<\/details>\n<details class=\"accordion-section\" aria-label=\"can phone exchange 2 give me information for canadian phone numbers?\">\n<summary>Can Phone Exchange 2 give me information for Canadian phone numbers?<\/summary>\n<article>Yes. Phone Exchange can verify the telco exchange of any telephone number combination in the North American Numbering Plan.<\/article>\n<\/details>\n<details class=\"accordion-section\" aria-label=\"phone exchange 2 doesn't find any data for my phone number!\">\n<summary>Phone Exchange 2 doesn&#8217;t find any data for my phone number!<\/summary>\n<article>You may have mistyped your phone number. A valid phone number will always return exchange information, whether it is wireless or landline, connected or disconnected. If you are certain that the number is valid and that it is part of the North American Numbering Plan, then please let us know at support@serviceobjects.com.<\/article>\n<\/details>\n<details class=\"accordion-section\" aria-label=\"why does phone exchange 2 accept a 6 or 7 digit number?\">\n<summary>Why does Phone Exchange 2 accept a 6 or 7 digit number?<\/summary>\n<article>When a single provider match is not enough, providing a 6 or 7 digit (area code + suffix) number will return a list of known providers that can be used for custom logic. If multiple provider matches for a 6 digit number are potentially problematic for your use case, then a simple solution is to check the length of the number before calling the Phone Exchange service and rejecting any numbers that are not 10 digits in length.<\/article>\n<\/details>\n<h2>References<\/h2>\n<ol>\n<li><a href=\"\/blog\/dots-phone-exchange-global-phone-validation-solution\/\">DOTS Phone Exchange 2 Now Offers a Global Phone Validation Solution<\/a><\/li>\n<\/ol>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>The Sample Code is Giving Strange Errors or is Crashing! Most likely, the sample code cannot connect to Service Objects. Many environments will not allow you to connect out on port 80 or will clip out XML data from these requests\/responses. The easiest way to check for this is to open a browser on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":5178,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5206","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PE2 - Frequently Asked Questions<\/title>\n<meta name=\"description\" content=\"The Sample Code is Giving Strange Errors or is Crashing!Most likely, the sample code cannot connect to Service Objects. Many environments will not allow\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PE2 - Frequently Asked Questions\" \/>\n<meta property=\"og:description\" content=\"The Sample Code is Giving Strange Errors or is Crashing!Most likely, the sample code cannot connect to Service Objects. Many environments will not allow\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/\" \/>\n<meta property=\"og:site_name\" content=\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-22T01:19:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/\",\"name\":\"PE2 - Frequently Asked Questions\",\"isPartOf\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#website\"},\"datePublished\":\"2022-11-14T01:17:21+00:00\",\"dateModified\":\"2025-08-22T01:19:57+00:00\",\"description\":\"The Sample Code is Giving Strange Errors or is Crashing!Most likely, the sample code cannot connect to Service Objects. Many environments will not allow\",\"breadcrumb\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DOTS Phone Exchange 2\",\"item\":\"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PE2 &#8211; Frequently Asked Questions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#website\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.serviceobjects.com\/docs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#organization\",\"name\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"contentUrl\":\"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png\",\"width\":2560,\"height\":1440,\"caption\":\"Service Objects | Contact, Phone, Email Verification | Data Quality Services\"},\"image\":{\"@id\":\"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PE2 - Frequently Asked Questions","description":"The Sample Code is Giving Strange Errors or is Crashing!Most likely, the sample code cannot connect to Service Objects. Many environments will not allow","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/","og_locale":"en_US","og_type":"article","og_title":"PE2 - Frequently Asked Questions","og_description":"The Sample Code is Giving Strange Errors or is Crashing!Most likely, the sample code cannot connect to Service Objects. Many environments will not allow","og_url":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/","og_site_name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","article_modified_time":"2025-08-22T01:19:57+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/","url":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/","name":"PE2 - Frequently Asked Questions","isPartOf":{"@id":"https:\/\/www.serviceobjects.com\/docs\/#website"},"datePublished":"2022-11-14T01:17:21+00:00","dateModified":"2025-08-22T01:19:57+00:00","description":"The Sample Code is Giving Strange Errors or is Crashing!Most likely, the sample code cannot connect to Service Objects. Many environments will not allow","breadcrumb":{"@id":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/pe2-frequently-asked-questions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.serviceobjects.com\/docs\/"},{"@type":"ListItem","position":2,"name":"DOTS Phone Exchange 2","item":"https:\/\/www.serviceobjects.com\/docs\/dots-phone-exchange-2\/"},{"@type":"ListItem","position":3,"name":"PE2 &#8211; Frequently Asked Questions"}]},{"@type":"WebSite","@id":"https:\/\/www.serviceobjects.com\/docs\/#website","url":"https:\/\/www.serviceobjects.com\/docs\/","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","description":"","publisher":{"@id":"https:\/\/www.serviceobjects.com\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.serviceobjects.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.serviceobjects.com\/docs\/#organization","name":"Service Objects | Contact, Phone, Email Verification | Data Quality Services","url":"https:\/\/www.serviceobjects.com\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","contentUrl":"https:\/\/www.serviceobjects.com\/docs\/wp-content\/uploads\/2022\/08\/SO-logo-2560px-transparent.png","width":2560,"height":1440,"caption":"Service Objects | Contact, Phone, Email Verification | Data Quality Services"},"image":{"@id":"https:\/\/www.serviceobjects.com\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/comments?post=5206"}],"version-history":[{"count":5,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5206\/revisions"}],"predecessor-version":[{"id":11762,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5206\/revisions\/11762"}],"up":[{"embeddable":true,"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/pages\/5178"}],"wp:attachment":[{"href":"https:\/\/www.serviceobjects.com\/docs\/wp-json\/wp\/v2\/media?parent=5206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}