I agree that it doesn’t seem like I should be making all these manual entries but the guys at callcentric have gotten me through my last 2 or 3 challenges. The whole reason I decided to install FeePBX was to get a basic system up and running quickly and learn about the stuff “under the hood” along the way. I didn’t think I would have to do anything with a text editor.
But this is all new to me and initially I used them as much as possible because I was desperate to get a system up and running for my friends quickly. Anyway that didn’t pan out so now I guess I want to learn this the right way. I went through a video tutorial and a text based how-to on the IVR through FreePBX and both scenarios ended in a system that wouldn’t answer.
These are the instructions the dude at callcentric gave me. Once again they ivolve the use of a Text Editor which just didn’t seem right when I thought the whole point of FreePBX was to do the grunt work with the GUI.
Mar 6, 2009 08:28 AM | Customer service
Hello,
As you are using the FreePBX in conjunction with your Asterisk, you do not need to define your inbound routes directly on your ‘extensions_custom.conf’ file, rather please try defining your inbound routes via. the FreePBX interface.
As mentioned on the following page (http://www.callcentric.com/support/device/did_trixbox), please add the following lines to your ‘extensions_custom.conf’ file:
[custom-incoming]
exten => s,1,Set(Var_TO=${SIP_HEADER(TO)})
exten => s,2,GotoIf($["${Var_TO}" = “sip:[email protected]”]?extension1,s,1:3)
exten => s,3,GotoIf($["${Var_TO}" = “sip:[email protected]”]?ext-did,18662365040,1:4)
exten => h,4,Macro(hangupcall)
[extension1]
exten => s,1,Dial(SIP/6015)
Next, once you have define the above custom application, you will need to define a custom destination within your FreePBX interface by visiting the ‘Tools’ tab of the FreePBX interface, and by clicking on the ‘Custom Destination’ option. From there, please add the custom destination “custom-incoming,s,1” (without the quotations).
Next, please visit the ‘Inbound routes’ page, and create a new inbound route by using the DID number “17772536067”. On that same page, please select your newly created custom destination “custom-incoming,s,1”.
Once you have done that, please create another Inbound route for your 18662365040 phone number; and on the same page, (assuming that you have created your IVR via the FreePBX interface), please select your IVR.
In addition to the above mentioned, you will need to modify a few more settings in order for your inbound routes to function properly, specifically, please change the line “context=from-callcentric” from both your ‘sip_general_custom.conf’ file as well as your Trunk configuration page, to “context=from-pstn”
Once you have performed the above mentioned, you may need to restart the entire Asterisk service in order for the changes to take into effect.
Should you continue to experience any issues, or if you have any other questions, please let us know.