Sorry, I am still trying to wrap my head around this. I am very new to asterisk as well as linux, please excuse my ignorance. The vendor who installed [and is supposed to support] our asterisk system has been unwilling to fix any of our ongoing issues, we got ripped off, so I am just trying to wing it and fix what issues I can until we get another phone vendor to provide support for us.
I found extensions_custom.conf and when I look in this file I see the following lines in there:
[palookup]
exten => s,1,AGI(lookupagi.pl)
[Inbound2CApp]
exten => s,1,AGI(Inbound2CApp.pl)
exten => s,n,Goto(from-internal,${dtmfval},1)
About what’s in there:
All I personally know is palookup is a destination we send inbound calls to that will route all callers from Pennsylvania to the appropriate department and then Inbound2CApp is a program that works off of the last 5 digits of a TFN that sends calls to misc applications for call routing.
So, from your message, all I understand is I need to modify this file / files and add a template of some sort that will tell it to strip off the +1 from inbound calls.
A few more questions I have if you don’t mind:
1: Could you tell me what exactly I need to add to extensions_custom.conf? You mentioned there is a template for e164. Could you show me what this should look like? I’ve never edited a .conf on this phone system but I do have a QA FreePBX server I set up I can test with to make sure I don’t break anything.
2: Do I also need to edit extensions.conf in order for this to work?
I can do it if I have some more specific instruction, but could not figure out exactly what I need to do after reading your message. Thank you for your time and apologies for the long note here.
Side note:
What we tried here (My manager found this in another support article and asked that I try it because neither of us know how to make the change that you mentioned), was go to FreePBX Administrator > Connectivity > Trunks > Select Inbound Trunk > edit the PEER details:
Change line ‘context=from-trunk’ to ‘;context=from-trunk’ to comment it out
Add line ‘context=from-pstn-e164-us’
After making that change, I can see it still adds the +1 to the filename for inbound calls. I now understand that the PEER details is only for -outbound-settings, this explains why it did not work. The article he read was for someone that wanted the +1 removed for a problem they were having when dialing out. Not the same problem I have.
I then tried adding that line to USER details which is the only option under inbound settings, and this did not work either so I removed the line out of there.