예제 #1
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("onCallState", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateCall_0(SwigDirectorMethodonCallState);
     }
     if (SwigDerivedClassHasMethod("onCallTsxState", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateCall_1(SwigDirectorMethodonCallTsxState);
     }
     if (SwigDerivedClassHasMethod("onCallMediaState", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegateCall_2(SwigDirectorMethodonCallMediaState);
     }
     if (SwigDerivedClassHasMethod("onCallSdpCreated", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegateCall_3(SwigDirectorMethodonCallSdpCreated);
     }
     if (SwigDerivedClassHasMethod("onStreamCreated", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegateCall_4(SwigDirectorMethodonStreamCreated);
     }
     if (SwigDerivedClassHasMethod("onStreamDestroyed", swigMethodTypes5))
     {
         swigDelegate5 = new SwigDelegateCall_5(SwigDirectorMethodonStreamDestroyed);
     }
     if (SwigDerivedClassHasMethod("onDtmfDigit", swigMethodTypes6))
     {
         swigDelegate6 = new SwigDelegateCall_6(SwigDirectorMethodonDtmfDigit);
     }
     if (SwigDerivedClassHasMethod("onCallTransferRequest", swigMethodTypes7))
     {
         swigDelegate7 = new SwigDelegateCall_7(SwigDirectorMethodonCallTransferRequest);
     }
     if (SwigDerivedClassHasMethod("onCallTransferStatus", swigMethodTypes8))
     {
         swigDelegate8 = new SwigDelegateCall_8(SwigDirectorMethodonCallTransferStatus);
     }
     if (SwigDerivedClassHasMethod("onCallReplaceRequest", swigMethodTypes9))
     {
         swigDelegate9 = new SwigDelegateCall_9(SwigDirectorMethodonCallReplaceRequest);
     }
     if (SwigDerivedClassHasMethod("onCallReplaced", swigMethodTypes10))
     {
         swigDelegate10 = new SwigDelegateCall_10(SwigDirectorMethodonCallReplaced);
     }
     if (SwigDerivedClassHasMethod("onCallRxOffer", swigMethodTypes11))
     {
         swigDelegate11 = new SwigDelegateCall_11(SwigDirectorMethodonCallRxOffer);
     }
     if (SwigDerivedClassHasMethod("onCallRxReinvite", swigMethodTypes12))
     {
         swigDelegate12 = new SwigDelegateCall_12(SwigDirectorMethodonCallRxReinvite);
     }
     if (SwigDerivedClassHasMethod("onCallTxOffer", swigMethodTypes13))
     {
         swigDelegate13 = new SwigDelegateCall_13(SwigDirectorMethodonCallTxOffer);
     }
     if (SwigDerivedClassHasMethod("onInstantMessage", swigMethodTypes14))
     {
         swigDelegate14 = new SwigDelegateCall_14(SwigDirectorMethodonInstantMessage);
     }
     if (SwigDerivedClassHasMethod("onInstantMessageStatus", swigMethodTypes15))
     {
         swigDelegate15 = new SwigDelegateCall_15(SwigDirectorMethodonInstantMessageStatus);
     }
     if (SwigDerivedClassHasMethod("onTypingIndication", swigMethodTypes16))
     {
         swigDelegate16 = new SwigDelegateCall_16(SwigDirectorMethodonTypingIndication);
     }
     if (SwigDerivedClassHasMethod("onCallRedirected", swigMethodTypes17))
     {
         swigDelegate17 = new SwigDelegateCall_17(SwigDirectorMethodonCallRedirected);
     }
     if (SwigDerivedClassHasMethod("onCallMediaTransportState", swigMethodTypes18))
     {
         swigDelegate18 = new SwigDelegateCall_18(SwigDirectorMethodonCallMediaTransportState);
     }
     if (SwigDerivedClassHasMethod("onCallMediaEvent", swigMethodTypes19))
     {
         swigDelegate19 = new SwigDelegateCall_19(SwigDirectorMethodonCallMediaEvent);
     }
     if (SwigDerivedClassHasMethod("onCreateMediaTransport", swigMethodTypes20))
     {
         swigDelegate20 = new SwigDelegateCall_20(SwigDirectorMethodonCreateMediaTransport);
     }
     if (SwigDerivedClassHasMethod("onCreateMediaTransportSrtp", swigMethodTypes21))
     {
         swigDelegate21 = new SwigDelegateCall_21(SwigDirectorMethodonCreateMediaTransportSrtp);
     }
     pjsua2PINVOKE.Call_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21);
 }
예제 #2
0
파일: Call.cs 프로젝트: Reltik/PJSip-CSharp
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("onCallState", swigMethodTypes0))
       swigDelegate0 = new SwigDelegateCall_0(SwigDirectoronCallState);
     if (SwigDerivedClassHasMethod("onCallTsxState", swigMethodTypes1))
       swigDelegate1 = new SwigDelegateCall_1(SwigDirectoronCallTsxState);
     if (SwigDerivedClassHasMethod("onCallMediaState", swigMethodTypes2))
       swigDelegate2 = new SwigDelegateCall_2(SwigDirectoronCallMediaState);
     if (SwigDerivedClassHasMethod("onCallSdpCreated", swigMethodTypes3))
       swigDelegate3 = new SwigDelegateCall_3(SwigDirectoronCallSdpCreated);
     if (SwigDerivedClassHasMethod("onStreamCreated", swigMethodTypes4))
       swigDelegate4 = new SwigDelegateCall_4(SwigDirectoronStreamCreated);
     if (SwigDerivedClassHasMethod("onStreamDestroyed", swigMethodTypes5))
       swigDelegate5 = new SwigDelegateCall_5(SwigDirectoronStreamDestroyed);
     if (SwigDerivedClassHasMethod("onDtmfDigit", swigMethodTypes6))
       swigDelegate6 = new SwigDelegateCall_6(SwigDirectoronDtmfDigit);
     if (SwigDerivedClassHasMethod("onCallTransferRequest", swigMethodTypes7))
       swigDelegate7 = new SwigDelegateCall_7(SwigDirectoronCallTransferRequest);
     if (SwigDerivedClassHasMethod("onCallTransferStatus", swigMethodTypes8))
       swigDelegate8 = new SwigDelegateCall_8(SwigDirectoronCallTransferStatus);
     if (SwigDerivedClassHasMethod("onCallReplaceRequest", swigMethodTypes9))
       swigDelegate9 = new SwigDelegateCall_9(SwigDirectoronCallReplaceRequest);
     if (SwigDerivedClassHasMethod("onCallReplaced", swigMethodTypes10))
       swigDelegate10 = new SwigDelegateCall_10(SwigDirectoronCallReplaced);
     if (SwigDerivedClassHasMethod("onCallRxOffer", swigMethodTypes11))
       swigDelegate11 = new SwigDelegateCall_11(SwigDirectoronCallRxOffer);
     if (SwigDerivedClassHasMethod("onInstantMessage", swigMethodTypes12))
       swigDelegate12 = new SwigDelegateCall_12(SwigDirectoronInstantMessage);
     if (SwigDerivedClassHasMethod("onInstantMessageStatus", swigMethodTypes13))
       swigDelegate13 = new SwigDelegateCall_13(SwigDirectoronInstantMessageStatus);
     if (SwigDerivedClassHasMethod("onTypingIndication", swigMethodTypes14))
       swigDelegate14 = new SwigDelegateCall_14(SwigDirectoronTypingIndication);
     if (SwigDerivedClassHasMethod("onCallRedirected", swigMethodTypes15))
       swigDelegate15 = new SwigDelegateCall_15(SwigDirectoronCallRedirected);
     if (SwigDerivedClassHasMethod("onCallMediaTransportState", swigMethodTypes16))
       swigDelegate16 = new SwigDelegateCall_16(SwigDirectoronCallMediaTransportState);
     if (SwigDerivedClassHasMethod("onCallMediaEvent", swigMethodTypes17))
       swigDelegate17 = new SwigDelegateCall_17(SwigDirectoronCallMediaEvent);
     if (SwigDerivedClassHasMethod("onCreateMediaTransport", swigMethodTypes18))
       swigDelegate18 = new SwigDelegateCall_18(SwigDirectoronCreateMediaTransport);
     pjsua2PINVOKE.Call_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18);
 }