Aren't country codes 1 or 2 digits?   Area codes are 3 digits:
44 is a country code, 441 is an area code... the country code for
Bermuda is '1', same as Canada, US, and most of the Carribean nations.

Check this out for the solution you need:
http://lists.digium.com/pipermail/asterisk-dev/2004-May/004151.html



On Thu, 3 Mar 2005 06:25:09 -0800, VoIP Services <[EMAIL PROTECTED]> wrote:
>  
> Some country codes are three digits long.  Some are two. 
> e.g. UK 44 , Bermuda 441 
> Does anyone know a formula for determining which part of a dialled number is
> the country code and city code ? 
>   
>   
> _______________________________________________
> Asterisk-Users mailing list
> [email protected]
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
>
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to