📄 resgwdevice.html
字号:
<html><head> <title> Vovida SIP User Agent </title> </head><body bgcolor="#FFFFFF"><table align="center" border="0" cellspacing="0" cellpadding="10" width="100%"> <tr> <td align="center" valign="center" bgcolor="#FFFFFF"> <a href="http://www.vovida.org"> <img src="../doc++/vovida-logo2.gif" width="90" height="88" border="0"></a> </td> <td colspan="3" align="center" valign="center" bgcolor="#8C0042"> <a href="index.html"> <font face="PrimaSans BT,Verdana,sans-serif" color="white" size="+2"> <strong> Vovida SIP User Agent </strong></font></a> </td> </tr> <tr> <td colspan="4" bgcolor="#FFFFFF"> </td> </tr></table>In file ResGwDevice.hxx:<TABLE BORDER=0><TR><TD VALIGN=TOP><H2>class <A HREF="#DOC.DOCU">ResGwDevice</A></H2></TD></H2></TD></TR></TABLE><BLOCKQUOTE>Abstract base class for all hardware.</BLOCKQUOTE><HR><H2>Inheritance:</H2><APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65><param name=classes value="CResGwDevice,MResGwDevice.html,CPhoneCardDevice,MPhoneCardDevice.html"><param name=before value="M,M^_"><param name=after value="M,M"><param name=indent value="0,0"><param name=arrowdir value="up"></APPLET><HR><DL><P><TABLE><DT><H3>Public Methods</H3><DD><TR><TD VALIGN=TOP><A HREF="#DOC.26.1"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A> </TD><TD><B>ResGwDevice</B> ()<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.2"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A> </TD><TD><B>ResGwDevice</B> ( const char* deviceName, Sptr < Fifo < Sptr < Event > > > inputQ, Sptr < Fifo < Sptr < Event > > > outputQ )<BR><I>Creates a hardware object to control a single port gateway</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.3"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A> </TD><TD><B>ResGwDevice</B> ( const char* deviceName, int <!1><A HREF="UaConfiguration.html#DOC.32.133">numEndpoints</A>, Sptr < Fifo < Sptr < Event > > > inputQ, Sptr < Fifo < Sptr < Event > > > outputQ[] )<BR><I>Creates a hardware object to control a multi port gateway</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.4"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual </TD><TD><B>~ResGwDevice</B> ()<BR><I>Destructor</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.5"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void* </TD><TD><B>hardwareMain</B> ( void* parms )<BR><I>Starts the main processing loop of the hardware</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.6"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int </TD><TD><B>addToFdSet</B> ( fd_set* fd )<BR><I>Add device's socket to the fd; returns 0 if successful, errorcode otherwise </I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.7"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int </TD><TD><B>process</B> ( fd_set* fd )<BR><I>Process all pending hardware events; returns 0 if successful, otherwise returns an errorcode.</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.8"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int </TD><TD><B>audioStart</B> ( const HardwareAudioRequest& request )<BR><I>Start audio channel on device; returns 0 if successful, errorcode otherwise </I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.9"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int </TD><TD><B>audioStop</B> ()<BR><I>Stops audio channel on device; returns 0 if successful, errorcode otherwise</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.10"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int </TD><TD><B>audioSuspend</B> ()<BR><I>suspend audio channel on device; returns 0 if successful, errorcode otherwise </I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.11"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int </TD><TD><B>audioResume</B> ( const HardwareAudioRequest& request )<BR><I>resume audio channel on device; returns 0 if successful, errorcode otherwise </I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.12"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void </TD><TD><B>processRTP</B> ()<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.13"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void </TD><TD><B>setCallId</B> ( const Sptr<SipCallId> newCallId )<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.14"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual Sptr<SipCallId> </TD><TD><B>getCallId</B> () const <BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.15"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void </TD><TD><B>addCallWaitingId</B> ( const Sptr<SipCallId> newCallId )<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.16"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual Sptr<SipCallId> </TD><TD><B>getCallWaitingId</B> () const <BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.17"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void </TD><TD><B>removeCallWaitingId</B> ( const SipCallId& newCallId )<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.18"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual Sptr<<!1><A HREF="DigitCollector.html">DigitCollector</A>> </TD><TD><B>getDigitCollector</B> ()<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.19"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual HardwareStatusType </TD><TD><B>getHardwareStatus</B> ()<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.20"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual bool </TD><TD><B>isMyHardware</B> (const SipCallId& callid)<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.21"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual bool </TD><TD><B>isOnCallWaiting</B> (const SipCallId& callid)<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.22"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual int </TD><TD><B>getRtpPort</B> ()<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.23"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void </TD><TD><B>releaseRtpPort</B> ()<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.24"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>inline Sptr< Fifo < Sptr<Event> > > </TD><TD><B>getQ</B> ()<BR><I>access functions to private data</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.25"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>inline int </TD><TD><B>getFD</B> ()<BR><I>returns the file descriptor for the device</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.26"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void </TD><TD><B>setUseRsvp</B> ( bool flag )<BR><I>RSVP stuff ported from Sessionhxx</I></TD></TR></TABLE></P><P><TABLE><DT><H3>Protected Fields</H3><DD><TR><TD VALIGN=TOP><A HREF="#DOC.26.27"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>bool </TD><TD><B>useRsvp</B> <BR><I>RSVP stuff ported from Sessionhxx</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.33"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int </TD><TD><B>myFD</B> <BR><I>file descriptor for hardware device</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.34"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>Sptr< Fifo < Sptr<Event> > > </TD><TD><B>myQ</B> <BR><I>input queue to allow the session to control hardware signals</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.35"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>bool </TD><TD><B>hookStateOffhook</B> <BR><I>true if last reported hook state was offhook</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.36"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>Sptr<SipCallId> </TD><TD><B>callId</B> <BR><I>Current call id</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.37"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>Sptr<CallWaitingIdList> </TD><TD><B>callWaitingIdList</B> <BR><I>Call Id on call waiting list</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.38"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>Sptr<<!1><A HREF="DigitCollector.html">DigitCollector</A>> </TD><TD><B>digitCollector</B> <BR><I></I></TD></TR></TABLE></P><P><TABLE><DT><H3>Protected Methods</H3><DD><TR><TD VALIGN=TOP><A HREF="#DOC.26.28"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void </TD><TD><B>provideDtmf</B> ( DeviceSignalType signal )<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.29"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>virtual void </TD><TD><B>provideCallInfo</B> ( string CallerId, string CalleeId, string ForwardReason )<BR><I></I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.30"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>int </TD><TD><B>provideSignal</B> ( DeviceSignalType signal )<BR><I>Trigger the device to send the specified signal; returns 0 if successful, errorcode otherwise</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.31"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void </TD><TD><B>processSessionMsg</B> ( Sptr < Event > event )<BR><I>Process a msg received from an session</I></TD></TR><TR><TD VALIGN=TOP><A HREF="#DOC.26.32"><IMG ALT="[more]" BORDER=0 SRC=icon1.gif></A>void </TD><TD><B>reportEvent</B> ( Sptr < Fifo < Sptr<Event> > > outputQ, DeviceEventType eventType )<BR><I>Report hardware event by adding it to specified queue</I></TD></TR></TABLE></P></DL><A NAME="DOC.DOCU"></A><HR><H2>Documentation</H2><BLOCKQUOTE>Abstract base class for all hardware. Specifies the MGCP gatewayhardware API. Defines a basic level of service provided by allsupported hardware interfaces.</BLOCKQUOTE><DL><A NAME="ResGwDevice"></A><A NAME="DOC.26.1"></A><DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ResGwDevice()</B></TT><DL><DT><DD></DL><P><A NAME="ResGwDevice"></A><A NAME="DOC.26.2"></A><DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ResGwDevice( const char* deviceName, Sptr < Fifo < Sptr < Event > > > inputQ, Sptr < Fifo < Sptr < Event > > > outputQ )</B></TT><DD>Creates a hardware object to control a single port gateway<DL><DT><DD></DL><P><A NAME="ResGwDevice"></A><A NAME="DOC.26.3"></A><DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> ResGwDevice( const char* deviceName, int <!1><A HREF="UaConfiguration.html#DOC.32.133">numEndpoints</A>, Sptr < Fifo < Sptr < Event > > > inputQ, Sptr < Fifo < Sptr < Event > > > outputQ[] )</B></TT><DD>Creates a hardware object to control a multi port gateway
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -