# Configuration differences: AG 4040 to CG 6060

The configuration differences between the AG 4040 and CG 6060 boards include:

- Product name in system configuration file

- DSP configuration and resource allocation

- Configuration keywords

- Data input and output queue constraints

- File locations

- Runtime files

## Product name in system configuration file

AG 4040 board | CG 6060 board
Product name in the system configuration file: AG_4040 AG_4040_1TE AG_4040_2TE AG_4040_4TE | Product name in the system configuration file: CG_6060 = Generic name for CG 6060 board CG_6060_4 = One, two, or four trunks

## DSP configuration and resource allocation

Item | AG 4040 board | CG 6060 board
Available functions | When a DSP file is configured on a DSP, all of its functions are available to applications. | Only specific functions in a DSP file are available to applications. Functions are spelled out in Resource[x].Definitions.
DSP files | If DSP.C5x[x].Files[y] is not used, DSP files are assigned to DSPs according to the default rules specified by DSP.C5x.DSPFiles. Defaults are: DSP.C5x.DSPFiles = mf callp tone dtmf ptf | If DSP.C5x[x].Files[y] is not used then DSP files are assigned to DSPs according to Resource[x].Definitions and Resource[x].DSPs.
Fax | Fax is in a DSP image file that requires dedicated DSPs. | Fax shares a DSP with other functions.
Number of ports | The number of ports supported depends on the DSP load. | DSP resources are preallocated for a specific number of ports. All DSP resources except conferencing must be managed by the CG resource management scheme.

## Configuration keywords

The following table lists the AG keywords that may need to be changed when porting a configuration from an AG4040 board to a CG6060 board:

AG Keyword | AG | CG
BootDiagnosticLevel | Valid values are 0-3. | Valid values are 0 and 1.
Buffers[x].Num |  | Ignored. Buffer pools grow dynamically.
DebugMask | Equivalent to setting a trace mask with agtrace <mask>. | Equivalent to setting a trace mask with cgTrace -g <mask>.
DLMFiles[x] | Required. The file names have optional .leo extensions: Trunk protocol engine: gtp[.leo] DSP function manager: svc[.leo] Play and record manager: voice[.leo] Fax manager: ag2fax[.leo] ISDN: isdn4ess[.leo] isdn5ess[.leo] isdndms[.leo] isdngen[.leo] isdnni2[.leo] isdnqsig[.leo] ISDN management: imgt[.leo] DPNSS: dpnss[.leo] | Optional. The file names have optional .dlm extensions: Fax manager: cg6060fax[.dlm] ISDN: c6060igen[.dlm] ISDN management: c6060imgt[.dlm] DPNSS: c6060dpnss[.dlm] Fusion: cg6060fusion[.dlm] ThroughPacket: cg6060tpkt[.dlm] Note: Trunk protocol engine, DSP function manager and play and record manager are included in runtime.
DSP.C5x.Lib | Default: ag2liba.r54 if XLaw = A-LAW ag2libu.r54 if XLaw = MU-LAW | Replaced by DSP.C5x[x].Libs[y]. Default is cg6kliba, set to cg6klibu for mu-law. This keyword must be specified when using mu-law, conferencing, Fusion or HDLC.
DSP.C5x.Loader | AG only (rarely used). |
DSP.C5x.DSPFiles | AG only. | Use Resource[x].Definitions to specify DSP modules.
DSP.C5x[x].Files[y] | If this keyword is absent, default rules are used to assign DSP files to DSPs using the files specified by DSP.C5x.DSPFiles. | If this keyword is absent, DSP files are assigned according to Resource[x].Definitions and Resource[x].DSPs. Required for conferencing.
DSP.C5x[x].Image | Required for fax and conferencing. | Not normally used. Fax DSP is specified with Resource[x].Definitions. Conference DSP is specified with DSP.C5x[x].Files[y].
DSP.C5x[x].Limits[y] | AG only. | DSP load balancing is automatic due to CG resource management.
DSP.C5x[x].Os | Not normally set on AG. | The sample configuration files set this to the default, dspos6u.
Echo.AutoSwitchingRefSource |  | Can only be used with DSP echo canceling.
Echo.EnableExternalPins | Echo canceler streams are 34 and 35. | Can only be used with DSP echo canceling. Echo canceler streams are 70 and 71.
Eeprom.xxx* | AG only (read only). |
LoadFile | AG only (rarely used). |
LoadSize | AG only (rarely used). |
MaxChannels | Default is 124. | Default is 900.
NetworkInterface.T1E1[x].FrameType | Default is ESF for T1, CEPT for E1. | Default is CEPT.
NetworkInterface.T1E1[x].Impedance | Default is G703_120_OHM for E1, DSX1 for T1. | Default is G703_120_OHM.
NetworkInterface.T1E1[x].LineCode | Default is B8ZS for T1, HDB3 for E1. | Default is HDB3.
RunFile | Specifies a .cor file; the default is ag4040.cor (rarely used). | The CG equivalent is ULMFile; its default is cg6060core.ulm.
SignalIdleCode | If XLaw = MU-LAW, default = 0. If XLaw = A-LAW, default = 0x09. | Replaced by DSPStream.SignalIdleCode[x], where x is a trunk number. Default is 0x0D. All trunks must be configured with the same setting.
TCPFiles[x] |  | Deprecated. Use Resource[x].TCPs instead. Note: AG and CG use the same TCP files.
VoiceIdleCode | If XLaw = MU-LAW, default = 0x7F. If XLaw = A-LAW, default = 0xD5. | Replaced by DSPStream.VoiceIdleCode[x], where x is a trunk number. The default is 0xD5. For T1, set to 0x7F.
XLaw |  | Replaced by DSP.C5x[x].XLaw. The value must match the DSP operating system service library specified with DSP.C5x[x].Libs.

