Index: vm1chp4-channelconfig.xml =================================================================== RCS file: /cvsroot/asterisk/docs/volume-one/vm1chp4-channelconfig.xml,v retrieving revision 1.3 diff -r1.3 vm1chp4-channelconfig.xml 79c79 < signalling=fxs_ls --- > signalling=fxs_ls 103c103 < --- > 105,106c105,172 < < --- > > The Inter-Asterisk eXchange (IAX) protocol is a completely IP based protocol. > To create a conversation between to people via IP you use IAX with as the > method of transporting the audio. To create an IAX channel you need to set > up the IAX communications in your iax.conf file. > > > First we need to set up our IAX globally used settings: > > > > [general] > port=5036 ; What port to use > bindaddr=10.78.1.90 ; What IP address to bind to > allow=all ; Allow the use of all audio codecs > > > > The example above is very minimal and only sets up the basic settings to > listen for connections and create them. The same way that Apache listens > for http requests on port 80, Asterisk will listen for IAX requests on port > 5036. > > > Unfortunately the settings above are just a start and don't allow us to > actually use that IAX connection. So we have to add some channels so that > in and out bound calls can be handled. > > > > [general] > port=5036 ; What port to use > bindaddr=10.78.1.90 ; What IP address to bind to > allow=all ; Allow the use of all audio codecs > register => username:secret@iaxtel.com > > [iaxtel-out] > type=peer ; Allow connections out > username=username ; The IAXTel username > secret=password ; The secret password > deny=0.0.0.0/0.0.0.0 ; Not just anyone can be IAXTel > permit=216.207.245.47/255.255.255.255 ; This is a server at IAXTel > permit=69.73.19.178 ; This is a server at IAXTel > > [iaxtel-in] > type=user ; Allow connections to come in > context=default ; Route calls to this context > ; in the dialplan > username=username ; The IAXTel username > secret=password ; The secret password > deny=0.0.0.0/0.0.0.0 ; Not just anyone can be IAXTel > permit=216.207.245.47/255.255.255.255 ; This is a server at IAXTel > permit=69.73.19.178 ; This is a server at IAXTel > > > > In the example above you will notice that we have 2 entries to communicate > with the IAXTel service. IAXTel is a free VoIP calling service and is used > as a testbed for Asterisk and IAX as well, as a common communication system. > > > We have 2 different kinds of connections to IAXTel, the peer and the user. > This allows us to decide that inbound calls can come from one server and > outbound calls could come from another. This is extremely useful when you > are handling a major network of Asterisk servers and are using IAX for > trunking the servers together. > >