2 sip trunks route to 2 extensions

Hi all,
I have two sip trunks setup in FreePBX. They both connect to sipgate.co.uk and have their own phone numbers. How can I configure the incoming route to route each sip trunk to a different internal extension? I have 100 and 200 configured as internal extensions and would like to route all incoming calls from sip trunk 1 to ext 100 and all incoming calls from siptrunk 2 to ext 200.


Don’t try and route trunks, route the individual DID’s (DDI’s) as you want.

ok, but I see in the full.log the incoming info as the username from the sip trunk. Could I define this as a DDI then route the incoming extension ?

right got it sorted. Thanks. I needed to use the _username for the incoming DDI. Cheers :slight_smile:

1 Like

With this setup, you won’t get the DID logged in the CDR for inbound calls. It’s possible that your provider sends the DID in the to header, in which case your trunk context can be set to from-pstn-toheader to get it. Otherwise you can do something like this: DID from provider breaks incoming routes (DID matching)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.