configuration Asterisk iax.conf file

This file is used to configure clients connecting via the Inter-Asterisk eXchange protocol. IAX is primarily used for passing calls between Asterisk servers. Frequently Multiple Asterisk servers are configured to intercommunicate with each other using this file. The iax.conf file is shared by both IAX version 1 and version 2 implementations
The iax.conf file begins with a general section, which sets global server options. Within the general section, we can also configure the Asterisk server to register as a client with a remote server, for access to the dialplan of another Asterisk system. Following the general section, clients are defined, one per section. Sections are delineated by their name in brackets.
The following keywords are used in iax.conf.
1-In the general section:
port: The port to listen on for incoming connections. The default is port 5036. Takes as it's argument a port number (which must not be in use by another service.)
bindaddr: If multiple IP addresses are available in the same system,this option may be set to bind Asterisk to a single interface.
amaflags: Sets the AMA flags, affecting the categorization of entries in the call detail records. This keyword may also be set on a per client basis, within their client definition
accountcode: Sets the default account code to log IAX calls to. This keyword can also be used within a client definition to set the account code for that client.
bandwidth: This option is used to control which codecs are used generally. Rather than allowing or disallowing specific codecs, this option may be set to 'low' to automatically avoid some codecs that don't work well in low bandwidth sitiuations. Takes an option of low or high.
allow: Specifically allow a certain codec to be used. Takes a codec, or all. Using all is the same as specifying bandwidth=high.
disallow: Specifically disallow a certain codec.
jitterbuffer: Turn on or off the jitter buffer. The jitter buffer is used to maximize audio quality by balancing latency against the number of dropped packets. A number of keywords exist to fine tune the jitterbuffer.
dropcount: Sets the maximum number of packets to be dropped in order to reduce latency, per memory size.
maxjitterbuffer: Sets the maximum size of the jitterbuffer. maxexcessjitterbuffer: Sets the the maximum excess jitter buffer,which if exceeded, causes the jitter buffer to slowly shrink in order to improve latency.
register: Register is used to tell the Asterisk server to register with another Asterisk server. This is normally only needed if our local server has a dynamic IP address and needs to tell the other server where to find it.
tos: Specify the type of service bits to set on IAX packets, which may improve routing of the packets
2-Options for Entities 
Entity definitions begin with the entity name in brackets. The name is followed by a number of keyword/value pairs applying to the entity in which they are set.
trunk: Enables or disables trunking for a given user or peer. Trunk mode is a more efficient method of operating IAX if there are typically many calls running on the link. Trunk mode requires
having a Zaptel interface in the Asterisk server.
mailbox: Provides a mailbox to associate with a given peer, so that when it registers it can be notified of any pending messages waiting.
.accountcode: When used within a client definition, sets the account
code for that client only. This is used by the call logging service.
qualify: Tells Asterisk whether to test whether the peer is alive before attempting to connect the call. If set to yes Asterisk will periodically contact the peer before forwarding any call information. The argument specified is the maximum number of milliseconds that a
peer can take to respond before it is considered “unavailable.”
defaultip: The default IP address for an IAX client. This field is consulted if Asterisk receives a call for an IAX client that is dynamic and has not registered to let Asterisk know the current IP address. Takes as it’s argument an IP address.
Read More :http://bananabread.net/AsteriskHandbk_w_Bkmarks.pdf








Related post



Newer Post Older Post

0 comments:

Post a Comment

 

Wiki Voip And Fax Tutorials Copyright © 2010 Labloub