Skype Logo Take a deep breath™.
Buy Skype Credit · Help ·
  • Download
  • Use Skype
  • Business
  • Shop
  • Account
Peter Kalmström

PNR - The black magic behind phone number recognition

By My status Peter Kalmström on January 26, 2006 in Developer Blog.

You might have noticed that the Skype Web Toolbars are getting better at recognizing phone numbers in web pages. We have done a lot of work in this area and now we are (almost) ready to share it with the world!
Do you need to recognize or clean up phone numbers to make Skype phone calls? PNR is your friend!

How
The PNR is a standard COM-component that can be called from any programming language that supports such components. If you are in this devzone I am sure you know what I am talking about. A free re-usable component!

What can it do
So far we have seen these major uses for the PNR:
1. Finding phone numbers in text or html. If you supply it with a (long or short) body of text or html it will return a collection of all the phone numbers found in the text.
2. Cleaning up existing phone numbers, making them into proper international dialling numbers.
3. List of countries in 7 languages. If you need to have a list of country names localized (and maybe even grouped by part of the world) the PNR has all that built in.
4. Country Selector dialog - if you want to let the user specify which country he/she is in - the PNR has a nice Skype-blue world map to select the country from.
5. You could actually place it on a web server also - to help you make phone numbers into the proper international dialling format before storing them into a database. The component doesn't have any dependencies so you can basically install it on any machine running Windows. (Yes, we plan to port it also)

Example
Let's say our favorite devzone blogger, Lester has a customer database with phone numbers in it:
1. Customers are mainly in the UK and don't have the country code filled out.
2. Some customers are in other countries and they do have the country field filled out.
3. Phone numbers can be either in local format or in international dialling format (starting with + or 00)

In this scenario Lester can use the PNR to clean up the phone numbers and let his users call via SkypeOut. He would supply the current number for example 0151 5311777 and GB for United Kingdom.
The PNR component would then return +441515311777. This might not look so impressive but consider that the PNR has (correctly) removed the 0. The PNR knows the full list of such city codes prefixes for every country in the world. Also it knows when to remove them and when to leave them in (in Italy for example).

