Hi! I have a FreePBX 13 up and running, trunks, outbound and incoming routes added and extensions working. However, I am having difficulties with the dial plan (pattern). I am based in Germany and have a local landline with a flat cost plan for domestic calls to other German landlines and mobiles. I have also a SIP provider for international outbound calls.
What I did: I created two trunks, (A) one uses the local land line with flat cost plan. The other (B) uses the SIP provider for international calls.
Number format for German landlines is XXXX XXXXXX, for instance 07568 787878. Number format for German mobiles is XXX XXXXXXXX, for instance 0876 78787878. To place international calls from Germany, we dial 00 + country code + local landline or mobile number.
Question: What would be the dial pattern that will route all the local (domestic) calls to landlines and mobiles automatically through the Trunk A and block them to go through Trunk B? Also what would be the dial pattern to route all international calls through Trunk B?
At present I have the X. dial pattern in Trunk B, and it will not block domestic calls.
I know this must be something easy, but I am not finding the two working dial patterns. Any advice is welcome!