Hello there,
I am a first time poster, but have been long learning from these fora. I have a problem with my outbound routes.
I have two providers, one of which I want to use for calls to Brazil (Provider Brazil) and the other for all other calls (Provider Other). I have working trunks for both providers. I also have two outbound routes, which seems to be where the problem is.
Route 0 -to call Brazil- has a dial pattern of 0055. or 55 (55 being the international code for Brazil). Trunk sequence is 0 Provider Brazil.The trunk for Brazil has a dial pattern of 0055|XXXXXXXXXX or 55|XXXXXXXXXX.
Route 1 has a dial pattern of [1-46-9]. (everything not starting by 5, since I call no other country with a country code starting by 5). Trunk sequence is 0 Provider Other. The trunk for everything else has a dial pattern of 00|*.
The problem is the following: if I leave both trunks enabled, all calls, irrespective of destination, go to the trunk for everything else (Provider Other), even the ones starting by 55 or 0055. If I disable the everything trunk, calls to Brazil work correctly (but then I have no provider for other calls). What is wrong with my dialplan logic? I do not understand why enabling the Provider Other trunk makes calls with Provider Brazil not work, when calls to Brazil should be processed first by outbound route 0.
Any ideas greatly appreciated. This is driving me crazy!
Many thanks,
Daniel