Q932mes.c

Go to the documentation of this file.
00001 /*****************************************************************************
00002 
00003   FileName:             Q932mes.c
00004 
00005   Contents:             Q.932 Message Encoders/Decoders
00006 
00007   License/Copyright:
00008 
00009   Copyright (c) 2007, Jan Vidar Berger, Case Labs, Ltd. All rights reserved.
00010   email:janvb@caselaboratories.com  
00011 
00012   Redistribution and use in source and binary forms, with or without 
00013   modification, are permitted provided that the following conditions are 
00014   met:
00015 
00016         * Redistributions of source code must retain the above copyright notice, 
00017           this list of conditions and the following disclaimer.
00018         * Redistributions in binary form must reproduce the above copyright notice, 
00019           this list of conditions and the following disclaimer in the documentation 
00020           and/or other materials provided with the distribution.
00021         * Neither the name of the Case Labs, Ltd nor the names of its contributors 
00022           may be used to endorse or promote products derived from this software 
00023           without specific prior written permission.
00024 
00025   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
00026   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
00027   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
00028   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
00029   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
00030   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
00031   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
00032   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
00033   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
00034   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
00035   POSSIBILITY OF SUCH DAMAGE.
00036 *****************************************************************************/
00037 
00038 #include "Q931.h"
00039 
00040 /*****************************************************************************
00041 
00042   Function:      Q932Umes_Facility
00043 
00044 *****************************************************************************/
00045 
00046 L3INT Q932Umes_Facility(Q931_TrunkInfo_t *pTrunk,L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size)
00047 {
00048         L3INT OOff = 0;
00049 
00050         /* TODO */
00051 
00052         mes->Size = sizeof(Q931mes_Generic) - 1 + OOff;
00053         return Q931E_NO_ERROR;
00054 }
00055 
00056 /*****************************************************************************
00057 
00058   Function:      Q931Pmes_Facility
00059 
00060 *****************************************************************************/
00061 L3INT Q932Pmes_Facility(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize)
00062 {
00063         L3BOOL RetCode = L3FALSE;
00064 
00065         NoWarning(OBuf);
00066         NoWarning(IBuf);
00067 
00068         return RetCode;
00069 }
00070 
00071 /*****************************************************************************
00072 
00073   Function:      Q932Umes_Hold
00074 
00075 *****************************************************************************/
00076 
00077 L3INT Q932Umes_Hold(Q931_TrunkInfo_t *pTrunk,L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size)
00078 {
00079         L3INT OOff = 0;
00080 
00081         /* TODO */
00082 
00083         mes->Size = sizeof(Q931mes_Generic) - 1 + OOff;
00084         return Q931E_NO_ERROR;
00085 }
00086 
00087 /*****************************************************************************
00088 
00089   Function:      Q931Pmes_Hold
00090 
00091 *****************************************************************************/
00092 L3INT Q932Pmes_Hold(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize)
00093 {
00094         L3BOOL RetCode = L3FALSE;
00095 
00096         NoWarning(OBuf);
00097         NoWarning(IBuf);
00098 
00099         return RetCode;
00100 }
00101 
00102 /*****************************************************************************
00103 
00104   Function:      Q932Umes_HoldAck
00105 
00106 *****************************************************************************/
00107 
00108 L3INT Q932Umes_HoldAck(Q931_TrunkInfo_t *pTrunk,L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size)
00109 {
00110         L3INT OOff = 0;
00111 
00112         /* TODO */
00113 
00114         mes->Size = sizeof(Q931mes_Generic) - 1 + OOff;
00115         return Q931E_NO_ERROR;
00116 }
00117 
00118 /*****************************************************************************
00119 
00120   Function:      Q931Pmes_HoldAck
00121 
00122 *****************************************************************************/
00123 L3INT Q932Pmes_HoldAck(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize)
00124 {
00125         L3BOOL RetCode = L3FALSE;
00126 
00127         NoWarning(OBuf);
00128         NoWarning(IBuf);
00129 
00130         return RetCode;
00131 }
00132 
00133 /*****************************************************************************
00134 
00135   Function:      Q932Umes_HoldReject
00136 
00137 *****************************************************************************/
00138 
00139 L3INT Q932Umes_HoldReject(Q931_TrunkInfo_t *pTrunk,L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size)
00140 {
00141         L3INT OOff = 0;
00142 
00143         /* TODO */
00144 
00145         mes->Size = sizeof(Q931mes_Generic) - 1 + OOff;
00146         return Q931E_NO_ERROR;
00147 }
00148 
00149 /*****************************************************************************
00150 
00151   Function:      Q931Pmes_HoldReject
00152 
00153 *****************************************************************************/
00154 L3INT Q932Pmes_HoldReject(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize)
00155 {
00156         L3BOOL RetCode = L3FALSE;
00157 
00158         NoWarning(OBuf);
00159         NoWarning(IBuf);
00160 
00161         return RetCode;
00162 }
00163 
00164 /*****************************************************************************
00165 
00166   Function:      Q932Umes_Register
00167 
00168 *****************************************************************************/
00169 
00170 L3INT Q932Umes_Register(Q931_TrunkInfo_t *pTrunk,L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size)
00171 {
00172         L3INT OOff = 0;
00173 
00174         /* TODO */
00175 
00176         mes->Size = sizeof(Q931mes_Generic) - 1 + OOff;
00177         return Q931E_NO_ERROR;
00178 }
00179 
00180 /*****************************************************************************
00181 
00182   Function:      Q931Pmes_Register
00183 
00184 *****************************************************************************/
00185 L3INT Q932Pmes_Register(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize)
00186 {
00187         L3BOOL RetCode = L3FALSE;
00188 
00189         NoWarning(OBuf);
00190         NoWarning(IBuf);
00191 
00192         return RetCode;
00193 }
00194 
00195 /*****************************************************************************
00196 
00197   Function:      Q932Umes_Retrieve
00198 
00199 *****************************************************************************/
00200 
00201 L3INT Q932Umes_Retrieve(Q931_TrunkInfo_t *pTrunk,L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size)
00202 {
00203         L3INT OOff = 0;
00204 
00205         /* TODO */
00206 
00207         mes->Size = sizeof(Q931mes_Generic) - 1 + OOff;
00208         return Q931E_NO_ERROR;
00209 }
00210 
00211 /*****************************************************************************
00212 
00213   Function:      Q931Pmes_Retrieve
00214 
00215 *****************************************************************************/
00216 L3INT Q932Pmes_Retrieve(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize)
00217 {
00218         L3BOOL RetCode = L3FALSE;
00219 
00220         NoWarning(OBuf);
00221         NoWarning(IBuf);
00222 
00223         return RetCode;
00224 }
00225 
00226 /*****************************************************************************
00227 
00228   Function:      Q932Umes_RetrieveAck
00229 
00230 *****************************************************************************/
00231 
00232 L3INT Q932Umes_RetrieveAck(Q931_TrunkInfo_t *pTrunk,L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size)
00233 {
00234         L3INT OOff = 0;
00235 
00236         /* TODO */
00237 
00238         mes->Size = sizeof(Q931mes_Generic) - 1 + OOff;
00239         return Q931E_NO_ERROR;
00240 }
00241 
00242 /*****************************************************************************
00243 
00244   Function:      Q931Pmes_RetrieveAck
00245 
00246 *****************************************************************************/
00247 L3INT Q932Pmes_RetrieveAck(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize)
00248 {
00249         L3BOOL RetCode = L3FALSE;
00250 
00251         NoWarning(OBuf);
00252         NoWarning(IBuf);
00253 
00254         return RetCode;
00255 }
00256 
00257 /*****************************************************************************
00258 
00259   Function:      Q932Umes_RetrieveReject
00260 
00261 *****************************************************************************/
00262 
00263 L3INT Q932Umes_RetrieveReject(Q931_TrunkInfo_t *pTrunk,L3UCHAR *IBuf, Q931mes_Generic *mes, L3INT IOff, L3INT Size)
00264 {
00265         L3INT OOff = 0;
00266 
00267         /* TODO */
00268 
00269         mes->Size = sizeof(Q931mes_Generic) - 1 + OOff;
00270         return Q931E_NO_ERROR;
00271 }
00272 
00273 /*****************************************************************************
00274 
00275   Function:      Q931Pmes_RetrieveReject
00276 
00277 *****************************************************************************/
00278 L3INT Q932Pmes_RetrieveReject(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize)
00279 {
00280         L3BOOL RetCode = L3FALSE;
00281 
00282         NoWarning(OBuf);
00283         NoWarning(IBuf);
00284 
00285         return RetCode;
00286 }

Generated on Tue Apr 7 17:38:19 2009 for mod_ssh by  doxygen 1.5.4