Ring fencing extensions to use different SIP trunks

3d3dman

Member
Oct 11, 2022
30
0
6
What is the best way to ring fence extensions to use different SIP trunks for example extension 200 and 201 use sip trunk 1 only and extensions 202 and 203 use sip trunk 2 only?

I don't want to use prefixes.

Any help would be great.
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
So create two routes for the same dialplan with different gateways.

Then for each of those routes, add a condition at the beginning that matches the extensions you want.

The first condition will be something along the lines of sip_from_user ^200$ || ^201$