The question is in the logical route that asterisk takes when reading and
executing the scripts. Please see the (?) questions beside the lines.

The goal is not to comment the lines "exten => snip" in the [ext-local]
everytime that I make a change using the AMP GUI. Also it would be nice to
be able to give priority to the *_custom.conf if possible.

"Extensions_additional.conf"

[aa_1]
include => aa_1-custom
exten => 1,1,Goto(ext-local,7726258,1)  ; 
exten => 2,1,Goto(ext-local,7726259,1)  ; this take the call to the
[ext-local]
exten => 3,1,Goto(ext-local,7726257,1)  ; 
exten => fax,1,Goto(ext-fax,in_fax,1)   ;

[ext-local]

include => ext-local-custom ; ? should this not be held in priority first
over any of the contents in [ext-local] ?

exten => 7726257,1,Macro(exten-vm,[EMAIL PROTECTED],7726257)
exten => 7726258,1,Macro(exten-vm,[EMAIL PROTECTED],7726258)

? I am able to "monitor" the call if I comment the line out ? as it then
seems to go to the [ext-local-custom] located in the
"extentions_custom.conf" ?

;exten => 7726259,1,Macro(exten-vm,[EMAIL PROTECTED],7726259)

;exten => 7726259,1,SetVar(CALLFILENAME=${CALLERIDNUM})
;exten => 7726259,2,SetVar(CALLTIME=${DATETIME}) 
;exten => 7726259,3,SetVar(CALLPATH=/var/www/html/monitor/7726259) 
;exten => 7726259,4,Monitor(wav,${CALLPATH}/${CALLTIME}-${CALLFILENAME},m)
;exten => 7726259,5,DIAL(SIP/7726259,15,t)
;exten => 7726259,6,Macro(exten-vm,[EMAIL PROTECTED],7726259)

exten => 9873022,1,Macro(exten-vm,[EMAIL PROTECTED],9873022)

"extentions_custom.conf"

[ext-local-custom]
;test to see if this stays

exten => 7726259,1,SetVar(CALLFILENAME=${CALLERIDNUM})
exten => 7726259,2,SetVar(CALLTIME=${DATETIME}) 
exten => 7726259,3,SetVar(CALLPATH=/var/www/html/monitor/7726259) 
exten => 7726259,4,Monitor(wav,${CALLPATH}/${CALLTIME}-${CALLFILENAME},m)
exten => 7726259,5,DIAL(SIP/7726259,15,t)
exten => 7726259,6,Macro(exten-vm,[EMAIL PROTECTED],7726259)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 7:40 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] overwriting config file problem

extensions_additional.conf and extensions.conf are for
AMP only and should not be changed.
extensions_custom.conf is for user mods. There are
some default modes in there already. It is posible to
do almost anything from extensions_custom.conf because
as you noticed all of the AMP contexts have an include
like "include => ext-local-custom" to link them to
extensions_custom.conf 


--- Robert Webb <[EMAIL PROTECTED]> wrote:
> 
> On Tue, 12 Apr 2005 14:05:06 -0500
>   "mr. barker" <[EMAIL PROTECTED]> wrote:
> > I am using [EMAIL PROTECTED]
> > 
> > 
> > 
> > When I manually add anything to the 
> >extensions_additional.conf file it gets
> > rewritten when I add an extension using the web 
> >interface 
> > 
> > I am trying to include the monitor function .. I
> got 
> >that working however it
> > gets deleted when I add something using the web 
> >interface 
> > 
> > 
> > 
> > I see that it can "include => ext-local-custom" 
> is this 
> >the file that
> > should be used to add custom scripting ?  If so
> where 
> >would it be located?
> > 
> > 
> 
> It would be located in the /etc/asterisk directory.
> It is 
> not created by default, that I can see, so you will
> need 
> to create one and add your cusom config in it. Or
> else 
> just modify the extensions.conf file and add it
> there then 
> do an include of your custom section.
> _______________________________________________
> Asterisk-Users mailing list
> [email protected]
>
http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   
>
http://lists.digium.com/mailman/listinfo/asterisk-users
> 


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to