Hi all,
I apologize if this question was already answered, but I could not find the solution to it.
I have installed FreePBX on Ubuntu and already connected it to an Exchange Server, a Lync Server and a SIP provider.
On the FreePBX Box, there are also some extensions registered.
Incoming calls from the SIP provider get to FreePBX and can be routed to an extension, by manually specifying the extension to call (in an incoming route).
Internal calls also get properly routed to the right desinations, based on their first digit of the extension, i.e. numbers 3xx are extensions on FreePBX, 1xx is Exchange and 2xx is Lync.
What I want to do is this:
Whenever an outside caller (through the SIP Provider) calls my number plus an extension, the according extension should ring, either on FreePBX or one of the connnected trunks (Exchange or Lync).
Example:
The number I got from my SIP provider is: “+49 6666 12345678”.
If someone calls “+49 6666 12345678-321”, the call should get transferred to the extension 321 on FreePBX.
I was not able to implement that behaviour somehow:
I created Incoming Routes with wildcards for Incoming calls (DID _496666123456781XX goes to Trunk Exchange and accordingly for Lync) and that works, but I am unable to create a rule to match local extensions.
My only solution right now is, to manually add an incoming route for every extension on FreePBX, but that’s cumbersome and not flexible.
Further, I currently have to maintain two sets of rules, one for incoming and one for outgoing, although they are basically identical.
I’d appreciate your help to carry out this seemingly simple task.
Best,
Daniel
PS: I did not include log messages, because I don’t think they are relevant.
I can provide them of course, if necessary.