Installing Asterisk The zconfig.h File Enable ZapRAS HDLC MMX optimization Boost ringer

The zconfig.h file is where many of the Zaptel compile-time options lie. For the most part, you should not need to edit this file, but below are some of the options that may be of interest. To enable the options, remove the comment tags (/* */). If you decide to enable any of these options, be sure to do a make clean before recompiling and reinstalling Zaptel.
 
1-Boost ringer
 
By enabling the BOOST_RINGER option, you increase the amount of voltage supplied to
a telephone during ringing from ~70V to ~89V. Some devices may not detect ring-ing below certain voltages, so this setting may be necessary. Note that upping the voltage requires more power, and that it will probably only be necessary on a tele-phone connected to a long loop. Basically, you should leave this alone unless the far end isn’t detecting ringing properly. To enable this option, uncomment the follow-ing line:

     /* #define BOOST_RINGER */

The BOOST_RINGER option can also be declared when loading the driver via modprobe,
so it does not need to be compiled into the driver (recommended).
 
2-Disable μ-law/A-law precomputation
Defining CONFIG_CALC_XLAW tells Zaptel to not precompute μ-law/A-law into tables and to recalculate it for each sample. We haven’t timed it, but the original coder felt that if you have a small number of channels and/or a small level-2 cache, it may be quicker to execute the calculation code than to actually do a lookup on the table loaded into memory. To enable this option, uncomment the following line within zconfig.h:

    /* #define CONFIG_CALC_XLAW */
 
3-Enable MMX optimization
You can enable MMX optimization (if your processor supports it) by removing the comment tags around the following line:

    /* #define CONFIG_ZAPTEL_MMX */

Be aware that CONFIG_ZAPTEL_MMX is considered to be incompatible with AMD proces-
sors and can cause system instability.
 
4-Enable aggressive suppression
Aggressive residual echo suppression with the MARK2 echo canceller can be enabled by removing the comment tags around the following line:

     /* #define AGGRESSIVE_SUPPRESSOR */

The aggressive suppressor makes the nonlinear processor (NLP) stronger. What the NLP essentially does is say, “If the sample is that quiet anyway, make the volume level about 0.”
5-Enable HDLC
When using the Zaptel driver with T1 or E1 hardware, you can configure Zaptel to use TDM channels for data instead of voice. To enable HDLC functionality in the drivers, uncomment the following line:
    /* #define CONFIG_ZAPATA_NET */

For this change to be meaningful, you must also use the sethdlc utility and perform some configuration in zapata.conf.
6-Enable ZapRAS
You can also make use of the ZapRAS program to turn Asterisk into a Remote Access Server (RAS) for use with your ISDN connections. To enable this functionality, you must uncomment the following line from within the zconfig.h file:

    /* #define CONFIG_ZAPATA_PPP */


You must also patch Asterisk and configure a PPP daemon, so be aware that this task is nontrivial.

7-Enable Zaptel’s watchdog

You can tell Zaptel to monitor the status of interfaces via its built-in “watchdog.” It will check if the interfaces stop taking interrupts or otherwise misbehave. If this hap-pens, the hardware will automatically be restarted. To enable the watchdog, uncom-ment this line:

     /* #define CONFIG_ZAPTEL_WATCHDOG */

readmore:http://examples.oreilly.com/9780596009625/openbook/ch03.pdf

Related post



Newer Post Older Post

0 comments:

Post a Comment

 

Wiki Voip And Fax Tutorials Copyright © 2010 Labloub