Is FreePBX able to route outgoing calls to a particular trunk based on the SIP extension that is placing the call? The only way I can see to do it is to select the trunks using different dialling prefixes, which is clumsy and doesn’t gaurantee each extension is using the correct trunk. Surely there is a way to do it by SIP extension.
so what i want is that
if 4XX extension calls then trunk ABC should be used
if 3XX extension calls then any available trunk can be used
Create an Outbound Route that uses trunk ABC, has the same dial patterns as your regular route and has 4XX in the CallerID field. Put this route higher in the list than your regular route, but after any Emergency routes.
No. It’s the CID pattern of the extension dialing the number. If your extensions are in the 300 range for example you can specify an exact extension like 325 or you can do a range with 3XX and it will match the pattern to the extension that’s dialing the number.