mr. barker
2005-Apr-13 05:31 UTC
[Asterisk-Users] Question about Routing Order 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. Thank you in return. "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) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050413/6e95bf45/attachment.htm