## Data input and output queue constraints

AG 4040 board | CG 6060 board
Size is fixed at 703 words of data output queue memory and 703 words of data input queue memory per DSP. | Sizes are configurable. The default size of the input and output data queues is 768 (0x300) words per DSP. The Command, Data In, and Data Out queues are placed in DSP memory. By default they are at addresses 0x2000, 0x2280 and 0x2580. To make the data queues larger, change DataInQSize, DspOutQStart and DspOutQSize, keeping the queues contiguous. For example, to double the size of the data queues to 0x600, make the following changes: DSP.C5x[0..47].CmdQStart = 0x2000 #(default) DSP.C5x[0..47].CmdQSize = 0x100 DSP.C5x[0..47].DataInQStart = 0x2100 DSP.C5x[0..47].DataInQSize = 0x600 DSP.C5x[0..47].DspOutQStart = 0x2700 DSP.C5x[0..47].DspOutQSize = 0x600 Note: Increasing the queue sizes reduces the memory available to DSP functions.

## File locations

Operating system | Files | AG 4040 boards | CG 6060 boards
Windows | Sample configuration files | \nms\ag\cfg\ | \nms\cg\cfg\
Runtime files | \nms\ag\load\ | \nms\cg\load\ (except TCP files)
TCP (trunk control protocol) files | \nms\ag\load\ | \nms\ag\load\
UNIX | Sample configuration files | /opt/nms/ag/cfg/ | /opt/nms/cg/cfg/
Runtime files | /opt/nms/ag/load/ | /opt/nms/cg/load/ (except TCP files)
TCP (trunk control protocol) files | /opt/nms/ag/load/ | /opt/nms/ag/load/

## Runtime files

File type | AG 4040 board | CG 6060 board
Co-processor files | The default boot diagnostics and loader file is ag4040.lod. The default run file is ag4040.cor. | Diagnostic and loader software is installed in flash memory at the factory. The default run file is cg6060core.ulm. The OAM API downloads the run file directly into SDRAM.
DSP function files | AG boards use C549 DSPs and the DSP function files have .m54 extensions. For example, dtmf.m54. Use m54info to display a file's resource usage. | CG boards use C5441 DSPs and the DSP function files have .f41 extensions. For example, dtmf.f41. Use f41info to display a file's resource usage.
DSP image files | .c54 extensions. Fax and conferencing are provided as DSP image files. | DSP image files are not normally used on CG 6060 boards. Fax and conferencing use .f41 files instead.
DSP libraries | .r54 extensions. | .r41 extensions.
DSP OS files | .k54 extensions | .k41 extensions
Runtime extensions | In downloadable modules with .leo extensions. | In downloadable modules with .dlm extensions. Each .dlm file has a matching .sym file.
TCP files | .tcp extensions. | CG boards use the AG TCP files.