That's a really solid suggestion.
What I actually did was define a global variable called ${Attendant} and I
would set it to SIP/100 or ZAP/3 or whatever. That way when there was a
line of code that said
exten => t,1,dial(${Attendant})
or
exten => 0,1,dial(${Attendant})
then it was obvious what was being done. It also meant that if somebody
else was going to act as the attendant, then I could change one line and be
certain that I wasn't going to have unpleasant side effects. It's also a
nice way of documenting things clearly.
On my little home system I also defined variables like ${TrunkLocal} and
${TrunkLD} so that I could easily choose and document where my calls were
going. I never have to scroll through my extensions.conf to change that
stuff. It's all right at the top and it's a quick change.
We could write a book: "Asterisk Conf Files - Elements of Style" or "1024
Ways to Skin a Cat" :-)
Dave
On 5/18/06, Blaine Aldridge <[EMAIL PROTECTED]> wrote:
Hey,
Another way to do it would be using the Goto cmd.
exten => 0,1,Goto(internal-extensions,100,1)
Goto([[context|]extension|]priority)
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Goto
This way if you change something in the dialplan for the 100 extension
you don't need to make the changes for the 0 extension as well.
Blaine
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
David Donovan
Consultant
Fulcrum Solutions