A
download otdialdrv.h
Language: C++
Copyright: (c) 1995-97 OpenComm do Brasil Ltda.
LOC: 32
Project Info
Open Telephony Server(opentel)
Server: SourceForge
Type: cvs
...el\server\drivers\dialogic\
   dialogic.dsp
   otdialap.cpp
   otdialap.h
   otdialar.cpp
   otdialar.h
   otdialdev.h
   otdialdrv.cpp
   otdialdrv.h
   otdialdti.cpp
   otdialdti.h
   otdialdxx.cpp
   otdialdxx.h
   otdialei.cpp
   otdialei.h
   otdialev.cpp
   otdialev.h
   otdialex.cpp
   otdialex.h
   otdialgc.cpp
   otdialgc.h
   otdialmsi.cpp
   otdialmsi.h
   otdialogic.cpp
   otdialogic.h
   otdialsc.cpp
   otdialsc.h
   otdialtd.cpp
   otdialtd.h
   otdialtg.cpp
   otdialtg.h

/*****************************************************************************
* OpenTel Telephony Server & Framework
* Copyright (c) 1995-97 OpenComm do Brasil Ltda.
* Todos os direitos reservados.
* Este arquivo contem material confidencial de OpenComm do Brasil, e deve
* darse tratamento como tal.
******************************************************************************/




#ifndef __OTDIALDRV_H__
#define __OTDIALDRV_H__


#include <otdriver.h>
#include <otaudiopla.includes>
#include <otaudiorec.includes>
#include <ottonegen.includes>
#include <ottonedet.includes>
#include <otcallc.includes>

#include <dialogic/otdialdxx.h>
#include <dialogic/otdialmsi.h>



/** OtDialogicDriverThread.
This thread is responsible for the event retrieval and dispatch to the
Dialogic Resource Implementation classes.
*/
class DllExport OtDialogicDriverThread : public OtDriver
{
public:
        /// Constructor
        OtDialogicDriverThread();

        /// Destructor
        ~OtDialogicDriverThread();

        /// Thread main loop
        void run(void);

        virtual void initialize( OtDriverConfig &drvConfig );
        /////////////////////////////////////////////////////

protected:
        void initMsi(const OtBus &theBus, long board, long dev);
        void initDtiGc(const OtBus &theBus, long board, long dev, const OtString &protocol);
        void initDxx(const OtBus &theBus, long board, long dev);


        // Time to block polling it could be 0
        long _msec;

        //
        // Generic resources (ownership of elements)
        //
        OtList< OtAudioPlayer >         m_audioPlayers;
        OtList< OtAudioRecorder >       m_audioRecorders;
        OtList< OtToneDetector >        m_toneDetectors;
        OtList< OtToneGenerator >       m_toneGenerators;
        OtList< OtCallChannel >         m_callChannels;

        //
        // Dialogic propietary (ownership of elements)
        //
        OtList< OtDialogicDxx >         m_dxxs;
        OtList< OtDialogicMsiDev >              m_msis;

		OT_DECLARE_DYNCREATE(OtDialogicDriverThread);
};

#endif

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us