Exemplo n.º 1
0
        public PublicationSession takeSessionOwnership()
        {
            IntPtr             cPtr = tinyWRAPPINVOKE.PublicationEvent_takeSessionOwnership(swigCPtr);
            PublicationSession ret  = (cPtr == IntPtr.Zero) ? null : new PublicationSession(cPtr, false);

            return(ret);
        }
Exemplo n.º 2
0
        public PublicationSession getSession()
        {
            IntPtr             cPtr = tinyWRAPPINVOKE.PublicationEvent_getSession(swigCPtr);
            PublicationSession ret  = (cPtr == IntPtr.Zero) ? null : new PublicationSession(cPtr, false);

            return(ret);
        }
Exemplo n.º 3
0
        public MyPublicationSession(MySipStack sipStack, String toUri)
            : base(sipStack)
        {
            this.session = new PublicationSession(sipStack.WrappedStack);

            // commons
            base.init();

            // SigComp
            base.SigCompId = sipStack.SigCompId;

            // headers
            this.session.addHeader("Event", "presence");
            this.session.addHeader("Content-Type", ContentType.PIDF);

            this.ToUri = toUri;
            this.FromUri = toUri;
        }
Exemplo n.º 4
0
 internal static HandleRef getCPtr(PublicationSession obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 5
0
 internal static HandleRef getCPtr(PublicationSession obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }