I want to be able to isolate only toll free numbers from my dialplan and route then through SIP instead of through a local trunk. My question is the priority numbering and it seems the toll free number would also match up with the trunk extension.
Currently:
exten => _1XXXXXXXXXX,1,SetCallerID(${DEFAULT_CIDName} <${DEFAULT_CIDNum}>)
exten => _1XXXXXXXXXX,n,Dial(${TRUNK_OB}/${EXTEN:0:11})
exten => _1XXXXXXXXXX,n,Hangup
I want to be able to add:
exten => _1800NXXXXXX,1,Dial(SIP/sip.server.com/${EXTEN})
(as well as 888, 855, 877 & 866)
but the toll free number matches the trunk Dial as well.
If I set the addition as Priority 2 and then set the trunk dial as Priority 3, would it only dial the SIP and skip the trunk or is it possible to have them both as Priority 1 and then if it’s a toll free, only dial the SIP?
I have looked everywhere and can not come up with the conclusion. Any advice would be greatly appreciated!!