[Spam] [SpamSA] [Asterisk-Users] extracting country code from a number

David Boyd dboyd at vscllc.com
Sat May 29 19:19:20 MST 2004


See Below:

> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com]On Behalf Of usedcanon
> Sent: Saturday, May 29, 2004 7:01 PM
> To: Asterisk users
> Subject: [Spam] [SpamSA] [Asterisk-Users] extracting country code from a
> number
> 
> 
> Hi
> 
> Does anyone know of an algorythm to extract the country code from 
> a number.
> I understand that the country codes are of different length and 
> there is no
> fixed length of local area code or phone numbers.
> 
> I am sure there is a way, if not how to telephone switches handle them
> 
> Umar.
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 


Umar, you must have a valid list of country codes to match against. 

This is the only way that I know to parse them out!

Dave




More information about the asterisk-users mailing list