[Asterisk-Dev] Algorithm to parse country code

Duane digium at aus-biz.com
Mon May 10 08:09:37 MST 2004


Terence Parker wrote:
> I don't recall a feature in MySQL that allows you to query x number of
> characters of a given field only.

Ummmm a hackish way would be to start at the right side and strip 
numbers off till you hit a match, this could be used for area codes that 
have different rates to the rest of a country etc...

-- 
Best regards,
  Duane

http://www.cacert.org - Free Security Certificates
http://www.nodedb.com - Think globally, network locally
http://www.sydneywireless.com - Telecommunications Freedom
http://happysnapper.com.au - Sell your photos over the net!
http://e164.org - Using Enum.164 to interconnect asterisk servers



More information about the asterisk-dev mailing list