Daniel Bareiro
2009-May-05 10:05 UTC
[asterisk-users] Beginning to use Asterisk and tests with extensions
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all! This is my first message to the list/newsgroup. This weekend and after to have fought by some time with my soundcard with respecto to the voice capture, after assuring to have solved that problem, I installed Asterisk on Debian GNU/Linux Lenny. I made my installation on a KVM virtual machine. In order to begin and according to I could see on the basis of which I was reading in Internet, to make a basic installation initially it would be enough with the packages 'asterisk' and 'libpri', reason why those were these that I installed at the moment. But correct to me, if I'm mistaken, please. However, the following basic step would be to test with extensions and since in my house I only have a PC that use like workstation, is some "complicated" to test of calls :-) Whatever happens, I installed Twinkle from Debian GNU/Linux repositories. But to make a valid test would need another PC with softphone or "something" that allows me to call to a conventional telephone. For this I, read in some documents that the ATAs are mentioned (bah, I believe that the denomination "ATA" is something own of CISCO and perhaps most appropriate is to call it as Adapters for Analogical Telephones), that allows to connect a conventional telephone to a VoIP network of way to be able to send and to receive calls having an Ethernet connector to connect it to the LAN. What not yet it is clear to me of these ATAs is how they works. I have understood that it have its own IP and the one of PBX server, but if we have, for example, two FXS ports connecting to each of them to a conventional telephone, in the documentation that I found at the moment is not mentioned some way to associate the ports of the conventional telephones with a number of extension so that the ATA knows how to route an incoming call. The other alternative is to use a OpenVOX card, for example, but I'm not sure if this solution is worth to me because if I install it in the PC where I have the virtual machine with the Asterisk, I'm not sure if the KVM virtual machine can access to that underlying hardware. Thanks in advance and with the time I hope to be gaining knowledge also to be able to make some contribution to the list/newsgroup. Regards, Daniel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkoAD3QACgkQZpa/GxTmHTeL/QCZAa0cy77+5YIHAx5wRvDeSvTd 01EAn2yPyHuyeaabkqLL9yW4S0rb2USx =2TBa -----END PGP SIGNATURE-----
Dana Harding
2009-May-05 19:08 UTC
[asterisk-users] Beginning to use Asterisk and tests with extensions
Hello Daniel, You will find the information at http://www.voip-info.org/ and http://oreilly.com/catalog/9780596510480/ (.PDF downloadable from the "Online Book" link) very useful. The asterisk package by itself should be adequate for SIP/IAX calls. I don't think you need libpri unless you are planning on connecting asterisk to a digital connection such as ISDN or a PRI. You will need Zaptel (for Asterisk versions 1.2,1.4) or DAHDI (Asterisk versions >=1.6) if you choose to install an internal card (OpenVOX, Digium, Sangoma, etc.) I do not know if or how well this will work with a VM. I suggest testing your SIP softphone with the Echo() and/or Playback() dialplan applications before attempting to call another softphone/hardphone/etc. This will allow you to confirm that the one endpoint functions properly before adding more complexity by calling another endpoint. some things that allow you to call a conventional telephone: an ATA with an FXS port an internal card (such as OpenVOX, Digium, Sangoma) with an FXS port call a conventional phone number through the PSTN (below) To connect to the PSTN you can use any of: an ATA with an FXO port (plug an analog phone line into it) internal card with an FXO port (also to plug an analog phone line in) account with an ITSP (there is occasionally discussion on the list about advantages/issues/opinions/and flames with various ITSPs - google "site:lists.digium.com ITSP") An ATA (Analog Telephone Adapter) is basically an analog to digital converter. CISCO/Linksys does manufacture some ATAs, but this is not the only option for an ATA. There are two types of analog ports - FXO, and FXS. You plug a telephone into an FXS port. You plug a conventional phone line into an FXO port. Bad things can happen if you plug a phone line into an FXS port - do not do it. In your example of an ATA with two FXS ports, you will use two conventional telephones - one plugged into each port. The ATA will use a different user account for each of the analog ports. This requires configuring each user account on both the ATA and in Asterisk's sip.conf. The ATA functions simply as a passthrough device: "phone calls for user1 = ring port1" "phone calls for user2 = ring port2" "phone calls from port1 = use user1 account" "phone calls from port2 = user user2 account" The ATA does not decide which port is connected to which extension number. This actually happens in Asterisk's dialplan. A very basic extensions.conf to illustrate different extensions to call each port, and one to call both: [default] exten => 101,1,Dial(SIP/user1) exten => 102,1,Dial(SIP/user2) exten => 103,1,Dial(SIP/user1&SIP/user2) Hope that gets you going in the right direction. http://www.voipsupply.com/ is a good source to see what equipment is generally available to end users.