I am using asterisk@home 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? [ext-local] include => ext-local-custom exten => 7726257,1,Macro(exten-vm,7726257@default,7726257) exten => 7726258,1,Macro(exten-vm,7726258@default,7726258) exten => 7726259,1,Macro(exten-vm,7726259@default,7726259) exten => 9873022,1,Macro(exten-vm,9873022@default,9873022) exten => 9873023,1,Macro(exten-vm,novm,9873023) Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050412/156665b6/attachment.htm
On Tue, 12 Apr 2005 14:05:06 -0500 "mr. barker" <cabalitomb@shaw.ca> wrote:> I am using asterisk@home > > > > 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.
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 <asterisk@ropeguru.com> wrote:> > On Tue, 12 Apr 2005 14:05:06 -0500 > "mr. barker" <cabalitomb@shaw.ca> wrote: > > I am using asterisk@home > > > > > > > > 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 > Asterisk-Users@lists.digium.com >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/
mr. barker
2005-Apr-12 20:20 UTC
[Asterisk-Users] Script routing Logic Question in .conf files
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,7726257@default,7726257)
exten => 7726258,1,Macro(exten-vm,7726258@default,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,7726259@default,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,7726259@default,7726259)
exten => 9873022,1,Macro(exten-vm,9873022@default,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,7726259@default,7726259)
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Asterisk@Home
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 <asterisk@ropeguru.com> wrote:>
> On Tue, 12 Apr 2005 14:05:06 -0500
> "mr. barker" <cabalitomb@shaw.ca> wrote:
> > I am using asterisk@home
> >
> >
> >
> > 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
> Asterisk-Users@lists.digium.com
>
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
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users