internal static HandleRef getCPtr(OptionsEvent obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
/// <summary> /// Option events /// </summary> /// <param name="e"></param> /// <returns></returns> public override int OnOptionsEvent(OptionsEvent e) { return 0; }
public virtual int OnOptionsEvent(OptionsEvent e) { return(this.SwigDerivedClassHasMethod("OnOptionsEvent", SipCallback.swigMethodTypes5) ? tinyWRAPPINVOKE.SipCallback_OnOptionsEventSwigExplicitSipCallback(this.swigCPtr, OptionsEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnOptionsEvent(this.swigCPtr, OptionsEvent.getCPtr(e))); }
public override int OnOptionsEvent(OptionsEvent e) { short code = e.getCode(); tsip_options_event_type_t type = e.getType(); OptionsSession session = e.getSession(); SipMessage message = e.getSipMessage(); if (message != null) { Console.WriteLine("call-id={0}", message.getSipHeaderValue("call-id")); //byte[] bytes = message.getContent(); } switch (type) { case tsip_options_event_type_t.tsip_ao_options: String rport = message.getSipHeaderParamValue("v", "rport"); String received_ip = message.getSipHeaderParamValue("v", "received"); if (rport == null) { /* Ericsson SDS */ rport = message.getSipHeaderParamValue("v", "received_port_ext"); } Console.WriteLine("Via(rport, received)=({0}, {1})", rport, received_ip); break; case tsip_options_event_type_t.tsip_i_options: break; } Console.WriteLine("OnRegistrationChanged() ==> {0}:{1}", code, e.getPhrase()); return 0; }
public virtual int OnOptionsEvent(OptionsEvent e) { int ret = (SwigDerivedClassHasMethod("OnOptionsEvent", swigMethodTypes5) ? tinyWRAPPINVOKE.SipCallback_OnOptionsEventSwigExplicitSipCallback(swigCPtr, OptionsEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnOptionsEvent(swigCPtr, OptionsEvent.getCPtr(e))); return ret; }
internal static HandleRef getCPtr(OptionsEvent obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public virtual int OnOptionsEvent(OptionsEvent e) { int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnOptionsEvent(swigCPtr, OptionsEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnOptionsEventSwigExplicitSipCallback(swigCPtr, OptionsEvent.getCPtr(e))); return(ret); }
public virtual int OnOptionsEvent(OptionsEvent e) { int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnOptionsEvent(swigCPtr, OptionsEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnOptionsEventSwigExplicitSipCallback(swigCPtr, OptionsEvent.getCPtr(e))); return ret; }