-
Asterisk Pdf Extensions 970카테고리 없음 2020. 2. 15. 00:03
What is an Extension? When dealing with Asterisk, the term extension does not represent a physical device such as a phone. An extension is simply a set of actions in the dialplan which may or may not write a physical device. In addition to writing a phone, an extensions might be used for such things auto-attendant menus and conference bridges.
In this guide we will be careful to use the words phone or device when referring to the physical phone, and extension when referencing the set of instructions in the Asterisk dialplan. Let's take a quick look at the dialplan, and then add two extensions. Open extensions.conf, and take a quick look at the file.
Adobe Pdf Extensions
Near the top of the file, you'll see some general-purpose sections named general and globals. Any sections in the dialplan beneath those two sections is known as a. The sample extensions.conf file has a number of other contexts, with names like demo and default. We cover the concept of contexts more in, but for now you should know that each phone or outside connection in Asterisk points at a single context. If the dialed extension does not exist in the specified context, Asterisk will reject the call. That means it is important to understand that the context option in your sip.conf or pjsip.conf configuration is what tells Asterisk to direct the call from the endpoint to the context we build in the next step. Go to the bottom of your extensions.conf file, and add a new context named from-internal since from-internal is what we configured for the context option in the page.
Naming Your Dialplan Contexts There's nothing special about the name from-internal for this context. It could have been named strawberrymilkshake, and it would have behaved exactly the same way. It is considered best practice, however, to name your contexts for the types of extensions that are contained in that context. Since this context contains extensions that will be dialing from inside the network, we'll call it from-internal. Underneath that context name, we'll create an extesion numbered 6001 which attempts to ring Alice's phone for twenty seconds, and an extension 6002 which attempts to rings Bob's phone for twenty seconds.