00001 package net.threebit.jvr; 00002 00003 /* 00004 * $Id: ms.java,v 1.21 2005/01/26 01:34:04 kevino Exp $ 00005 * 00006 * Copyright (c) 2003,2004 Kevin O'Donnell 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2.1 of the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 00021 */ 00022 00023 /** 00024 * Java encapsulation of the Dialogic <b>R4 Conferencing</b> Software 00025 * (functions matching <b>ms_*</b>). 00026 */ 00027 00028 public abstract class ms extends jvr { 00029 00030 /** 00031 * ms_open. 00032 * <p/> 00033 * Dialogic API Reference for this function: (<a 00034 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-42.html#P4297_115826">win32</a>,<a 00035 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-42.html#P4297_115826">linux</a>) 00036 */ 00037 public static native int open (String name, int flags) throws JVRException; 00038 00039 /** 00040 * ms_close. 00041 * <p/> 00042 * Dialogic API Reference for this function: (<a 00043 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-26.html#P1771_52369">win32</a>,<a 00044 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-26.html#P1771_52369">linux</a>) 00045 */ 00046 public static native int close (int dev) throws JVRException; 00047 00048 /** 00049 * ms_setevtmsk. 00050 * <p/> 00051 * Dialogic API Reference for this function: (<a 00052 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-46.html#P5171_138023">win32</a>,<a 00053 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-46.html#P5171_138023">linux</a>) 00054 */ 00055 public static native int setevtmsk (int dev, int event, int bitmask, int action) throws JVRException; 00056 00057 /** 00058 * ms_listen. 00059 * <p/> 00060 * Dialogic API Reference for this function: (<a 00061 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-64.html#P6470_170860">win32</a>,<a 00062 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-64.html#P6470_170860">linux</a>) 00063 */ 00064 public static native int listen (int dev, SC_TSINFO tsinfo) throws JVRException; 00065 00066 /** 00067 * Places the supplied timeslot value into a new SC_TSINFO object then calls the 00068 * regular <code>listen</code> method. 00069 */ 00070 public static int listen (int dev, long ts) throws JVRException { 00071 SC_TSINFO tsinfo = new SC_TSINFO(); 00072 tsinfo.add(ts); 00073 return listen(dev,tsinfo); 00074 } 00075 00076 /** 00077 * ms_unlisten. 00078 * <p/> 00079 * Dialogic API Reference for this function: (<a 00080 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-65.html#P6634_175517">win32</a>,<a 00081 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-65.html#P6634_175517">linux</a>) 00082 */ 00083 public static native int unlisten (int dev) throws JVRException; 00084 00085 /** 00086 * ms_getxmitslot. 00087 * <p/> 00088 * Dialogic API Reference for this function: (<a 00089 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-63.html#P6376_168641">win32</a>,<a 00090 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-63.html#P6376_168641">linux</a>) 00091 */ 00092 public static native SC_TSINFO getxmitslot (int dev) throws JVRException; 00093 00094 /** 00095 * ms_estconf. 00096 * <p> 00097 * Instead of returning the success/error status, this method returns the 00098 * new conference identifier. There is no loss of signalling because on 00099 * an error condition, estconf() will throw an Exception. 00100 * <p> 00101 * Instead of stating the number of parties explicitely, it is implied by 00102 * the length of the MS_CDT array 00103 * <p/> 00104 * Dialogic API Reference for this function: (<a 00105 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-30.html#P2207_61181">win32</a>,<a 00106 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-30.html#P2207_61181">linux</a>) 00107 */ 00108 public static native int estconf (int dev, MS_CDT[] cdt, int attr) throws JVRException; 00109 00110 /** 00111 * ms_delconf. 00112 * <p/> 00113 * Dialogic API Reference for this function: (<a 00114 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-27.html#P1858_54299">win32</a>,<a 00115 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-27.html#P1858_54299">linux</a>) 00116 */ 00117 public static native int delconf (int dev, int confID) throws JVRException; 00118 00119 /** 00120 * ms_monconf. 00121 * <p/> 00122 * Dialogic API Reference for this function: (<a 00123 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-41.html#P4155_112204">win32</a>,<a 00124 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-41.html#P4155_112204">linux</a>) 00125 * <p> 00126 * Instead of returning the success/error status, this method returns the 00127 * XMIT timeslot of the conference. There is no loss of signalling because on 00128 * an error condition, estconf() will throw an Exception. 00129 */ 00130 public static native long monconf (int dev, int confID) throws JVRException; 00131 00132 /** 00133 * ms_unmonconf. 00134 * <p/> 00135 * Dialogic API Reference for this function: (<a 00136 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-52.html#P5931_155538">win32</a>,<a 00137 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-52.html#P5931_155538">linux</a>) 00138 */ 00139 public static native int unmonconf (int dev, int confID) throws JVRException; 00140 00141 /** 00142 * ms_genring. 00143 * <p/> 00144 * Dialogic API Reference for this function: (<a 00145 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-32.html#P2769_76182">win32</a>,<a 00146 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-32.html#P2769_76182">linux</a>) 00147 */ 00148 public static native int genring (int dev, int len, int mode) throws JVRException; 00149 00150 /** 00151 * ms_stopfn. 00152 * <p/> 00153 * Dialogic API Reference for this function: (<a 00154 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-49.html#P5585_147746">win32</a>,<a 00155 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-49.html#P5585_147746">linux</a>) 00156 */ 00157 public static native int stopfn (int dev, int func) throws JVRException; 00158 00159 /** 00160 * ms_addtoconf 00161 * <p/> 00162 * Dialogic API Reference for this function: (<a 00163 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-24.html#P1260_40859">win32</a>,<a 00164 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-24.html#P1260_40859">linux</a>) 00165 */ 00166 public static native void addtoconf (int dev, int conf, MS_CDT cdt) throws JVRException; 00167 00168 /** 00169 * ms_remfromconf 00170 * <p/> 00171 * Dialogic API Reference for this function: (<a 00172 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-43.html#P4397_117925">win32</a>,<a 00173 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-43.html#P4397_117925">linux</a>) 00174 */ 00175 public static native void remfromconf (int dev, int conf, MS_CDT cdt) throws JVRException; 00176 00177 /** 00178 * ATMS_TSSGBIT 00179 * <p/> 00180 * Dialogic API Reference for this function: (<a 00181 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-23.html#P1135_38579">win32</a>,<a 00182 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-23.html#P1135_38579">linux</a>) 00183 */ 00184 public static native long ATMS_TSSGBIT (int dev) throws JVRException; 00185 00186 /** 00187 * ms_dsprescount 00188 * <p/> 00189 * Dialogic API Reference for this function: (<a 00190 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-29.html#P2075_58543">win32</a>,<a 00191 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-29.html#P2075_58543">linux</a>) 00192 */ 00193 public static native int dsprescount (int dev) throws JVRException; 00194 00195 /** 00196 * ms_setbrdparm 00197 * <p/> 00198 * Dialogic API Reference for this function: (<a 00199 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-44.html#P4540_120780">win32</a>,<a 00200 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-44.html#P4540_120780">linux</a>) 00201 */ 00202 public static native void setbrdparm (int dev, int param, Object value) throws JVRException; 00203 00204 /** 00205 * ms_setcde 00206 * <p/> 00207 * Dialogic API Reference for this function: (<a 00208 * href="http://resource.intel.com/telecom/support/releases/winnt/SR511/docs/htmlfiles/msi/1218-04-45.html#P4940_134018">win32</a>,<a 00209 * href="http://resource.intel.com/telecom/support/releases/unix51/linux51/SR5.1_Linux/Onldoc/html_files/msi/1218-04-45.html#P4940_134018">linux</a>) 00210 */ 00211 public static native void setcde (int dev, int confID, MS_CDT cdt) throws JVRException; 00212 00213 }
1.3.5