Now all that Lester needs to do, is to add a nice looking Skype icon next to each phone number and make it a nice user-friendly skype:+441515311777 link.
![Nice Skype Button](http://share.skype.com/templates/skype_buttons/i/buttons/call_blue_transparent_34x34.png)

Call to action!
Do you have any kind of application development going on that has phone numbers in it? I am sure this will make adding Skype dialling much easier and more reliable for you. Let us know your progress, or add your tools to the Extras gallery!!

Beta
The current PNR version is still in BETA - along with the Skype Web Toolbars, so there are still some issues and of course, you use it at your own peril. However, it is quite stable and useful, in my opinion.

Where?
If you install one of the Web Toolbars you can find the SPhoneParser.dll under the Skype program files directory.

Links:
Download and try the Skype Web Toolbars
Optimize your own site for Skype Web Toolbars
Nice Skype Buttons

View blog reactions

Comments

Nice job!

I know how complicated that can be and I appreciate your efforts a lot. The value in reliable and usable data is huge and I always wished that any system that allowed phone numbers to be stored would force normalisation. Well, that's not the case. That's why such analyzers are required.

Looking forward to see the final versions of the toolbars.

jurgenhaas | Thursday, Jan 26

So when do we PNR as a web service?

evanwolf | Monday, Aug 28

Can this be turned off? It's wreaking havoc by inserting a bunch of code in our clients' web pages. My company developed a CMS for clients that uses a WYSIWYG editor, and Skype *automatically* puts this code in the content editor whenever it finds a phone number and the person editing the content has a Skype window open. This is NOT GOOD.

jenonskype | Thursday, Feb 1

While it is correct in most countries to drop the initial zero in front of the area code, it's not for Italy. Even if you add the country code to it, the zero in front of the area code needs to stay.

Could you please fix this?

fritzschmitz | Saturday, Mar 24

Please tell me how to switch this off .. it is wreaking my web pages!!!!!

ewbimisglobal | Sunday, Dec 9

CAn the phone number formatting be turned off?

dmcclana | Monday, Dec 17

Were there any responses to those who want a way to turn this feature off? I, too, would like for it to go away...

twreeves7378 | Friday, Feb 8

Hi, Peter:
I recognized your name from the error message I get when my IE7 freezes up. Unfortunately IE7 is totally disabled and unable to forward the error report to you. Right now, I'm using Firefox, or I wouldn't be able to post this. I cannot use IE7 without uninstalling Skype. I have updated to the latest version of Skype and done all patches to my WindowsXP SP2 office workstation using Microsoft Update.

Here's the error:
can also see the page, but after loading 3 secs later... I get IE 7 error... IE has encountered a problem and needs to close..."

AppName: iexplorer.exe
AppVer: 7.0.6000.16574
ModName: sphoneparser.dll
ModVer: 1.0.1.157
Offset: 0001dd74

mvalleydave | Wednesday, Feb 13

Hey mate, how do we turn this feature off? Its ruining my html styles cause of it. Its not just happening to me only.

geekmonkey | Thursday, Mar 6

Just to echo what MOST people are asking: how can a site owner disable this rather pointless 'enhancement' when it is defacing our well-crafted web pages?

This behaviour is going to quickly become the norm for anyone with Skype installed, and it is ruining our page designs.

Most users will not understand what is going on, they will simply think that we haven't been doing our job right.

Kindly provide instructions which will allow us to block the unsolicited rewriting of our clients' websites.

fergbyrne | Thursday, Mar 13

All web sites ruined, I think better turn it off for all sites. And who want this future on own site then he just insert same html code that ALLOW skype to change phone number. Respect web design.

polyetilen | Thursday, Apr 10

Okay from messing with the skype options, I discovered nothing...but on the window browser IE 7 you can disable phone number recognition. [prn]

To disable Skype number recognition in IE7:
1. Open browser, go to tools, internet options
2. Select Programs tab at top
3. Click Manage add-ons button at bottom
4. Wait for window to open and populate add-ons
5. KILL!!!! "Skype add-on" (mastermind) [select both and disable]

What if Skype is already installed on all the machines in your company or network already? Copy this info and broadcast email, otherwise you will have to uninstall and reinstall Skype and wait for the window that installs plug-ins to appear and disable it at that stage.

Not sure about Mozilla.

jdavidlopez | Wednesday, Apr 16

Comment on this post

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack

Listed below are links to weblogs that reference PNR - The black magic behind phone number recognition:

» Google and eBay Announce Major Connectivity Agreement from Skype Journal
In a press release issued this morning, Google and eBay announced an agreement which comprises "two primary components involving text-based advertising and "click-to-call" advertising functionality".In the course of the press releas... [Read More]

Tracked on August 28, 2006 6:18 PM

Back to index

Subscribe to this blog
What? Tell me more…

using RSS Subscribe
via Bloglines Subscribe in Bloglines
using Newsgator Subscribe in NewsGator Online
with MyYahoo
with Google Add to Google
with My AOL Add to My AOL
with Anothr.com Subscribe by Anothr
with netvibes Add to Netvibes
with email Get email updates
Skype Developer Newsletter

Sign up now for all the latest news, tips and tricks on using Skype Public API.

Developer Zone

  • Home
  • Docs
  • Tutorials
  • Download
  • Support
  • Certification
  • Blog
  • Community
  • Help
  • Find...
Skype Blogs
  • Share Skype Blog
  • About Skype
  • Heartbeat
  • Developer Zone
  • Business
  • Jobs
  • Skype Prime
  • Skype Gear
  • Security
  • Garage
  • Mac
  • Linux
  • Eesti keeles
  • Töökuulutuste leht
  • 日本語
  • Česky
  • Deutsch
  • Français
  • Italiano
  • Brasil
  • United Kingdom
  • Svenska
  • Polski
  • United States

Recent posts

  • New Skype Certified product in June -- Trend Micro WTP for Skype
  • Developer Zone version 3 is out there
  • Developer Zone down for maintenance
  • Skype for Business Showcase in Stockholm, Sweden
  • Skype sponsors Python Developer Conference (sold out)
  • Support updates and fixes in EM 2.0
  • New Skype Certified products in April
  • Update from Eion Robb and Brandon Holland
  • Long time partners... SDP, what's going on?
  • Time to Join Skype at the eBay DevCon

Archives

  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
About us · Partners · Jobs · Prices · Security
Privacy policy · Legal · © 2008 Skype Limited