Asterisk Architecture

Posted: July 9, 2010 in Uncategorized

Asterisk is an “Open Source PBX software” that once installed in a PC hardware along with the correct interfaces, can be used as a full featured PBX for home users, enterprises, VoIP service providers and telecoms. Asterisk is also both an Open Source Community and a commercial product from Digium. You are free to use and modify Asterisk to suit your needs.

Asterisk is middleware that connects Internet and telephony technologies with Internet and telephony applications. Asterisk applications connect any phone, phone line or packet voiceconnection to another interface or service. Asterisk scales easily and reliably from very small tovery large systems.

Asterisk supports high density, redundant applications. Asterisk supports every possible kind of telephone technology. These technologies include VoIP, SIP, H.323, IAX, and MGCP (for gateways and phone). Asterisk can interoperate with almost all-standards telephony equipment.The hardware required to connect your Asterisk systemis inexpensive. Asterisk supports traditional telephone technologies like ISDN PRI and Tcarrier including T1 and E1. Telephony applications include calling, conferencing, call bridging, voicemail, auto attendant, custom Interactive Voice Response (IVR) scripting, call parking, intercom, and many others. An Asterisk server connected to a Local Area Network (LAN) can control phones connected to that LAN. These phones can call each other through the Asterisk server. The Asterisk server can control phones connected to other networks or the Internet, even if those phones or the Asterisk server are behind firewalls. With Digium FXS interface cards, an Asterisk server can control local analog telephones. FXO and Tcarrier interface boards from Digium can connect an Asterisk server to the PSTN. This allows calls to be made to and from the PSTN. PSTN users can call phones controlled by the Asterisk server; Asterisk phones can call users on the PSTN.

Calls can be switched from one Asterisk server to another. A telephone controlled by an Asterisk server can call a telephone controlled by a second Asterisk server. A call from a telephone controlled by one Asterisk server can be switched to a second Asterisk server and then on to the PSTN.

Asterisk contains engines that perform critical functions. When Asterisk starts, the Dynamic Module Loader loads and initializes drivers. The drivers provide channel drivers, file formats, call detail recording back-ends, codecs, and applications  among others. The Asterisk PBX Switch Core accepts telephone calls from the interfaces. It handles calss according to the instructions found dial plan. It uses the Application Launcher to ring phones, to connect to voicemail or dial out on outbound trunks. The PBX Switch Core includes a Scheduler and I/O Manager that is available to drivers and applications. The Codec Translator seamlessly connects channels compressed with different codecs. Most of Asterisk’s flexibility comes from the applications, codecs, channel drivers, file formats and other facilities’ interaction with the various programming interfaces.

VoIP ( Voice Over IP)

Posted: July 9, 2010 in Uncategorized

VoIP (voice over IP) is an IP telephony term for a set of facilities used to manage the delivery of voice information over the Internet.VoIP involves sending voice information in digital form in discrete packets rather than by using the traditional circuit-committed protocols of the public switched telephone network (PSTN). A major advantage of VoIP and Internet telephony is that it avoids the tolls charged by ordinary telephone service.

Companies providing VoIP service are commonly referred to as providers, and protocols which are used to carry voice signals over the IP network are commonly referred to as Voice over IP or VoIP protocols. They may be viewed as commercial realizations of the experimental Network Voice Protocol (1973) invented for the ARPANET providers. Some cost savings are due to utilizing a single network – see attached image – to carry voice and data, especially where users have existing underutilized network capacity that can carry VoIP at no additional cost. VoIP to VoIP phone calls are sometimes free, while VoIP to PSTN may have a cost that’s borne by the VoIP user.

There are two types of PSTN to VoIP services: DID (Direct Inward Dialing) and access numbers. DID will connect the caller directly to the VoIP user while access numbers require the caller to input the extension number of the VoIP user. Access numbers are usually charged as a local call to the caller and free to the VoIP user while DID usually has a monthly fee. There are also DIDs that are free to the VoIP user but chargeable to the caller.

A major development starting in 2004 has been the introduction of mass-market VoIP services over broadband Internet access services, in which subscribers make and receive calls as they would over the PSTN. Full phone service VoIP phone companies provide inbound and outbound calling with Direct Inbound Dialing. Many offer unlimited calling to the U.S. and some to Canada or selected countries in Europe or Asia as well, for a flat monthly fee.

These services take a wide variety of forms which can be more or less similar to traditional POTS. At one extreme, an analog telephone adapter (ATA) may be connected to the broadband Internet connection and an existing telephone jack in order to provide service nearly indistinguishable from POTS on all the other jacks in the residence. This type of service, which is fixed to one location, is generally offered by broadband Internet providers such as cable companies and telephone companies as a cheaper flat-rate traditional phone service. Often the phrase “VoIP” is not used in selling these services, but instead the industry has marketed the phrase “Internet Phone” or “Digital Phone” which is aimed at typical phone users who are not necessarily tech-savvy. Typically, the provider touts the advantage of being able to keep one’s existing phone number.

At the other extreme are services like Gizmo Project and Skype which rely on a software client on the computer in order to place a call over the network, where one user ID can be used on many different computers or in different locations on a laptop. In the middle lie services which also provide a telephone adapter for connecting to the broadband connection similar to the services offered by broadband providers (and in some cases also allow direct connections of SIP phones) but which are aimed at a more tech-savvy user and allow portability from location to location. One advantage of these two types of services is the ability to make and receive calls as one would at home, anywhere in the world, at no extra cost. No additional charges are incurred, as call diversion via the PSTN would, and the called party does not have to pay for the call. For example, if a subscriber with a home phone number in a U.S. area code calls someone else in his home area code, it will be treated as a local call regardless of where that person is in the world. Often the user may elect to use someone else’s area code as his own to minimize phone costs to a frequently called long-distance number.

Another challenge for these services is the proper handling of outgoing calls from fax machines, TiVo/ReplayTV boxes, satellite television receivers, alarm systems, conventional modems or FAXmodems, and other similar devices that depend on access to a voice-grade telephone line for some or all of their functionality. At present, these types of calls sometimes go through without any problems, but in other cases they will not go through at all. And in some cases, this equipment can be made to work over a VoIP connection if the sending speed can be changed to a lower bits per second rate. If VoIP and cellular substitution becomes very popular, some ancillary equipment makers may be forced to redesign equipment, because it would no longer be possible to assume a conventional voice-grade telephone line would be available in almost all homes in North America and Western-Europe. The TestYourVoIP website offers a free service to test the quality of or diagnose an Internet connection by placing simulated VoIP calls from any Java-enabled Web browser, or from any phone or VoIP device capable of calling the PSTN network.

Although few office environments and even fewer homes use a pure VoIP infrastructure, telecommunications providers routinely use IP telephony, often over a dedicated IP network, to connect switching stations, converting voice signals to IP packets and back. The result is a data-abstracted digital network which the provider can easily upgrade and use for multiple purposes.

Corporate customer telephone support often use IP telephony exclusively to take advantage of the data abstraction. The benefit of using this technology is the need for only one class of circuit connection and better bandwidth use. Companies can acquire their own gateways to eliminate third-party costs, which is worthwhile in some situations.

VoIP is widely employed by carriers, especially for international telephone calls. It is commonly used to route traffic starting and ending at conventional PSTN telephones.

Many telecommunications companies are looking at the IP Multimedia Subsystem (IMS) which will merge Internet technologies with the mobile world, using a pure VoIP infrastructure. It will enable them to upgrade their existing systems while embracing Internet technologies such as the Web, email, instant messaging, presence, and video conferencing. It will also allow existing VoIP systems to interface with the conventional PSTN and mobile phones.