From: Jo-Philipp Wich Date: Sun, 22 Mar 2009 12:48:33 +0000 (+0000) Subject: applications/luci-asterisk: add intl. dialing and country codes X-Git-Tag: 0.9.0~574 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=1f219001f5201426d617d4ab5112270c9bd429bd applications/luci-asterisk: add intl. dialing and country codes --- diff --git a/applications/luci-asterisk/luasrc/asterisk/cc_idd.lua b/applications/luci-asterisk/luasrc/asterisk/cc_idd.lua new file mode 100644 index 000000000..b209b1139 --- /dev/null +++ b/applications/luci-asterisk/luasrc/asterisk/cc_idd.lua @@ -0,0 +1,254 @@ +--[[ +LuCI - Asterisk - International Direct Dialing Prefixes and Country Codes + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +]]-- + +module "luci.asterisk.cc_idd" + +CC_IDD = { +-- Country, CC, IDD + { "Afghanistan", "93", "00" }, + { "Albania", "355", "00" }, + { "Algeria", "213", "00" }, + { "American Samoa", "684", "00" }, + { "Andorra", "376", "00" }, + { "Angola", "244", "00" }, + { "Anguilla", "264", "011" }, + { "Antarctica", "672", "" }, + { "Antigua", "268", "011" }, + { "Argentina", "54", "00" }, + { "Armenia", "374", "00" }, + { "Aruba", "297", "00" }, + { "Ascension Island", "247", "00" }, + { "Australia", "61", "0011" }, + { "Austria", "43", "00" }, + { "Azberbaijan", "994", "00" }, + { "Bahamas", "242", "011" }, + { "Bahrain", "973", "00" }, + { "Bangladesh", "880", "00" }, + { "Barbados", "246", "011" }, + { "Barbuda", "268", "011" }, + { "Belarus", "375", "810" }, + { "Belgium", "32", "00" }, + { "Belize", "501", "00" }, + { "Benin", "229", "00" }, + { "Bermuda", "441", "011" }, + { "Bhutan", "975", "00" }, + { "Bolivia", "591", "00" }, + { "Bosnia", "387", "00" }, + { "Botswana", "267", "00" }, + { "Brazil", "55", "00" }, + { "British Virgin Islands", "284", "011" }, + { "Brunei", "673", "00" }, + { "Bulgaria", "359", "00" }, + { "Burkina Faso", "226", "00" }, + { "Burma (Myanmar)", "95", "00" }, + { "Burundi", "257", "00" }, + { "Cambodia", "855", "001" }, + { "Cameroon", "237", "00" }, + { "Canada", "1", "011" }, + { "Cape Verde Islands", "238", "0" }, + { "Cayman Islands", "345", "011" }, + { "Central African Rep.", "236", "00" }, + { "Chad", "235", "15" }, + { "Chile", "56", "00" }, + { "China", "86", "00" }, + { "Christmas Island", "61", "0011" }, + { "Cocos Islands", "61", "0011" }, + { "Colombia", "57", "00" }, + { "Comoros", "269", "00" }, + { "Congo", "242", "00" }, + { "Congo, Dem. Rep. of", "243", "00" }, + { "Cook Islands", "682", "00" }, + { "Costa Rica", "506", "00" }, + { "Croatia", "385", "00" }, + { "Cuba", "53", "119" }, + { "Cyprus", "357", "00" }, + { "Czech Republic", "420", "00" }, + { "Denmark", "45", "00" }, + { "Diego Garcia", "246", "00" }, + { "Djibouti", "253", "00" }, + { "Dominica", "767", "011" }, + { "Dominican Rep.", "809", "011" }, + { "Ecuador", "593", "00" }, + { "Egypt", "20", "00" }, + { "El Salvador", "503", "00" }, + { "Equatorial Guinea", "240", "00" }, + { "Eritrea", "291", "00" }, + { "Estonia", "372", "00" }, + { "Ethiopia", "251", "00" }, + { "Faeroe Islands", "298", "00" }, + { "Falkland Islands", "500", "00" }, + { "Fiji Islands", "679", "00" }, + { "Finland", "358", "00" }, + { "France", "33", "00" }, + { "French Antilles", "596", "00" }, + { "French Guiana", "594", "00" }, + { "French Polynesia", "689", "00" }, + { "Gabon", "241", "00" }, + { "Gambia", "220", "00" }, + { "Georgia", "995", "810" }, + { "Germany", "49", "00" }, + { "Ghana", "233", "00" }, + { "Gibraltar", "350", "00" }, + { "Greece", "30", "00" }, + { "Greenland", "299", "00" }, + { "Grenada", "473", "011" }, + { "Guadeloupe", "590", "00" }, + { "Guam", "671", "011" }, + { "Guantanamo Bay", "5399", "00" }, + { "Guatemala", "502", "00" }, + { "Guinea", "224", "00" }, + { "Guinea Bissau", "245", "00" }, + { "Guyana", "592", "001" }, + { "Haiti", "509", "00" }, + { "Honduras", "504", "00" }, + { "Hong Kong", "852", "001" }, + { "Hungary", "36", "00" }, + { "Iceland", "354", "00" }, + { "India", "91", "00" }, + { "Indonesia", "62", { "001", "008" } }, + { "Iran", "98", "00" }, + { "Iraq", "964", "00" }, + { "Ireland", "353", "00" }, + { "Israel", "972", "00" }, + { "Italy", "39", "00" }, + { "Ivory Coast", "225", "00" }, + { "Jamaica", "876", "011" }, + { "Japan", "81", "001" }, + { "Jordan", "962", "00" }, + { "Kazakhstan", "7", "810" }, + { "Kenya", "254", "000" }, + { "Kiribati", "686", "00" }, + { "Korea, North", "850", "00" }, + { "Korea, South", "82", "001" }, + { "Kuwait", "965", "00" }, + { "Kyrgyzstan", "996", "00" }, + { "Laos", "856", "00" }, + { "Latvia", "371", "00" }, + { "Lebanon", "961", "00" }, + { "Lesotho", "266", "00" }, + { "Liberia", "231", "00" }, + { "Libya", "218", "00" }, + { "Liechtenstein", "423", "00" }, + { "Lithuania", "370", "00" }, + { "Luxembourg", "352", "00" }, + { "Macau", "853", "00" }, + { "Macedonia", "389", "00" }, + { "Madagascar", "261", "00" }, + { "Malawi", "265", "00" }, + { "Malaysia", "60", "00" }, + { "Maldives", "960", "00" }, + { "Mali", "223", "00" }, + { "Malta", "356", "00" }, + { "Mariana Islands", "670", "011" }, + { "Marshall Islands", "692", "011" }, + { "Martinique", "596", "00" }, + { "Mauritania", "222", "00" }, + { "Mauritius", "230", "00" }, + { "Mayotte Islands", "269", "00" }, + { "Mexico", "52", "00" }, + { "Micronesia", "691", "011" }, + { "Midway Island", "808", "011" }, + { "Moldova", "373", "00" }, + { "Monaco", "377", "00" }, + { "Mongolia", "976", "001" }, + { "Montserrat", "664", "011" }, + { "Morocco", "212", "00" }, + { "Mozambique", "258", "00" }, + { "Myanmar (Burma)", "95", "00" }, + { "Namibia", "264", "00" }, + { "Nauru", "674", "00" }, + { "Nepal", "977", "00" }, + { "Netherlands", "31", "00" }, + { "Netherlands Antilles", "599", "00" }, + { "Nevis", "869", "011" }, + { "New Caledonia", "687", "00" }, + { "New Zealand", "64", "00" }, + { "Nicaragua", "505", "00" }, + { "Niger", "227", "00" }, + { "Nigeria", "234", "009" }, + { "Niue", "683", "00" }, + { "Norfolk Island", "672", "00" }, + { "Norway", "47", "00" }, + { "Oman", "968", "00" }, + { "Pakistan", "92", "00" }, + { "Palau", "680", "011" }, + { "Palestine", "970", "00" }, + { "Panama", "507", "00" }, + { "Papua New Guinea", "675", "05" }, + { "Paraguay", "595", "002" }, + { "Peru", "51", "00" }, + { "Philippines", "63", "00" }, + { "Poland", "48", "00" }, + { "Portugal", "351", "00" }, + { "Puerto Rico", { "787", "939" }, "011" }, + { "Qatar", "974", "00" }, + { "Reunion Island", "262", "00" }, + { "Romania", "40", "00" }, + { "Russia", "7", "810" }, + { "Rwanda", "250", "00" }, + { "St. Helena", "290", "00" }, + { "St. Kitts", "869", "011" }, + { "St. Lucia", "758", "011" }, + { "St. Perre & Miquelon", "508", "00" }, + { "St. Vincent", "784", "011" }, + { "San Marino", "378", "00" }, + { "Sao Tome & Principe", "239", "00" }, + { "Saudi Arabia", "966", "00" }, + { "Senegal", "221", "00" }, + { "Serbia", "381", "99" }, + { "Seychelles", "248", "00" }, + { "Sierra Leone", "232", "00" }, + { "Singapore", "65", "001" }, + { "Slovakia", "421", "00" }, + { "Slovenia", "386", "00" }, + { "Solomon Islands", "677", "00" }, + { "Somalia", "252", "00" }, + { "South Africa", "27", "09" }, + { "Spain", "34", "00" }, + { "Sri Lanka", "94", "00" }, + { "Sudan", "249", "00" }, + { "Suriname", "597", "00" }, + { "Swaziland", "268", "00" }, + { "Sweden", "46", "00" }, + { "Switzerland", "41", "00" }, + { "Syria", "963", "00" }, + { "Taiwan", "886", "002" }, + { "Tajikistan", "992", "810" }, + { "Tanzania", "255", "00" }, + { "Thailand", "66", "001" }, + { "Togo", "228", "00" }, + { "Tonga", "676", "00" }, + { "Trinidad & Tobago", "868", "011" }, + { "Tunisia", "216", "00" }, + { "Turkey", "90", "00" }, + { "Turkmenistan", "993", "810" }, + { "Turks & Caicos", "649", "011" }, + { "Tuvalu", "688", "00" }, + { "Uganda", "256", "000" }, + { "Ukraine", "380", "810" }, + { "United Arab Emirates", "971", "00" }, + { "United Kingdom", "44", "00" }, + { "Uruguay", "598", "00" }, + { "USA", "1", "011" }, + { "US Virgin Islands", "340", "011" }, + { "Uzbekistan", "998", "810" }, + { "Vanuatu", "678", "00" }, + { "Vatican City", "39", "00" }, + { "Venezuela", "58", "00" }, + { "Vietnam", "84", "00" }, + { "Wake Island", "808", "00" }, + { "Wallis & Futuna", "681", "19" }, + { "Western Samoa", "685", "00" }, + { "Yemen", "967", "00" }, + { "Yugoslavia", "381", "99" }, + { "Zambia", "260", "00" }, + { "Zimbabwe", "263", "00" } +}