Asterisk Hacking

Configuring IAX2 and SIP connections, as well as dial plans in an abstract sense, gives you a good sense of how their respective configuration files work, but really doesn t give you a sense in how all the configuration files tie together in a typical Asterisk installation. When provisioning a user, all the configuration files seem less separate and more like pieces that function as part of a whole. Let s walk through a typical user provision and see how everything fits together.
Let s say you are the new administrator of a medium-sized business s Asterisk PBX system. Your boss walks in and tells you that a new employee, Joe Random PBXUser, is starting next week and you need to have everything ready to go on Monday.
The first step is to figure out what the new user is going to use for a phone. Is he going to use a new phone or an existing one? Has the phone already been provisioned? In this example, we are going to assume the user needs a new phone and that, thankfully, you have one right at your desk just waiting to be configured.
Next, you need to check what extension the new user should get. This depends on how the existing extensions are configured. In this example, you ve consulted your chart and extension 221 is open, so the user will get that one. Now, let s get to work.
The phone you have is SIP, so let s add...