[asterisk-users] #include filename

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jun 16 02:28:37 CDT 2011


On Thu, Jun 16, 2011 at 12:24:15PM +0530, mahesh katta wrote:
> Hi,
> I am using asterisk1.2
> In this, my dialplan is going large , so i need to configure this small
> pieces for this, i did in my extensions.conf
> when I dial the 123 its not going , means that file is not reading. is there
> any parameters to add any where ? please tell me
> this #include is not working ...
> 
> 
> extensions.conf
> [general]
> [global]
> trunk=zap/g0
> #include exten-internal.conf

#include means that the content of the file is added verbatim here.

Which means that you added those 'exten' definitions in the [global]
section. But that is a special section from which definitions of
extensions are not read. Thus the content of the f ile is practically
ignored (or generate a parse error. Not really sure).

> [default]

Place the '#include' line at this line or somewhere below.

> exten => _X.,1,Answer
> exten => _X.,2,Dial(Zap/g0/999898999,,to)
> exten => _X.,3,Hangup
> 
> /etc/asterisk/exten-internal.conf
> exten => 123,1,Answer
> exten => 123,2,Dial(SIP/5024,,t)
> exten => 123,2,Hangup

That said: Asterisk 1.2 is an obsolete version. I honestly hope you
don't use it for any new installation. If you have a a new installation,
please use 1.8 .

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list