コード例 #1
0
 public TrunkVideoDispSession(string remoteParty, string VideoId, MediaType mediaType, InviteState callState) : base(remoteParty, mediaType, callState)
 {
     this.callType    = TrunkCallType.TCT_DUMMY_VIDEO_DISPATCH;
     this.strVideoId  = VideoId;
     this.strDstObjId = remoteParty;
     this.strFormat   = base.MediaType.ToString();
 }
コード例 #2
0
        public TrunkCallService FindCallService(TrunkCallType callType)
        {
            TrunkCallService result;

            using (System.Collections.Generic.IEnumerator <TrunkCallService> enumerator = this.callInstances.GetEnumerator())
            {
                if (enumerator.MoveNext())
                {
                    TrunkCallService item = enumerator.Current;
                    item.CallType = callType;
                    result        = item;
                    return(result);
                }
            }
            result = null;
            return(result);
        }
コード例 #3
0
ファイル: TrunkDefs.cs プロジェクト: feimorpheusma/MWS
 public static bool IsAudioTypeCall(TrunkCallType callType)
 {
     return(callType == TrunkCallType.TCT_P2P_AUDIO_CALL || callType == TrunkCallType.TCT_GRP_AUDIO_CALL);
 }
コード例 #4
0
 public TrunkVideoDispSession(MySipStack sipStack, CallSession session, MediaType mediaType, InviteState callState) : base(sipStack, session, mediaType, callState)
 {
     this.callType = TrunkCallType.TCT_DUMMY_VIDEO_DISPATCH;
 }