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; }
internal static HandleRef getCPtr(XcapEvent obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
internal static HandleRef getCPtr(XcapEvent obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
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"); }
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; }
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); }
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; }