📄 mpcommon.h
字号:
#ifndef __MPCOMMON_H__#define __MPCOMMON_H__/********************************************************************* $Id: MpCommon.h,v 1.3 1999/08/31 02:22:05 cullen Exp $ ********************************************************************* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. In addition to the terms and conditions set forth in the GNU Lesser General Public License, as a condition of using this library you are required to grant to all users of this library or any implementation utilizing or derived from this library a reciprocal, no cost, worldwide, perpetual, non-exclusive, non-transferable, unrestricted license to your claims of all patents and patent applications throughout the world that are infringed by the library or any implementation utilizing or derived from this library. In the event you redistribute this library or any implementation utilizing or derived from this library, you must prominently display the foregoing terms and conditions with the library or the implementation utilizing or derived from this library. In the event of a conflict of terms between the foregoing license grant and the terms set forth in the GNU Lesser General Public License, the foregoing terms and conditions shall be deemed to govern. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not; write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. Copyright 1999 Vovida Networks, Inc. All Rights Reserved. ********************************************************************* $Log: MpCommon.h,v $ Revision 1.3 1999/08/31 02:22:05 cullen updated header **********************************************************************/#include <string>#include <vector>#include "mstring.h"namespace msip{ ///Quote and Pair characters extern const char QuoteSymb[]; const char QPairSymb = '\\'; ///Generic Message Types enum MpMsgType { //mtreq = "Message Type Request" abbreviation mtreqUNKNOWN = 0, mtreqINVITE = 1, mtreqOPTIONS = 2, mtreqREGISTER = 3, mtreqACK = 4, mtreqCANCEL = 5, mtreqBYE = 6, mtreqSIGNAL = 7, //mtstl = "Message Type Status-Line" abbreviation mtstlInformational = 100, mtstlSuccess = 200, mtstlRedirection = 300, mtstlClientError = 400, mtstlServerError = 500, mtstlGlobalFailure = 600 }; ///Response Codes enum MpResponseCode { respNullCode = 0, respTrying = 100, respRinging = 180, respCallIsBeingForwarded = 181, respQueued = 182, respOK = 200, respMultipleChoices = 300, respMovedPermanently = 301, respMovedTemporarily = 302, respSeeOther = 303, respUseProxy = 305, respAlternativeService = 380, respBadRequest = 400, respUnauthorized = 401, respPaymentRequired = 402, respForbidden = 403, respNotFound = 404, respMethodNotAllowed = 405, respNotAcceptable = 406, respProxyAuthenticationRequired = 407, respRequestTimeout = 408, respConflict = 409, respGone = 410, respLengthRequired = 411, respRequestEntityTooLarge = 413, respRequestURITooLarge = 414, respUnsupportedMediaType = 415, respBadExtension = 420, respTemporarilyNotAvailable = 480, respCallLegOrTransactionDoesNotExist = 481, respLoopDetected = 482, respTooManyHops = 483, respAddressIncomplete = 484, respAmbiguous = 485, respBusyHere = 486, respInternalServerError = 500, respNotImplemented = 501, respBadGateway = 502, respServiceUnavailable = 503, respGatewayTimeout = 504, respSIPVersionNotSupported = 505, respBusyEverywhere = 600, respDecline = 603, respDoesNotExistAnywhere = 604, respNotAcceptableGF = 606 }; ///SIP request methods extern const char mtdINVITE[]; extern const char mtdOPTIONS[]; extern const char mtdREGISTER[]; extern const char mtdACK[]; extern const char mtdCANCEL[]; extern const char mtdBYE[]; extern const char mtdSIGNAL[]; ///SIP Protocol Names extern const char sipProtoName[]; extern const char sipPlusProtoName[]; ///Our SIP Versions extern const char sipVersion20[]; extern const char sipPlusVersion00[]; ///SIP Protocol Name (lower case) extern const char sipProtoNameL[]; ///SIP Contact Allowed Prefixes extern const char sipContactAllowedPrefixes[]; ///Supported SIP Version extern const char *sipSupportedVersions[]; ///Parser itemm names extern const char mpiHostPort[]; //MpHostPort extern const char mpiUserInfo[]; //MpUserInfo extern const char mpiUrl[]; //MpUrl extern const char mpiParm[]; //Parameters extern const char mpiUrlParm[]; //MpUrlParm extern const char mpiUrlHdr[]; //MpUrlHdr extern const char mpiStartLine[]; //MpStartLine extern const char mpiCallID[]; //MpCallID extern const char mpiContactParm[]; //MpContact extern const char mpiFromParm[]; //MpFrom extern const char mpiToParm[]; //MpTo extern const char mpiRetryAfter[]; //MpRetryAfter extern const char mpiTimestamp[]; //MpTimestamp extern const char mpiVia[]; //MpVia extern const char mpiSentBy[]; //MpVia extern const char mpiWarning[]; //MpWarning ///Known parameter names extern const char mpnHost[]; // host extern const char mpnPort[]; // port extern const char mpnUser[]; // user extern const char mpnPasswd[]; // passwd extern const char mpnISub[]; // usub extern const char mpnPostD[]; // postd extern const char mpnTransport[]; // transport extern const char mpnMethod[]; // method extern const char mpnTtl[]; // ttl extern const char mpnMaddr[]; // maddr extern const char mpnTag[]; // tag extern const char mpnHidden[]; // \1hidden extern const char mpnReceived[]; // received extern const char mpnBranch[]; // branch extern const char mpnMsgType[]; // msgtype extern const char mpnMsgReasonPhrase[]; // msgreasonphrase extern const char mpnValue[]; // value extern const char mpnSubVal[]; // subval extern const char mpnDispName[]; // dispname extern const char mpnComment[]; // comment extern const char mpnQ[]; // q extern const char mpnAction[]; // action extern const char mpnExpires[]; // expires extern const char mpnContentLen[]; // contlen extern const char mpnCSeq[]; // cseq extern const char mpnHide[]; // hide extern const char mpnMaxForw[]; // maxforw extern const char mpnPriority[]; // priority extern const char mpnDate[]; // date extern const char mpnSeconds[]; // seconds extern const char mpnDuration[]; // duration extern const char mpnComment[]; // comment extern const char mpnDelay[]; // delay extern const char mpnProto[]; // proto extern const char mpnVersion[]; // version extern const char mpnCode[]; // code extern const char mpnAgent[]; // agent extern const char mpnText[]; // text extern const char hdrnAccept[]; extern const char hdrnAcceptEncoding[]; extern const char hdrnAcceptLanguage[]; extern const char hdrnCallID[]; extern const char hdrnContact[]; extern const char hdrnCSeq[]; extern const char hdrnDate[]; extern const char hdrnEncryption[]; extern const char hdrnExpires[]; extern const char hdrnFrom[]; extern const char hdrnRecordRoute[]; extern const char hdrnTimestamp[]; extern const char hdrnTo[]; extern const char hdrnVia[]; extern const char hdrnContentEncoding[]; extern const char hdrnContentLength[]; extern const char hdrnContentType[]; extern const char hdrnAuthorization[]; extern const char hdrnHide[]; extern const char hdrnMaxForwards[]; extern const char hdrnOrganization[]; extern const char hdrnPriority[]; extern const char hdrnProxyAuthorization[]; extern const char hdrnProxyRequire[]; extern const char hdrnRoute[]; extern const char hdrnRequire[]; extern const char hdrnResponseKey[]; extern const char hdrnSubject[]; extern const char hdrnUserAgent[]; extern const char hdrnAllow[]; extern const char hdrnProxyAuthenticate[]; extern const char hdrnRetryAfter[]; extern const char hdrnServer[];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -