[asterisk-dev] HELP: Change the way of reading 'extensions.conf'

Tilghman Lesher tilghman at meg.abyt.es
Sat Apr 23 21:36:34 CDT 2011


On Thursday 21 April 2011 19:57:36 Abdulaziz Alasiri wrote:
> I'm a Computer Sciences student and I'm working on my Graduate Project.
> My professor asked me to change the way that 'Asterisk' uses to read
> 'extensions.conf'
> but I dont know which file I should edit.
> 
> For more explanation, I wanna change
> exten =>_2XXXX,1,Dial(IAX2/Remote_Server/${EXTEN})
> to something else.

The method of reading extensions.conf is defined in main/config.c.  This
affects ALL config files, so it's probably not what you want.  Once the file
is loaded into memory, the syntax is parsed with pbx/pbx_config.c.  This may
be what you're looking for, but I suspect it is not.  The real workhorse of
extension evaluation is located in main/pbx.c.

-- 
Tilghman



More information about the asterisk-dev mailing list