Frequently Asked Questions
Dial 17 for police, 18 for fire, and 124 for medical emergencies. When calling from a mobile phone, use 117 for police and 118 for fire. Remember to clearly state your location, the nature of the emergency, and any immediate dangers when calling.
Fixed-line numbers follow a 7-digit format with the prefix '20', such as '20 1234567'. Mobile numbers are 8 digits long and start with '32', '33', or '34', like '32 12345678'. International format uses '+261' followed by the local number without the leading '0'.
+261 is the internationally recognized dialing code assigned to Madagascar. This code is required when making calls to Madagascar from other countries. It ensures calls are correctly routed to the Malagasy telephone network.
Use the international format (+261 followed by the number without the leading 0) when making calls from outside Madagascar, storing numbers in databases, and for any application requiring international compatibility. This format is the most portable and universally recognized.
Yes, thanks to Mobile Number Portability (MNP), you can switch providers in Madagascar without changing your phone number. The process typically takes 48 hours, involving a port request, validation, and transfer overseen by ARTEC.
The main mobile operators in Madagascar are Telma, Orange Madagascar, Airtel Madagascar, and Telma Mobile. Other providers include Madamobil, Gulfsat Madagascar (Blueline), Datacom, and Data Telecom Services (DTS, Moov). Each operator has its own specific prefixes for mobile numbers.
Use a regular expression like ^3[2-4,7-9]\d{7}$
to validate mobile numbers. This checks for prefixes 32, 33, 34, and the reserved range 37-39, along with the 7 following digits.
Remove non-numeric characters, strip the international prefix ('00261' or '261'), and remove any leading '0' for local numbers. This ensures consistent format before applying validation rules.
ARTEC (Autorité de Régulation des Technologies de Communication) is the regulatory body for telecommunications in Madagascar. They oversee number allocation, service standards, and technical compliance within the industry. For more information, visit their website at www.artec.mg.
Use an in-memory data store like Redis to cache validation results. Set a suitable TTL (Time To Live) for cached entries, considering MNP (Mobile Number Portability), which can affect number validity over time.
To call France from Madagascar, dial 00 followed by France's country code (33), the area code (without the leading 0), and the local number. For instance, 00 33 1 23456789.
In Madagascar, the prefix '20' designates a fixed-line phone number. Fixed-line numbers following this prefix typically consist of seven digits, totaling nine digits when including the prefix.
Similar to 119 from mobile phones, the number 19 is used to directly contact a police station in Madagascar. This provides a more direct line of communication than the general emergency number 17 or 117 from mobile phones, which connect to the nearest police station.
Madagascar Phone Numbers: Format, Area Code +261 & Validation Guide (2024)
This comprehensive guide equips you to handle Madagascar phone numbers (country code +261) effectively in your applications. You'll master emergency services handling, operator prefixes, E.164 validation rules, formatting standards, Mobile Number Portability (MNP) implementation, and ARTEC regulatory compliance. Use this practical knowledge to build compliant and efficient telecom systems.
Madagascar Emergency Numbers: Critical Services & Response
Handle emergency numbers correctly in any application dealing with Malagasy phone numbers. These short codes provide direct access to vital services. Configure your system to recognize and prioritize them.
Emergency Contact Numbers
Madagascar's emergency response system uses dedicated short codes:
Service Coverage and Response Times: Emergency service availability varies significantly between urban and rural areas. Urban centers like Antananarivo have established emergency infrastructure with faster response capabilities. Rural areas face substantial challenges due to limited road infrastructure, sparse coverage, and Madagascar's energy crisis (less than one-third of the population has grid electricity access). Response times in rural areas can be significantly delayed compared to urban standards. Emergency operators primarily communicate in French and Malagasy; multilingual support may be limited. (Source: IFRC Madagascar Case Study, 2020)
When calling emergency services, remain calm and state:
Madagascar Telecommunications: Network Coverage & Major Operators
Understand the telecommunications landscape to handle numbers effectively. Know the major operators (Telma, Orange, Airtel) and their respective prefixes.
Service Provider Landscape
Three major operators lead Madagascar's telecommunications market with distinct market positions:
Network Coverage Statistics
As of 2024, Madagascar's mobile network coverage improved significantly:
Geographic Coverage: Network coverage concentrates in major urban areas including Antananarivo (capital), Toamasina, Mahajanga, Fianarantsoa, Antsiranana, and Toliara. Rural and remote areas experience limited coverage, particularly for advanced services like 4G. Madagascar's six administrative zones (Antananarivo, Toamasina, Mahajanga, Fianarantsoa, Antsiranana, Toliara) have varying infrastructure density, with Antananarivo region receiving the highest investment and coverage. (Source: ITU Madagascar Numbering Plan, 2022)
International Infrastructure Developments
Madagascar benefited from recent submarine cable investments:
Mobile Number Portability (MNP) in Madagascar: 48-Hour Porting
Mobile Number Portability (MNP) impacts how you design your validation systems. Account for numbers changing providers while retaining their original format.
Implementation and Benefits
MNP Status and Adoption: While MNP infrastructure exists in Madagascar with ARTEC oversight, specific launch dates and comprehensive adoption statistics are not publicly documented in recent regulatory reports. The 48-hour porting window standard applies to active MNP transactions. Implementation follows regional African standards, though uptake rates vary significantly across operators. Design your systems to accommodate MNP scenarios even if adoption rates remain moderate.
Eligibility Requirements: Customers must have an active account in good standing with no outstanding contractual obligations to their current provider. Post-paid customers may need to settle final bills before porting. Pre-paid customers generally face fewer restrictions. Verify eligibility requirements with individual operators as policies may vary.
MNP delivers several advantages:
Technical Implementation
MNP follows these steps:
Porting Fees: Individual operators set specific porting fees, which may vary. Contact operators directly for current fee schedules. ARTEC regulates maximum allowable fees to prevent anti-competitive practices. Fees typically range from nominal to moderate amounts to cover administrative costs.
Common Issues and Troubleshooting: Port failures can occur due to incorrect customer information, outstanding bills, active contracts, or technical errors. If a port fails, the customer remains with their original provider. Rollback procedures automatically revert partial ports. Customers should maintain dual-SIM capability during transition periods when possible.
How to Dial Madagascar Phone Numbers: Domestic & International
Master dialing procedures to ensure your applications correctly format and process numbers. Differentiate between local, domestic, and international calls with country code +261.
Domestic Calling Guide
Leading Zero Usage: Madagascar uses a "0" prefix for inter-operator calls within the country. When calling a subscriber on a different operator network, dial "0" followed by the operator code (AB) plus the subscriber number. For calls within the same operator network (Telecom Malagasy fixed-line), dial the 7-digit subscriber number directly without the leading zero. Mobile-to-mobile calls within the same network may omit the leading zero depending on operator implementation. (Source: ITU Madagascar Numbering Plan, 2022)
20 22 345 67
for Antananarivo numbers on Telma network).0 + 2-digit operator code + 7-digit number
(e.g.,0 20 22 345 67
).32 12 345 678
).0 + 8-digit number
(e.g.,0 32 12 345 678
).17
for Police,124
for Medical).Call Costs: Pricing varies by operator, time of day, and call type (on-net vs. off-net). On-net calls (within the same operator) typically cost less than off-net calls. Peak rates generally apply during business hours (approximately 8:00–18:00), with reduced off-peak rates in evenings and weekends. Contact individual operators for current tariffs as pricing is competitive and subject to promotional changes.
International Calling to and from Madagascar
00 + Country Code + Area Code + Number
(e.g., calling France:00 33 1 23456789
).+261 + Local Number (without leading 0)
(e.g.,+261 32 12345678
). Store and use this E.164 international format internally for consistency.Madagascar Phone Number Validation: Technical Implementation Guide
Implement validation and essential features in your systems using this practical guidance. Build robust and efficient solutions with regex patterns and E.164 formatting.
Validation Requirements
Enforce these validation rules in your system:
^20\d{6,7}$
for national format. Geographic numbers include area codes: 20 22 (Antananarivo), 20 53 (Toamasina), 20 62 (Mahajanga), 20 75 (Fianarantsoa), 20 82 (Antsiranana), 20 94 (Toliara). Learn more about international phone number formats. (Source: ITU Madagascar Numbering Plan, 2022)^3[2-4,7-9]\d{7}$
. Includes 37-39 for future mobile service expansion as reserved by ARTEC. Prefix 38 allocated to Telma Mobile in October 2022. Prefix 39 allocated to Blueline MVNO in August 2013. Use phone lookup tools to verify operator assignments. (Source: ITU Madagascar Numbering Plan, 2022)^22\d{7}$
.Preprocessing Implementation
This function cleans and normalizes the input phone number, removing non-numeric characters and handling international prefixes. Complete this crucial first step before validation.
Python Implementation:
Validation Implementation
This function uses regular expressions to validate the processed phone number. It returns a structured object indicating validity, number type, and identified operator.
Caching Strategy
Implement caching to improve performance. Use Redis or a similar in-memory data store.
This implementation includes error handling, connection pooling via ioredis, retry logic with exponential backoff, and batch validation support. Balance your TTL (Time To Live) between performance and data freshness, especially considering MNP's 48-hour porting window.
Error Handling and Monitoring
Recommended SLO/SLA Targets:
Alerting Thresholds:
Future-Proofing
The numbering plan includes provisions for expansion:
ARTEC Regulatory Compliance: Madagascar Telecom Requirements
Understand the regulatory environment for compliance. Know ARTEC's (Autorité de Régulation des Technologies de Communication) requirements and guidelines.
ARTEC Compliance Requirements
ARTEC (Autorité de Régulation des Technologies de Communication) regulates telecommunications in Madagascar. Key compliance requirements include:
Enforcement and Penalties: ARTEC enforces compliance through administrative sanctions, fines, and potential license suspension or revocation. Violations of ethics codes, non-compliance with technical specifications, service quality failures, and unauthorized spectrum use may result in penalties. Specific fine amounts are determined case-by-case based on violation severity and market impact. Repeat violations face escalating penalties. (Sources: Internews ARISA IEA Chapter 9 – Madagascar, November 2023; WTO Trade Policy Review, January 2025)
Reporting Requirements: Telecommunications operators must submit regular reports to ARTEC including subscriber statistics, coverage data, service quality metrics, interconnection traffic volumes, and revenue figures. Reporting frequencies vary by metric type (monthly, quarterly, annually). Contact ARTEC directly for specific reporting templates and submission procedures.
ARTEC Contact Information:
(Source: ITU Madagascar Numbering Plan, 2022)
For detailed regulatory updates and technical specifications, visit the ARTEC website: www.artec.mg
Frequently Asked Questions (FAQ)
What is Madagascar's country code for international calls?
Madagascar uses country code +261 for all international calls. Format international numbers as
+261
followed by the local number without the leading zero. For example, a mobile number032 12 345 678
becomes+261 32 12345678
in E.164 international format.How do I validate Madagascar mobile phone numbers?
Validate Madagascar mobile numbers using the regex pattern
^3[2-4,7-9]\d{7}$
after preprocessing. Mobile numbers use 8 digits with prefixes 32 (Orange), 33 (Airtel), 34 (Telma), 38 (Telma), or 39 (Blueline). Reserved prefix 37 will support future mobile services. Always remove non-numeric characters and international prefixes before validation.What are the major mobile operators in Madagascar?
The major mobile operators are Telma/Yas (14.6 million subscribers, 68% market share, prefixes 34/38), Orange Madagascar (9.4 million subscribers, ~31% market share, prefix 32), and Airtel Madagascar (prefix 33). As of 2024, 4G coverage reaches 80% of the population, while 3G covers 98%. Starlink satellite service launched in April 2024 for remote areas.
How long does Mobile Number Portability take in Madagascar?
Mobile Number Portability (MNP) in Madagascar completes within 48 hours under ARTEC oversight. The process involves submitting a port request, provider validation, transfer initiation, and ARTEC-supervised completion. Set your validation cache TTL to 24 hours or less to accommodate porting transitions.
What format do Madagascar fixed-line numbers use?
Madagascar fixed-line numbers use prefix 20 followed by area code and subscriber digits, totaling 9 digits in international format. National format: 7 digits for direct dialing. Example: Antananarivo
20 22 XXXXX
. The validation regex is^20\d{6,7}$
. Telma provides most fixed-line services. International format:+261 20 XX XXXXX
(without leading zero).What are Madagascar's emergency phone numbers?
Madagascar emergency numbers are 17 or 117 (Police), 18 or 118 (Fire Brigade), and 124 (Medical Emergency). Mobile users can dial 19 or 119 for police. Configure your application to recognize and prioritize these short codes for emergency service access. Response times vary significantly between urban and rural areas.
How do I implement E.164 formatting for Madagascar numbers?
Implement E.164 formatting by preprocessing numbers to remove non-numeric characters, stripping international prefixes (00261 or 261), removing leading zeros, then adding
+261
prefix. Example:032-12-34-5678
becomes+261321234567
. Store all numbers in E.164 format internally for consistency.What are the reserved mobile prefixes in Madagascar?
ARTEC reserved mobile prefix 37 for future mobile service expansion. Prefixes 38 (Telma Mobile, allocated October 2022) and 39 (Blueline MVNO, allocated August 2013) are already in use. Include these in your validation regex (
^3[2-4,7-9]\d{7}$
) to future-proof your system. Currently active operational prefixes are 32 (Orange), 33 (Airtel), 34 (Telma), 38 (Telma), and 39 (Blueline).How do I ensure ARTEC regulatory compliance?
Ensure ARTEC compliance by following number allocation protocols, monitoring service quality metrics, submitting required reports (subscriber data, coverage, traffic, revenue), implementing customer protection measures, maintaining network interconnection standards, ensuring emergency service access, and maintaining system redundancy. ARTEC enforces compliance through sanctions and fines for violations. Visit www.artec.mg for detailed technical specifications or contact ARTEC at artec@artec.mg.
What caching strategy works best for Madagascar phone validation?
Use Redis with 24-hour TTL (or less) for validation caching to accommodate Madagascar's 48-hour MNP window. Implement error handling with retry logic, connection pooling, and batch validation support. Implement cache invalidation for ported numbers. Balance performance against data freshness, especially during MNP transitions. Monitor cache hit rates (target >80%) and adjust TTL based on your application's tolerance for stale data.
Related Resources: Phone Number Validation & Telecom Guides
African Phone Number Guides:
Phone Validation & Formatting:
Regulatory & Compliance:
Technical Implementation:
Conclusion
You now have comprehensive expertise in Madagascar phone number validation, E.164 formatting, and ARTEC regulatory compliance. Implement the formatting rules, validation patterns, and MNP considerations to build robust telecom systems. Prioritize error handling, 24-hour cache TTL for MNP transitions, and future-proofing with reserved prefixes (37-39) to maintain efficient and compliant applications.
Quick Reference Table:
^20\d{6,7}$
^32\d{7}$
^33\d{7}$
^34\d{7}$
^38\d{7}$
^39\d{7}$
^22\d{7}$
Key Takeaways:
^3[2-4,7-9]\d{7}$
for mobile,^20\d{6,7}$
for fixed-line+261XXXXXXXX
) internally