⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmctrlmpoint.c

📁 基于h323协议的软phone
💻 C
📖 第 1 页 / 共 5 页
字号:
    case h245reConferenceResponse:
        __pvtBuildByFieldIds(*insertionNode, hVal, *messageNode,
            { _h245(response) _h245(conferenceResponse) _h245(terminalListResponse) LAST_TOKEN },
            0, NULL);
        break;

        /* For all Indications */
    case h245iJitterIndication:
    case h245iH223SkewIndication:
    case h245iFunctionNotSupported:
    case h245iFlowControlIndication:
        /* Including Conference Indications */
    case h245ciSbeNumber:
    case h245ciTerminalJoinedConference:
    case h245ciTerminalLeftConference:
    case h245ciSeenByAtLeastOneOther:
    case h245ciCancelSeenByAtLeastOneOther:
    case h245ciSeenByAll:
    case h245ciCancelSeenByAll:
    case h245ciTerminalYouAreSeeing:
    case h245ciRequestForFloor:
    case h245ciWithdrawChairToken:
    case h245ciFloorRequested:
    case h245ciTerminalYouAreSeeingInSubPictureNumber:
        /* And Including Miscellaneous Indications */
    case h245miMultipointZeroComm:
    case h245miCancelMultipointZeroComm:
    case h245miMultipointSecondaryStatus:
    case h245miCancelMultipointSecondaryStatus:
    case h245miVideoIndicateReadyToActivate:
    case h245miVideoNotDecodedMBs:
            /* we do this: */
        *insertionNode = pvtAddBranch(hVal,*messageNode, __h245(indication));
        switch(messageType)
        {
            /* For each Indication: */
        case h245iJitterIndication:
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(jitterIndication));
            break;
        case h245iH223SkewIndication:
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(h223SkewIndication));
            break;
        case h245iFunctionNotSupported:
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(functionNotSupported));
            break;
        case h245iFlowControlIndication:
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(flowControlIndication));
            break;
            /* But for Conference Indications... */
        case h245ciSbeNumber:
        case h245ciTerminalJoinedConference:
        case h245ciTerminalLeftConference:
        case h245ciSeenByAtLeastOneOther:
        case h245ciCancelSeenByAtLeastOneOther:
        case h245ciSeenByAll:
        case h245ciCancelSeenByAll:
        case h245ciTerminalYouAreSeeing:
        case h245ciRequestForFloor:
        case h245ciWithdrawChairToken:
        case h245ciFloorRequested:
        case h245ciTerminalYouAreSeeingInSubPictureNumber:
            /* We do this: */
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(conferenceIndication));
            switch(messageType)
            {
                /* For each Conferance Indication: */
            case h245ciSbeNumber:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(sbeNumber));
                break;
            case h245ciTerminalJoinedConference:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(terminalJoinedConference));
                break;
            case h245ciTerminalLeftConference:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(terminalLeftConference));
                break;
            case h245ciSeenByAtLeastOneOther:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(seenByAtLeastOneOther));
                break;
            case h245ciCancelSeenByAtLeastOneOther:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(cancelSeenByAtLeastOneOther));
                break;
            case h245ciSeenByAll:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(seenByAll));
                break;
            case h245ciCancelSeenByAll:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(cancelSeenByAll));
                break;
            case h245ciTerminalYouAreSeeing:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(terminalYouAreSeeing));
                break;
            case h245ciRequestForFloor:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(requestForFloor));
                break;
            case h245ciWithdrawChairToken:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(withdrawChairToken));
                break;
            case h245ciFloorRequested:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(floorRequested));
                break;
            case h245ciTerminalYouAreSeeingInSubPictureNumber:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(terminalYouAreSeeingInSubPictureNumber));
                break;
            case h245ciVideoIndicateCompose:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(videoIndicateCompose));
                break;
            default: /* We won't get here */ break;
            }
            break;
            /* And for Miscellaneous Indications... */
        case h245miMultipointZeroComm:
        case h245miCancelMultipointZeroComm:
        case h245miMultipointSecondaryStatus:
        case h245miCancelMultipointSecondaryStatus:
        case h245miVideoIndicateReadyToActivate:
        case h245miVideoNotDecodedMBs:
            /* We do this: */
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(miscellaneousIndication));
            pvtAdd(hVal, *insertionNode, __h245(logicalChannelNumber), lcn, NULL, NULL);
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(type));
            switch(messageType)
            {
                /* For each Miscellaneous Indication: */
            case h245miMultipointZeroComm:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(multipointZeroComm));
                break;
            case h245miCancelMultipointZeroComm:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(cancelMultipointZeroComm));
                break;
            case h245miMultipointSecondaryStatus:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(multipointSecondaryStatus));
                break;
            case h245miCancelMultipointSecondaryStatus:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(cancelMultipointSecondaryStatus));
                break;
            case h245miVideoIndicateReadyToActivate:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(videoIndicateReadyToActivate));
                break;
            case h245miVideoNotDecodedMBs:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(videoNotDecodedMBs));
                break;
            default: /* We won't get here */ break;
            }
            break;
        default: /* We won't get here */ break;
        }
        /* We're done with indications (thank god in heaven) */
        break;

        /* For all commands, which are:  Conference Commands */
    case h245ccBroadcastMyLogicalChannel:
    case h245ccCancelBroadcastMyLogicalChannel:
    case h245ccMakeTerminalBroadcaster:
    case h245ccCancelMakeTerminalBroadcaster:
    case h245ccSendThisSource:
    case h245ccCancelSendThisSource:
    case h245ccDropConference:
    case h245ccSubstituteConferenceIDCommand:
        /* And Miscellaneous Commands */
    case h245mcEqualiseDelay:
    case h245mcZeroDelay:
    case h245mcMaxH223MUXPDUsize:
    case h245mcProgressiveRefinementStart:
    case h245mcProgressiveRefinementAbortOne:
    case h245mcProgressiveRefinementAbortContinuous:
    case h245mcVideoBadMBs:
    case h245mcLostPicture:
    case h245mcLostPartialPicture:
    case h245mcRecoveryReferencePicture:
            /* We do this: */
        *insertionNode = pvtAddBranch(hVal,*messageNode, __h245(command));
        switch(messageType)
        {
            /* For Conference Commands only... */
        case h245ccBroadcastMyLogicalChannel:
        case h245ccCancelBroadcastMyLogicalChannel:
        case h245ccMakeTerminalBroadcaster:
        case h245ccCancelMakeTerminalBroadcaster:
        case h245ccSendThisSource:
        case h245ccCancelSendThisSource:
        case h245ccDropConference:
        case h245ccSubstituteConferenceIDCommand:
                /*We do this: */
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(conferenceCommand));
            switch(messageType)
            {
                /* For each Conference Command: */
            case h245ccBroadcastMyLogicalChannel:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(broadcastMyLogicalChannel));
                break;
            case h245ccCancelBroadcastMyLogicalChannel:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(cancelBroadcastMyLogicalChannel));
                break;
            case h245ccMakeTerminalBroadcaster:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(makeTerminalBroadcaster));
                break;
            case h245ccCancelMakeTerminalBroadcaster:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(cancelMakeTerminalBroadcaster));
                break;
            case h245ccSendThisSource:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(sendThisSource));
                break;
            case h245ccCancelSendThisSource:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(cancelSendThisSource));
                break;
            case h245ccDropConference:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(dropConference));
                break;
            case h245ccSubstituteConferenceIDCommand:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(substituteConferenceIDCommand));
                break;
            default: /* We won't get here */ break;
            }
            break;
            /* But for Miscellaneous Commands only... */
        case h245mcEqualiseDelay:
        case h245mcZeroDelay:
        case h245mcMaxH223MUXPDUsize:
        case h245mcProgressiveRefinementStart:
        case h245mcProgressiveRefinementAbortOne:
        case h245mcProgressiveRefinementAbortContinuous:
        case h245mcVideoBadMBs:
        case h245mcLostPicture:
        case h245mcLostPartialPicture:
        case h245mcRecoveryReferencePicture:
                /* We do this: */
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(conferenceCommand));
            pvtAdd(hVal, *insertionNode, __h245(logicalChannelNumber), lcn, NULL, NULL);
            *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(type));
            switch(messageType)
            {
                /* For each Miscellaneous Command: */
            case h245mcEqualiseDelay:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(equaliseDelay));
                break;
            case h245mcZeroDelay:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(zeroDelay));
                break;
            case h245mcMaxH223MUXPDUsize:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(maxH223MUXPDUsize));
                break;
            case h245mcProgressiveRefinementStart:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(progressiveRefinementStart));
                break;
            case h245mcProgressiveRefinementAbortOne:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(progressiveRefinementAbortOne));
                break;
            case h245mcProgressiveRefinementAbortContinuous:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(progressiveRefinementAbortContinuous));
                break;
            case h245mcVideoBadMBs:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(videoBadMBs));
                break;
            case h245mcLostPicture:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(lostPicture));
                break;
            case h245mcLostPartialPicture:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(lostPartialPicture));
                break;
            case h245mcRecoveryReferencePicture:
                *insertionNode = pvtAddBranch(hVal,*insertionNode, __h245(recoveryReferencePicture));
                break;
            default: /* We won't get here */ break;
            }
            break;
        default: /* We won't get here */ break;
        }
        /* We're done with commands */
        break;
    default:
        pvtDelete(hVal, *messageNode);
        *messageNode = -1;
        *insertionNode = -1;
        return RV_ERROR_UNKNOWN;
    }
    return 0;
}





#ifdef __cplusplus
}
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -