Ring fencing extensions to use different SIP trunks

Status
Not open for further replies.

3d3dman

Member
Oct 11, 2022
33
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.
 
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$
 
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$
Thanks Daz, we tried it but it doesnt seem to have worked, is there any other changes that need to be made - we also removed one of lines/characters in the example ^200$ | ^201$
 
Status
Not open for further replies.