Extension 1234 sample - Found error in extensions_custom.conf

I am just starting to look into customizing, and really know nothing about the asterisk language. Anyways, looking into the extensions_custom.conf file I found this:

[from-internal-custom] ;1234,1,Playback(demo-congrats) ; extensions can dial 1234 ;1234,2,Hangup() ;h,1,Hangup() ;include => custom-recordme ; extensions can also dial 5678

I uncommented the first three lines in order to see how the extension 1234 would peform, saved the file, did a reload, and then when I dialed extension 1234 it do not work!

Of course knowing nothing about the language, I could not figure out why it was not working. After some reading thru the log files, I noticed a line that said “missing equal sign on line 13 of extension_custom.conf”. So looking at some other examples, I realized that these lines were missing the ‘exten =>’ in front of them.

I know this is really basic, but maybe it will help some other newbie that can’t figure out why extension 1234 won’t work!

Code should look like this:

[from-internal-custom] exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234 exten => 1234,2,Hangup() exten => h,1,Hangup()

Thanks for the feedback.

That specific file must have come from somewhere else though.

FreePBX ships with an extensions_custom.conf.sample file but it does not have the incorrect syntax in it.

You can see the sample file that is supplied with the FreePBX tarball:

http://www.freepbx.org/v2/browser/freepbx/branches/2.8/amp_conf/astetc/extensions_custom.conf.sample