We switched providers and a lot of prefix's in a local area code are considered long distance calls for us now. Am I correcting in assuming that if I put the following in my dialplan that this should work.
exten => _81636486XXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _81636486XXXX,n,Dial(${SIPTRUNK}/${EXTEN:1},,To)
exten => _81636NXXXXXX,n,Hangup()
exten => _81636NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _81636NXXXXXX,n,Dial(${SIPTRUNK}/${EXTEN:2},,To)
exten => _81636NXXXXXX,n,Hangup()
So any number dialed that is 636-486 will only drop the 8 but then any number that doesn't match that particular area code and prefix will drop both the 8 and the 1 before dialing?
Is there a better way to accomplish this or is what I have the best way? I think there are about 35 or so prefixes in the 636 that are considered long distance to us
ViciBox 6.0.4 | | 2.12-538a
BUILD: 160122-1401 |1.8.32.3-vici | Single Server | | No Extra Software After Installation