Beispiel #1
0
        public override int onEvent(XcapEvent e)
        {
            thttp_event_type_t type = e.getType();

            switch (type)
            {
                case thttp_event_type_t.thttp_event_dialog_started:
                    {
                        this.lastMessage = null;
                        break;
                    }

                case thttp_event_type_t.thttp_event_auth_failed:
                case thttp_event_type_t.thttp_event_message:
                    {
                        this.lastMessage = new MyXcapMessage(e.getXcapMessage());
                        break;
                    }

                case thttp_event_type_t.thttp_event_dialog_terminated:
                    {
                        if (this.xcapService.Synchronizer != null)
                        {
                            try
                            {
                                this.xcapService.Synchronizer.Release();
                            }
                            catch (SemaphoreFullException ex)
                            {
                                LOG.Error(ex);
                            }
                        }
                        break;
                    }
            }

            return 0;
        }
Beispiel #2
0
 internal static HandleRef getCPtr(XcapEvent obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Beispiel #3
0
 internal static HandleRef getCPtr(XcapEvent obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Beispiel #4
0
        public virtual int onEvent(XcapEvent e)
        {
            int ret = (SwigDerivedClassHasMethod("onEvent", swigMethodTypes0) ? tinyWRAPPINVOKE.XcapCallback_onEventSwigExplicitXcapCallback(swigCPtr, XcapEvent.getCPtr(e)) : tinyWRAPPINVOKE.XcapCallback_onEvent(swigCPtr, XcapEvent.getCPtr(e)));

            return(ret);
        }
 public override int onEvent(XcapEvent e)
 {
     throw new Exception("Not implemented");
 }
Beispiel #6
0
 public virtual int onEvent(XcapEvent e) {
   int ret = ((this.GetType() == typeof(XcapCallback)) ? tinyWRAPPINVOKE.XcapCallback_onEvent(swigCPtr, XcapEvent.getCPtr(e)) : tinyWRAPPINVOKE.XcapCallback_onEventSwigExplicitXcapCallback(swigCPtr, XcapEvent.getCPtr(e)));
   return ret;
 }
Beispiel #7
0
        public virtual int onEvent(XcapEvent e)
        {
            int ret = ((this.GetType() == typeof(XcapCallback)) ? tinyWRAPPINVOKE.XcapCallback_onEvent(swigCPtr, XcapEvent.getCPtr(e)) : tinyWRAPPINVOKE.XcapCallback_onEventSwigExplicitXcapCallback(swigCPtr, XcapEvent.getCPtr(e)));

            return(ret);
        }
Beispiel #8
0
 public virtual int onEvent(XcapEvent e) {
   int ret = (SwigDerivedClassHasMethod("onEvent", swigMethodTypes0) ? tinyWRAPPINVOKE.XcapCallback_onEventSwigExplicitXcapCallback(swigCPtr, XcapEvent.getCPtr(e)) : tinyWRAPPINVOKE.XcapCallback_onEvent(swigCPtr, XcapEvent.getCPtr(e)));
   return ret;
 }