Intel 05-2352-005 manual HMP Linux 1.2 Release Update, Rev 05 September 2006September

Page 39

main()

{

int devh1, devh2, devh3; short fd;

DV_TPT tpt;

DX_IOTT iott[2]; DX_XPB xpb; SC_TSINFO tsinfo; long scts;

long tslots[32];

char basebufp[MAXLEN];

/* open two voice channels */

if ((devh1 = dx_open("dxxxB1C1", NULL)) == -1) { printf("Could not open dxxxB1C1\n");

exit (1);

}

if ((devh2 = dx_open("dxxxB1C2", NULL)) == -1) { printf("Could not open dxxxB1C2\n");

exit (1);

}

if ((devh3 = dx_open("dxxxB1C3", NULL)) == -1) { printf("Could not open dxxxB1C2\n");

exit (1);

}

if ((fd = dx_fileopen("file.vox", O_CREAT O_RDWR O_BINARY)) == -1){ printf("File open error\n");

exit (1);

}

/*

*Get channels' external time slots

*and fill in tslots[] array

*/

tsinfo.sc_numts = 1; tsinfo.sc_tsarrayp = &scts;

if (dx_getxmitslot (devh1, &tsinfo) == -1 )

{/* Handle error */ } tslots[0] = scts;

if (dx_getxmitslot (devh2, &tsinfo) == -1 )

{/* Handle error */ }

tslots[1] = scts;

/* Set up SC_TSINFO structure */ tsinfo.sc_numts = 2; tsinfo.sc_tsarrayp = &tslots[0];

/* Set up DX_XPB structure */ xpb.wFileFormat = FILE_FORMAT_VOX; xpb.wDataFormat = 0; xpb.nSamplesPerSec = 0L; xpb.wBitsPerSample = 0;

/*Set up DV_TPT structure */ dx_clrtpt (&tpt,1); tpt.tp_type = IO_EOT; tpt.tp_termno = DX_MAXDTMF; tpt.tp_length = 1; tpt.tp_flags = TF_MAXDTMF;

HMP Linux 1.2 Release Update, Rev 05 — September 2006September 2006

39

Image 39
Contents September Release UpdateHMP Linux 1.2 Release Update, Rev 05 September How to Use This Publication PurposeIntended Audience Related Information Document Rev 03, published June Updated for Service UpdateDocument Rev 05, published September Document Rev 04, published DecemberDocument Revision History Document Rev 02, published JanuaryDocument Rev 01, published October Release Developments Service Update Software InstallationAssumptions and Prerequisites Order of ProceduresFollowing messages are displayed Installing the Service UpdateEnvironment Variables HMP Verification DemoTransaction Record Support for Red Hat Enterprise Linux UpdateSupport for Suse Linux Enterprise Server Support for 120 Low Bit Rate ChannelsHMP Linux 1.2 Release Update, Rev 05 September Product or Component IssuesIssue Type Defect Number PTR NumberDescription Issues Resolved in HMPFcdgen error while loading shared Dataformatmulaw Known Issues in HMP Restrictions and LimitationsGeneral Conferencing FaxGlobal Call, IP, and Ipml Host-based H.323 Protocol Stack VoiceDemos Resolved Restrictions and LimitationsCompatibility Notes Echo Cancellation With Continuous Speech ProcessingEcho Cancellation With Conferencing Configuring UDP/RTP Port RangeConfiguring T.38 Service Port Range Coder Negotiation with Third Party Stacks SIP Call ControlExample Operating System Notes Using Multiple NICs Under Heavy LoadsElvtune Using Ioctls SolutionsRelease Documentation Documentation3 UpdatesCorrect Incorrect, Release Documentation, the following apply , Development Software, the following applyOperating Software Documentation Installation DocumentationHost Media Processing Diagnostics Guide Development Software Documentation Revised OriginalFax Software Reference for Linux and Windows Global Call API for Host Media Processing Library ReferenceGlobal Call IP for Host Media Processing Technology Guide HMP Linux 1.2 Release Update, Rev 05 September 2006September Dxmreciottdata Voice API for Host Media Processing Library Reference„ Cautions „ Description „ Errors Following example is for Linux applications „ ExampleFollowing example is for Windows applications HMP Linux 1.2 Release Update, Rev 05 September 2006September „ See Also Transaction Record Voice API for Host Media Processing Programming GuideAudio Conferencing API for Host Media Processing Demo Guide Demonstration Software Documentation$INTELDIALOGICDIR/demos/IPMediaServer IP Media Server for Host Media Processing Demo GuideGlobal Call API Demo Guide