How to use audiorec with CG6565-e and R9.0.x
Symptom
The audiorec tool does not work with Dialogic® CG 6565E PCI Express Media Boards.
Reason for the issue
The board type CG 6565E is not supported by audiorec.
Solution
The audiorec tool must be modified to recognize this type of board. The function InitializeBoardInfo() in ConnApi.c initializes global variables based on the type of the board. In order to support the CG 6565E board, within InitializeBoardInfo() look for the part handling the CG6565 board (find the keyword ADI_BOARDTYPE_CG6565) and do the same initialization for the CG6565e board :
case ADI_BOARDTYPE_CG6565E :
case ADI_BOARDTYPE_CG6565:
     switch_info[board].boardno = board;
     switch_info[board].boardType = ADI_BOARDTYPE_CG6565;
     strcpy(switch_info[board].cName, "CG6565");
     switch_info[board].inDSP_Stream = 64;
     switch_info[board].outDSP_Stream = 65;
     switch_info[board].inTrunk_Stream = 0;
     switch_info[board].outTrunk_Stream = 1;
Â
     switch_info[board].numtrunks    = boardinfo.numtrunks;
     switch_info[board].trunktype    = boardinfo.trunktype;
     break; |
NOTE
 you may have to run chmod 666 ConnApi.c to be allowed to write the change.
Â
If the linux makefile is not present then you can use :
#
# Name:Â Â Â makefile
# Creates: audiorec
# Usage:Â Â make -f makefile
#
DEMOTARGET=audiorec
EXTRA_LFLAGS=-lstdc++
SOURCE= audiorec.c ConnApi.c
Â
include ../nmsmacro.mak
Â
$(DEMOTARGET): $(SOURCE)
        $(CC) -v $(CFLAGS) $(DEFLIST) $(IPATHS) $(CTADEMOOBJ) $(LFLAGS) $(LPATHS) $(LIBS) $(LTHREADS) $? -o $@ |
Product List
Dialogic CG 6565E PCI Express Media Board