#include filename

Home » Asterisk Users » #include filename
Asterisk Users 1 Comment

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
[default]
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

Best Regards,

Mahesh Katta
*BUZZ**WORKS* Business Services Private Limited
BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E)
Mumbai 400069
GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
Web http://www.buzzworks.com

One thought on - #include filename

  • Hi,

    Try to include this inside context (in your case ‘default’) rater than global:

    extensions.conf
    [general]
    [global]
    trunk=zap/g0

    [default]

    #include exten-internal.conf

    exten => _X.,1,Answer
    exten => _X.,2,Dial(Zap/g0/999898999,,to)
    exten => _X.,3,Hangup

    Best regards
    Konrad