- Joined
- Jan 3, 2018
- Messages
- 5
- Reaction score
- 2
Hi everyone,
I'm running into what appears to be a limitation or bug in the Allowed Country Codes feature on 3CX Version 20 Update 9 (Build 995 Release - AI 1.4.48).
Users dial international numbers in the standard format:
00 + Country Code + Number
Example (Madrid City Hall test number):
0034915240947
The outbound rule is configured as:
Result sent to the provider:
002634915240947
This is the exact format required by the SIP provider.
The call is rejected by Allowed Country Codes with the following message:
Call from [8715] to [0034915240947] has been rejected by the 3CX Country Blocking Feature [00263].
Reason:
0034915240947 contains Prefix 00263.
Calls to 00263 are not allowed by system.
3CX interprets:
00263...
as:
00 + 263 (Zimbabwe)
instead of:
00 + 26 (carrier selection prefix) + 34 (Spain)
As a result, I would have to enable Zimbabwe (263) just to allow calls to Spain (34), which defeats the purpose of Country Blocking.
I also tried moving the carrier prefix to E.164 Processing → Add prefix = 26 instead of using the outbound rule prepend, but then the call is no longer sent correctly to the provider.
Is this expected behavior, or is it a bug?
Ideally, Allowed Country Codes should determine the destination country from the original dialed number (0034...) or provide a way to ignore carrier selection prefixes (such as Brazil's 21, 23, 26, 31, etc.) before evaluating the destination country.
Has anyone found a proper solution for providers that require a carrier selection prefix?
I'm running into what appears to be a limitation or bug in the Allowed Country Codes feature on 3CX Version 20 Update 9 (Build 995 Release - AI 1.4.48).
Environment
- 3CX Version 20 Update 9 (Build 995 Release - AI 1.4.48)
- Country: Brazil
- SIP provider requires a carrier selection prefix (26) for international calls.
Scenario
Users dial international numbers in the standard format:
00 + Country Code + Number
Example (Madrid City Hall test number):
0034915240947
The outbound rule is configured as:
- Strip first 2 digits (00)
- Prepend 0026
Result sent to the provider:
002634915240947
This is the exact format required by the SIP provider.
Problem
The call is rejected by Allowed Country Codes with the following message:
Call from [8715] to [0034915240947] has been rejected by the 3CX Country Blocking Feature [00263].
Reason:
0034915240947 contains Prefix 00263.
Calls to 00263 are not allowed by system.
3CX interprets:
00263...
as:
00 + 263 (Zimbabwe)
instead of:
00 + 26 (carrier selection prefix) + 34 (Spain)
As a result, I would have to enable Zimbabwe (263) just to allow calls to Spain (34), which defeats the purpose of Country Blocking.
Additional testing
I also tried moving the carrier prefix to E.164 Processing → Add prefix = 26 instead of using the outbound rule prepend, but then the call is no longer sent correctly to the provider.
Question
Is this expected behavior, or is it a bug?
Ideally, Allowed Country Codes should determine the destination country from the original dialed number (0034...) or provide a way to ignore carrier selection prefixes (such as Brazil's 21, 23, 26, 31, etc.) before evaluating the destination country.
Has anyone found a proper solution for providers that require a carrier selection prefix?