Add support for Publication for bindings.

This commit is contained in:
bossiel 2010-05-26 15:31:50 +00:00
parent 94e401647f
commit 8f09a7be57
86 changed files with 8082 additions and 5814 deletions

View File

@ -0,0 +1,49 @@
/*
* Copyright (C) 2009 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou@doubango.org>
*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*
*/
#include "PublicationEvent.h"
#include "PublicationSession.h"
#include "Common.h"
PublicationEvent::PublicationEvent()
:SipEvent(sipevent)
{
}
PublicationEvent::PublicationEvent(const tsip_event_t *sipevent)
:SipEvent(sipevent)
{
}
PublicationEvent::~PublicationEvent()
{
}
tsip_publish_event_type_t PublicationEvent::getType() const
{
return TSIP_PUBLISH_EVENT(this->sipevent)->type;
}
const PublicationSession* PublicationEvent::getSession() const
{
return dyn_cast<const PublicationSession*>(this->getBaseSession());
}

View File

@ -0,0 +1,44 @@
/*
* Copyright (C) 2009 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou@doubango.org>
*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*
*/
#ifndef TINYWRAP_PUBLICATIONEVENT_H
#define TINYWRAP_PUBLICATIONEVENT_H
#include "SipEvent.h"
class PublicationSession;
class PublicationEvent: public SipEvent
{
public:
PublicationEvent();
#if !defined(SWIG)
PublicationEvent(const tsip_event_t *sipevent);
#endif
virtual ~PublicationEvent();
public: /* Public API functions */
tsip_publish_event_type_t getType() const;
const PublicationSession* getSession() const;
};
#endif /* TINYWRAP_PUBLICATIONEVENT_H */

View File

@ -0,0 +1,56 @@
/*
* Copyright (C) 2009 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou@doubango.org>
*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*
*/
#include "PublicationSession.h"
PublicationSession::PublicationSession(SipStack* Stack)
: SipSession(Stack)
{
}
PublicationSession::~PublicationSession()
{
}
bool PublicationSession::Publish(const void* payload, unsigned len)
{
TSK_DEBUG_INFO("Android---PublicationSession::Publish()");
int ret;
if(payload && len){
ret = tsip_action_PUBLISH(this->handle,
TSIP_ACTION_SET_PAYLOAD(payload, len),
TSIP_ACTION_SET_NULL());
}
else{
ret = tsip_action_PUBLISH(this->handle,
TSIP_ACTION_SET_NULL());
}
return (ret == 0);
}
bool PublicationSession::UnPublish()
{
TSK_DEBUG_INFO("Android---PublicationSession::UnPublish()");
int ret = tsip_action_UNPUBLISH(this->handle,
TSIP_ACTION_SET_NULL());
return (ret == 0);
}

View File

@ -0,0 +1,39 @@
/*
* Copyright (C) 2009 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou@doubango.org>
*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*
*/
#ifndef TINYWRAP_PUBLICATIONSESSION_H
#define TINYWRAP_PUBLICATIONSESSION_H
#include "SipSession.h"
class PublicationSession : public SipSession
{
public: /* ctor() and dtor() */
PublicationSession(SipStack* Stack);
virtual ~PublicationSession();
public: /* Public functions */
bool Publish(const void* payload, unsigned len);
bool UnPublish();
};
#endif /* TINYWRAP_PUBLICATIONSESSION_H */

View File

@ -25,8 +25,8 @@
#include "Common.h" #include "Common.h"
RegistrationEvent::RegistrationEvent() RegistrationEvent::RegistrationEvent()
:SipEvent(tsk_null)
{ {
::RegistrationEvent(tsk_null);
} }
RegistrationEvent::RegistrationEvent(const tsip_event_t *sipevent) RegistrationEvent::RegistrationEvent(const tsip_event_t *sipevent)

View File

@ -24,6 +24,7 @@
class RegistrationEvent; class RegistrationEvent;
class SubscriptionEvent; class SubscriptionEvent;
class PublicationEvent;
class SipCallback class SipCallback
{ {
@ -32,6 +33,7 @@ public:
virtual ~SipCallback() {} virtual ~SipCallback() {}
virtual int OnRegistrationChanged(const RegistrationEvent* e) { return -1; } virtual int OnRegistrationChanged(const RegistrationEvent* e) { return -1; }
virtual int OnSubscriptionChanged(const SubscriptionEvent* e) { return -1; } virtual int OnSubscriptionChanged(const SubscriptionEvent* e) { return -1; }
virtual int OnPublicationChanged(const PublicationEvent* e) { return -1; }
private: private:

View File

@ -33,7 +33,9 @@ public:
#endif #endif
virtual ~SipMessage(); virtual ~SipMessage();
#if !defined(SWIG)
const void* getSipContent() const; const void* getSipContent() const;
#endif
//%newobject getHeaderValueAt; //%newobject getHeaderValueAt;
char* getSipHeaderValue(const char* name, unsigned index = 0); char* getSipHeaderValue(const char* name, unsigned index = 0);

View File

@ -22,6 +22,8 @@
#include "SipStack.h" #include "SipStack.h"
#include "SipSession.h" #include "SipSession.h"
#include "PublicationEvent.h"
#include "PublicationSession.h"
#include "RegistrationEvent.h" #include "RegistrationEvent.h"
#include "RegistrationSession.h" #include "RegistrationSession.h"
#include "SubscriptionEvent.h" #include "SubscriptionEvent.h"
@ -245,27 +247,26 @@ int stack_callback(const tsip_event_t *sipevent)
e = new RegistrationEvent(sipevent); e = new RegistrationEvent(sipevent);
Stack->getCallback()->OnRegistrationChanged((const RegistrationEvent*)e); Stack->getCallback()->OnRegistrationChanged((const RegistrationEvent*)e);
} }
//ret = register_handle_event(sipevent);
break; break;
} }
case tsip_event_invite: case tsip_event_invite:
{ /* INVITE */ { /* INVITE */
//ret = invite_handle_event(sipevent);
break; break;
} }
case tsip_event_message: case tsip_event_message:
{ /* MESSAGE */ { /* MESSAGE */
//ret = message_handle_event(sipevent);
break; break;
} }
case tsip_event_options: case tsip_event_options:
{ /* OPTIONS */ { /* OPTIONS */
//ret = options_handle_event(sipevent);
break; break;
} }
case tsip_event_publish: case tsip_event_publish:
{ /* PUBLISH */ { /* PUBLISH */
//ret = publish_handle_event(sipevent); if(Stack->getCallback()){
e = new PublicationEvent(sipevent);
Stack->getCallback()->OnPublicationChanged((const PublicationEvent*)e);
}
break; break;
} }
case tsip_event_subscribe: case tsip_event_subscribe:

View File

@ -4,6 +4,8 @@
#include "SipMessage.h" #include "SipMessage.h"
#include "SipEvent.h" #include "SipEvent.h"
#include "SipSession.h" #include "SipSession.h"
#include "PublicationEvent.h"
#include "PublicationSession.h"
#include "RegistrationEvent.h" #include "RegistrationEvent.h"
#include "RegistrationSession.h" #include "RegistrationSession.h"
#include "SubscriptionEvent.h" #include "SubscriptionEvent.h"
@ -24,6 +26,8 @@
%include "SipMessage.h" %include "SipMessage.h"
%include "SipEvent.h" %include "SipEvent.h"
%include "SipSession.h" %include "SipSession.h"
%include "PublicationEvent.h"
%include "PublicationSession.h"
%include "RegistrationEvent.h" %include "RegistrationEvent.h"
%include "RegistrationSession.h" %include "RegistrationSession.h"
%include "SubscriptionEvent.h" %include "SubscriptionEvent.h"
@ -86,3 +90,18 @@ typedef enum tsip_subscribe_event_type_e
tsip_ao_notify tsip_ao_notify
} }
tsip_subscribe_event_type_t; tsip_subscribe_event_type_t;
/* ====== From "tinySIP\include\tinysip\tsip_api_publish.h" ====== */
typedef enum tsip_publish_event_type_e
{
tsip_i_publish,
tsip_ai_publish,
tsip_o_publish,
tsip_ao_publish,
tsip_i_unpublish,
tsip_ai_unpublish,
tsip_o_unpublish,
tsip_ao_unpublish
}
tsip_publish_event_type_t;

View File

@ -0,0 +1,56 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class PublicationEvent : SipEvent {
private HandleRef swigCPtr;
internal PublicationEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.PublicationEventUpcast(cPtr), cMemoryOwn) {
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(PublicationEvent obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~PublicationEvent() {
Dispose();
}
public override void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPPINVOKE.delete_PublicationEvent(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
base.Dispose();
}
}
public PublicationEvent() : this(tinyWRAPPINVOKE.new_PublicationEvent(), true) {
}
public tsip_publish_event_type_t getType() {
tsip_publish_event_type_t ret = (tsip_publish_event_type_t)tinyWRAPPINVOKE.PublicationEvent_getType(swigCPtr);
return ret;
}
public PublicationSession getSession() {
IntPtr cPtr = tinyWRAPPINVOKE.PublicationEvent_getSession(swigCPtr);
PublicationSession ret = (cPtr == IntPtr.Zero) ? null : new PublicationSession(cPtr, false);
return ret;
}
}

View File

@ -0,0 +1,55 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
public class PublicationSession : SipSession {
private HandleRef swigCPtr;
internal PublicationSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.PublicationSessionUpcast(cPtr), cMemoryOwn) {
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(PublicationSession obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~PublicationSession() {
Dispose();
}
public override void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPPINVOKE.delete_PublicationSession(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
base.Dispose();
}
}
public PublicationSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_PublicationSession(SipStack.getCPtr(Stack)), true) {
}
public bool Publish(byte[] payload, uint len) {
bool ret = tinyWRAPPINVOKE.PublicationSession_Publish(swigCPtr, payload, len);
return ret;
}
public bool UnPublish() {
bool ret = tinyWRAPPINVOKE.PublicationSession_UnPublish(swigCPtr);
return ret;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -27,11 +27,13 @@ public class RegistrationEvent : SipEvent {
public override void Dispose() { public override void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_RegistrationEvent(swigCPtr); tinyWRAPPINVOKE.delete_RegistrationEvent(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
base.Dispose(); base.Dispose();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -27,11 +27,13 @@ public class RegistrationSession : SipSession {
public override void Dispose() { public override void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_RegistrationSession(swigCPtr); tinyWRAPPINVOKE.delete_RegistrationSession(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
base.Dispose(); base.Dispose();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -29,11 +29,13 @@ public class SafeObject : IDisposable {
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SafeObject(swigCPtr); tinyWRAPPINVOKE.delete_SafeObject(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -29,11 +29,13 @@ public class SipCallback : IDisposable {
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SipCallback(swigCPtr); tinyWRAPPINVOKE.delete_SipCallback(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
@ -52,12 +54,19 @@ public class SipCallback : IDisposable {
return ret; return ret;
} }
public virtual int OnPublicationChanged(PublicationEvent e) {
int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnPublicationChanged(swigCPtr, PublicationEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnPublicationChangedSwigExplicitSipCallback(swigCPtr, PublicationEvent.getCPtr(e)));
return ret;
}
private void SwigDirectorConnect() { private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("OnRegistrationChanged", swigMethodTypes0)) if (SwigDerivedClassHasMethod("OnRegistrationChanged", swigMethodTypes0))
swigDelegate0 = new SwigDelegateSipCallback_0(SwigDirectorOnRegistrationChanged); swigDelegate0 = new SwigDelegateSipCallback_0(SwigDirectorOnRegistrationChanged);
if (SwigDerivedClassHasMethod("OnSubscriptionChanged", swigMethodTypes1)) if (SwigDerivedClassHasMethod("OnSubscriptionChanged", swigMethodTypes1))
swigDelegate1 = new SwigDelegateSipCallback_1(SwigDirectorOnSubscriptionChanged); swigDelegate1 = new SwigDelegateSipCallback_1(SwigDirectorOnSubscriptionChanged);
tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1); if (SwigDerivedClassHasMethod("OnPublicationChanged", swigMethodTypes2))
swigDelegate2 = new SwigDelegateSipCallback_2(SwigDirectorOnPublicationChanged);
tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2);
} }
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) { private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
@ -74,12 +83,19 @@ public class SipCallback : IDisposable {
return OnSubscriptionChanged((e == IntPtr.Zero) ? null : new SubscriptionEvent(e, false)); return OnSubscriptionChanged((e == IntPtr.Zero) ? null : new SubscriptionEvent(e, false));
} }
private int SwigDirectorOnPublicationChanged(IntPtr e) {
return OnPublicationChanged((e == IntPtr.Zero) ? null : new PublicationEvent(e, false));
}
public delegate int SwigDelegateSipCallback_0(IntPtr e); public delegate int SwigDelegateSipCallback_0(IntPtr e);
public delegate int SwigDelegateSipCallback_1(IntPtr e); public delegate int SwigDelegateSipCallback_1(IntPtr e);
public delegate int SwigDelegateSipCallback_2(IntPtr e);
private SwigDelegateSipCallback_0 swigDelegate0; private SwigDelegateSipCallback_0 swigDelegate0;
private SwigDelegateSipCallback_1 swigDelegate1; private SwigDelegateSipCallback_1 swigDelegate1;
private SwigDelegateSipCallback_2 swigDelegate2;
private static Type[] swigMethodTypes0 = new Type[] { typeof(RegistrationEvent) }; private static Type[] swigMethodTypes0 = new Type[] { typeof(RegistrationEvent) };
private static Type[] swigMethodTypes1 = new Type[] { typeof(SubscriptionEvent) }; private static Type[] swigMethodTypes1 = new Type[] { typeof(SubscriptionEvent) };
private static Type[] swigMethodTypes2 = new Type[] { typeof(PublicationEvent) };
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -29,11 +29,13 @@ public class SipDebugCallback : IDisposable {
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SipDebugCallback(swigCPtr); tinyWRAPPINVOKE.delete_SipDebugCallback(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -29,11 +29,13 @@ public class SipEvent : IDisposable {
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SipEvent(swigCPtr); tinyWRAPPINVOKE.delete_SipEvent(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -29,11 +29,13 @@ public class SipMessage : IDisposable {
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SipMessage(swigCPtr); tinyWRAPPINVOKE.delete_SipMessage(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
@ -41,8 +43,6 @@ public class SipMessage : IDisposable {
public SipMessage() : this(tinyWRAPPINVOKE.new_SipMessage(), true) { public SipMessage() : this(tinyWRAPPINVOKE.new_SipMessage(), true) {
} }
public byte[] getSipContent() { return tinyWRAPPINVOKE.SipMessage_getSipContent(swigCPtr); }
public string getSipHeaderValue(string name, uint index) { public string getSipHeaderValue(string name, uint index) {
string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, name, index); string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, name, index);
return ret; return ret;

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -29,11 +29,13 @@ public class SipSession : IDisposable {
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SipSession(swigCPtr); tinyWRAPPINVOKE.delete_SipSession(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -27,11 +27,13 @@ public class SipStack : SafeObject {
public override void Dispose() { public override void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SipStack(swigCPtr); tinyWRAPPINVOKE.delete_SipStack(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
base.Dispose(); base.Dispose();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -29,11 +29,13 @@ public class SipUri : IDisposable {
public virtual void Dispose() { public virtual void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SipUri(swigCPtr); tinyWRAPPINVOKE.delete_SipUri(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -27,11 +27,13 @@ public class SubscriptionEvent : SipEvent {
public override void Dispose() { public override void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SubscriptionEvent(swigCPtr); tinyWRAPPINVOKE.delete_SubscriptionEvent(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
base.Dispose(); base.Dispose();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -27,11 +27,13 @@ public class SubscriptionSession : SipSession {
public override void Dispose() { public override void Dispose() {
lock(this) { lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) { if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPPINVOKE.delete_SubscriptionSession(swigCPtr); tinyWRAPPINVOKE.delete_SubscriptionSession(swigCPtr);
} }
swigCPtr = new HandleRef(null, IntPtr.Zero); swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
base.Dispose(); base.Dispose();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -202,9 +202,6 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipMessage")] [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipMessage")]
public static extern void delete_SipMessage(HandleRef jarg1); public static extern void delete_SipMessage(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipContent")]
public static extern byte[] SipMessage_getSipContent(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderValue__SWIG_0")] [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderValue__SWIG_0")]
public static extern string SipMessage_getSipHeaderValue__SWIG_0(HandleRef jarg1, string jarg2, uint jarg3); public static extern string SipMessage_getSipHeaderValue__SWIG_0(HandleRef jarg1, string jarg2, uint jarg3);
@ -265,6 +262,30 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setToUri")] [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setToUri")]
public static extern bool SipSession_setToUri(HandleRef jarg1, string jarg2); public static extern bool SipSession_setToUri(HandleRef jarg1, string jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_PublicationEvent")]
public static extern IntPtr new_PublicationEvent();
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_PublicationEvent")]
public static extern void delete_PublicationEvent(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_PublicationEvent_getType")]
public static extern int PublicationEvent_getType(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_PublicationEvent_getSession")]
public static extern IntPtr PublicationEvent_getSession(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_PublicationSession")]
public static extern IntPtr new_PublicationSession(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_PublicationSession")]
public static extern void delete_PublicationSession(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_PublicationSession_Publish")]
public static extern bool PublicationSession_Publish(HandleRef jarg1, byte[] jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_PublicationSession_UnPublish")]
public static extern bool PublicationSession_UnPublish(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationEvent")] [DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationEvent")]
public static extern IntPtr new_RegistrationEvent(); public static extern IntPtr new_RegistrationEvent();
@ -331,8 +352,14 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChangedSwigExplicitSipCallback")] [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChangedSwigExplicitSipCallback")]
public static extern int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); public static extern int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnPublicationChanged")]
public static extern int SipCallback_OnPublicationChanged(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnPublicationChangedSwigExplicitSipCallback")]
public static extern int SipCallback_OnPublicationChangedSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_director_connect")] [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_director_connect")]
public static extern void SipCallback_director_connect(HandleRef jarg1, SipCallback.SwigDelegateSipCallback_0 delegate0, SipCallback.SwigDelegateSipCallback_1 delegate1); public static extern void SipCallback_director_connect(HandleRef jarg1, SipCallback.SwigDelegateSipCallback_0 delegate0, SipCallback.SwigDelegateSipCallback_1 delegate1, SipCallback.SwigDelegateSipCallback_2 delegate2);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipDebugCallback")] [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipDebugCallback")]
public static extern IntPtr new_SipDebugCallback(); public static extern IntPtr new_SipDebugCallback();
@ -430,6 +457,12 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_stop")] [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_stop")]
public static extern bool SipStack_stop(HandleRef jarg1); public static extern bool SipStack_stop(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_PublicationEventUpcast")]
public static extern IntPtr PublicationEventUpcast(IntPtr objectRef);
[DllImport("tinyWRAP", EntryPoint="CSharp_PublicationSessionUpcast")]
public static extern IntPtr PublicationSessionUpcast(IntPtr objectRef);
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEventUpcast")] [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEventUpcast")]
public static extern IntPtr RegistrationEventUpcast(IntPtr objectRef); public static extern IntPtr RegistrationEventUpcast(IntPtr objectRef);

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
@ -202,7 +202,7 @@ static SWIG_CSharpException_t SWIG_csharp_exceptions[] = {
static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = {
{ SWIG_CSharpArgumentException, NULL }, { SWIG_CSharpArgumentException, NULL },
{ SWIG_CSharpArgumentNullException, NULL }, { SWIG_CSharpArgumentNullException, NULL },
{ SWIG_CSharpArgumentOutOfRangeException, NULL }, { SWIG_CSharpArgumentOutOfRangeException, NULL }
}; };
static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) {
@ -335,6 +335,8 @@ namespace Swig {
#include "SipMessage.h" #include "SipMessage.h"
#include "SipEvent.h" #include "SipEvent.h"
#include "SipSession.h" #include "SipSession.h"
#include "PublicationEvent.h"
#include "PublicationSession.h"
#include "RegistrationEvent.h" #include "RegistrationEvent.h"
#include "RegistrationSession.h" #include "RegistrationSession.h"
#include "SubscriptionEvent.h" #include "SubscriptionEvent.h"
@ -391,14 +393,31 @@ int SwigDirector_SipCallback::OnSubscriptionChanged(SubscriptionEvent const *e)
return c_result; return c_result;
} }
void SwigDirector_SipCallback::swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged) { int SwigDirector_SipCallback::OnPublicationChanged(PublicationEvent const *e) {
int c_result = SwigValueInit< int >() ;
int jresult = 0 ;
void * je = 0 ;
if (!swig_callbackOnPublicationChanged) {
return SipCallback::OnPublicationChanged(e);
} else {
je = (void *) e;
jresult = (int) swig_callbackOnPublicationChanged(je);
c_result = (int)jresult;
}
return c_result;
}
void SwigDirector_SipCallback::swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged, SWIG_Callback2_t callbackOnPublicationChanged) {
swig_callbackOnRegistrationChanged = callbackOnRegistrationChanged; swig_callbackOnRegistrationChanged = callbackOnRegistrationChanged;
swig_callbackOnSubscriptionChanged = callbackOnSubscriptionChanged; swig_callbackOnSubscriptionChanged = callbackOnSubscriptionChanged;
swig_callbackOnPublicationChanged = callbackOnPublicationChanged;
} }
void SwigDirector_SipCallback::swig_init_callbacks() { void SwigDirector_SipCallback::swig_init_callbacks() {
swig_callbackOnRegistrationChanged = 0; swig_callbackOnRegistrationChanged = 0;
swig_callbackOnSubscriptionChanged = 0; swig_callbackOnSubscriptionChanged = 0;
swig_callbackOnPublicationChanged = 0;
} }
SwigDirector_SipDebugCallback::SwigDirector_SipDebugCallback() : SipDebugCallback(), Swig::Director() { SwigDirector_SipDebugCallback::SwigDirector_SipDebugCallback() : SipDebugCallback(), Swig::Director() {
@ -551,18 +570,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipMessage(void * jarg1) {
} }
SWIGEXPORT void * SWIGSTDCALL CSharp_SipMessage_getSipContent(void * jarg1) {
void * jresult ;
SipMessage *arg1 = (SipMessage *) 0 ;
void *result = 0 ;
arg1 = (SipMessage *)jarg1;
result = (void *)((SipMessage const *)arg1)->getSipContent();
jresult = result;
return jresult;
}
SWIGEXPORT char * SWIGSTDCALL CSharp_SipMessage_getSipHeaderValue__SWIG_0(void * jarg1, char * jarg2, unsigned int jarg3) { SWIGEXPORT char * SWIGSTDCALL CSharp_SipMessage_getSipHeaderValue__SWIG_0(void * jarg1, char * jarg2, unsigned int jarg3) {
char * jresult ; char * jresult ;
SipMessage *arg1 = (SipMessage *) 0 ; SipMessage *arg1 = (SipMessage *) 0 ;
@ -831,6 +838,96 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setToUri(void * jarg1, cha
} }
SWIGEXPORT void * SWIGSTDCALL CSharp_new_PublicationEvent() {
void * jresult ;
PublicationEvent *result = 0 ;
result = (PublicationEvent *)new PublicationEvent();
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_delete_PublicationEvent(void * jarg1) {
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
arg1 = (PublicationEvent *)jarg1;
delete arg1;
}
SWIGEXPORT int SWIGSTDCALL CSharp_PublicationEvent_getType(void * jarg1) {
int jresult ;
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
tsip_publish_event_type_t result;
arg1 = (PublicationEvent *)jarg1;
result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType();
jresult = result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_PublicationEvent_getSession(void * jarg1) {
void * jresult ;
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
PublicationSession *result = 0 ;
arg1 = (PublicationEvent *)jarg1;
result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession();
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_new_PublicationSession(void * jarg1) {
void * jresult ;
SipStack *arg1 = (SipStack *) 0 ;
PublicationSession *result = 0 ;
arg1 = (SipStack *)jarg1;
result = (PublicationSession *)new PublicationSession(arg1);
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_delete_PublicationSession(void * jarg1) {
PublicationSession *arg1 = (PublicationSession *) 0 ;
arg1 = (PublicationSession *)jarg1;
delete arg1;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_PublicationSession_Publish(void * jarg1, void * jarg2, unsigned int jarg3) {
unsigned int jresult ;
PublicationSession *arg1 = (PublicationSession *) 0 ;
void *arg2 = (void *) 0 ;
unsigned int arg3 ;
bool result;
arg1 = (PublicationSession *)jarg1;
arg2 = jarg2;
arg3 = (unsigned int)jarg3;
result = (bool)(arg1)->Publish((void const *)arg2,arg3);
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_PublicationSession_UnPublish(void * jarg1) {
unsigned int jresult ;
PublicationSession *arg1 = (PublicationSession *) 0 ;
bool result;
arg1 = (PublicationSession *)jarg1;
result = (bool)(arg1)->UnPublish();
jresult = result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_new_RegistrationEvent() { SWIGEXPORT void * SWIGSTDCALL CSharp_new_RegistrationEvent() {
void * jresult ; void * jresult ;
RegistrationEvent *result = 0 ; RegistrationEvent *result = 0 ;
@ -1077,11 +1174,39 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnSubscriptionChangedSwigExplicitS
} }
SWIGEXPORT void SWIGSTDCALL CSharp_SipCallback_director_connect(void *objarg, SwigDirector_SipCallback::SWIG_Callback0_t callback0, SwigDirector_SipCallback::SWIG_Callback1_t callback1) { SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnPublicationChanged(void * jarg1, void * jarg2) {
int jresult ;
SipCallback *arg1 = (SipCallback *) 0 ;
PublicationEvent *arg2 = (PublicationEvent *) 0 ;
int result;
arg1 = (SipCallback *)jarg1;
arg2 = (PublicationEvent *)jarg2;
result = (int)(arg1)->OnPublicationChanged((PublicationEvent const *)arg2);
jresult = result;
return jresult;
}
SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnPublicationChangedSwigExplicitSipCallback(void * jarg1, void * jarg2) {
int jresult ;
SipCallback *arg1 = (SipCallback *) 0 ;
PublicationEvent *arg2 = (PublicationEvent *) 0 ;
int result;
arg1 = (SipCallback *)jarg1;
arg2 = (PublicationEvent *)jarg2;
result = (int)(arg1)->SipCallback::OnPublicationChanged((PublicationEvent const *)arg2);
jresult = result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_SipCallback_director_connect(void *objarg, SwigDirector_SipCallback::SWIG_Callback0_t callback0, SwigDirector_SipCallback::SWIG_Callback1_t callback1, SwigDirector_SipCallback::SWIG_Callback2_t callback2) {
SipCallback *obj = (SipCallback *)objarg; SipCallback *obj = (SipCallback *)objarg;
SwigDirector_SipCallback *director = dynamic_cast<SwigDirector_SipCallback *>(obj); SwigDirector_SipCallback *director = dynamic_cast<SwigDirector_SipCallback *>(obj);
if (director) { if (director) {
director->swig_connect_director(callback0, callback1); director->swig_connect_director(callback0, callback1, callback2);
} }
} }
@ -1505,6 +1630,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_stop(void * jarg1) {
} }
SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_PublicationEventUpcast(PublicationEvent *objectRef) {
return (SipEvent *)objectRef;
}
SWIGEXPORT SipSession * SWIGSTDCALL CSharp_PublicationSessionUpcast(PublicationSession *objectRef) {
return (SipSession *)objectRef;
}
SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_RegistrationEventUpcast(RegistrationEvent *objectRef) { SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_RegistrationEventUpcast(RegistrationEvent *objectRef) {
return (SipEvent *)objectRef; return (SipEvent *)objectRef;
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
@ -18,14 +18,17 @@ public:
virtual ~SwigDirector_SipCallback(); virtual ~SwigDirector_SipCallback();
virtual int OnRegistrationChanged(RegistrationEvent const *e); virtual int OnRegistrationChanged(RegistrationEvent const *e);
virtual int OnSubscriptionChanged(SubscriptionEvent const *e); virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
virtual int OnPublicationChanged(PublicationEvent const *e);
typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *); typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *);
typedef int (SWIGSTDCALL* SWIG_Callback1_t)(void *); typedef int (SWIGSTDCALL* SWIG_Callback1_t)(void *);
void swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged); typedef int (SWIGSTDCALL* SWIG_Callback2_t)(void *);
void swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged, SWIG_Callback2_t callbackOnPublicationChanged);
private: private:
SWIG_Callback0_t swig_callbackOnRegistrationChanged; SWIG_Callback0_t swig_callbackOnRegistrationChanged;
SWIG_Callback1_t swig_callbackOnSubscriptionChanged; SWIG_Callback1_t swig_callbackOnSubscriptionChanged;
SWIG_Callback2_t swig_callbackOnPublicationChanged;
void swig_init_callbacks(); void swig_init_callbacks();
}; };

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -0,0 +1,19 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
public enum tsip_publish_event_type_t {
tsip_i_publish,
tsip_ai_publish,
tsip_o_publish,
tsip_ao_publish,
tsip_i_unpublish,
tsip_ai_unpublish,
tsip_o_unpublish,
tsip_ao_unpublish
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -0,0 +1,51 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.doubango.tinyWRAP;
public class PublicationEvent extends SipEvent {
private long swigCPtr;
protected PublicationEvent(long cPtr, boolean cMemoryOwn) {
super(tinyWRAPJNI.SWIGPublicationEventUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(PublicationEvent obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPJNI.delete_PublicationEvent(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public PublicationEvent() {
this(tinyWRAPJNI.new_PublicationEvent(), true);
}
public tsip_publish_event_type_t getType() {
return tsip_publish_event_type_t.swigToEnum(tinyWRAPJNI.PublicationEvent_getType(swigCPtr, this));
}
public PublicationSession getSession() {
long cPtr = tinyWRAPJNI.PublicationEvent_getSession(swigCPtr, this);
return (cPtr == 0) ? null : new PublicationSession(cPtr, false);
}
}

View File

@ -0,0 +1,50 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.doubango.tinyWRAP;
public class PublicationSession extends SipSession {
private long swigCPtr;
protected PublicationSession(long cPtr, boolean cMemoryOwn) {
super(tinyWRAPJNI.SWIGPublicationSessionUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(PublicationSession obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPJNI.delete_PublicationSession(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public PublicationSession(SipStack Stack) {
this(tinyWRAPJNI.new_PublicationSession(SipStack.getCPtr(Stack), Stack), true);
}
public boolean Publish(byte[] payload, long len) {
return tinyWRAPJNI.PublicationSession_Publish(swigCPtr, this, payload, len);
}
public boolean UnPublish() {
return tinyWRAPJNI.PublicationSession_UnPublish(swigCPtr, this);
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class RegistrationEvent extends SipEvent {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_RegistrationEvent(swigCPtr); tinyWRAPJNI.delete_RegistrationEvent(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class RegistrationSession extends SipSession {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_RegistrationSession(swigCPtr); tinyWRAPJNI.delete_RegistrationSession(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SafeObject {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SafeObject(swigCPtr); tinyWRAPJNI.delete_SafeObject(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SafeObject() { public SafeObject() {
this(tinyWRAPJNI.new_SafeObject(), true); this(tinyWRAPJNI.new_SafeObject(), true);

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipCallback {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipCallback(swigCPtr); tinyWRAPJNI.delete_SipCallback(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
protected void swigDirectorDisconnect() { protected void swigDirectorDisconnect() {
swigCMemOwn = false; swigCMemOwn = false;
@ -61,4 +63,8 @@ public class SipCallback {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e); return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e);
} }
public int OnPublicationChanged(PublicationEvent e) {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnPublicationChanged(swigCPtr, this, PublicationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnPublicationChangedSwigExplicitSipCallback(swigCPtr, this, PublicationEvent.getCPtr(e), e);
}
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipDebugCallback {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipDebugCallback(swigCPtr); tinyWRAPJNI.delete_SipDebugCallback(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
protected void swigDirectorDisconnect() { protected void swigDirectorDisconnect() {
swigCMemOwn = false; swigCMemOwn = false;

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipEvent {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipEvent(swigCPtr); tinyWRAPJNI.delete_SipEvent(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SipEvent() { public SipEvent() {
this(tinyWRAPJNI.new_SipEvent(), true); this(tinyWRAPJNI.new_SipEvent(), true);

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,19 +26,19 @@ public class SipMessage {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipMessage(swigCPtr); tinyWRAPJNI.delete_SipMessage(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SipMessage() { public SipMessage() {
this(tinyWRAPJNI.new_SipMessage(), true); this(tinyWRAPJNI.new_SipMessage(), true);
} }
public byte[] getSipContent() { return tinyWRAPJNI.SipMessage_getSipContent(swigCPtr, this); }
public String getSipHeaderValue(String name, long index) { public String getSipHeaderValue(String name, long index) {
return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, this, name, index); return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, this, name, index);
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipSession {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipSession(swigCPtr); tinyWRAPJNI.delete_SipSession(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SipSession(SipStack stack) { public SipSession(SipStack stack) {
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true); this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true);

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class SipStack extends SafeObject {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipStack(swigCPtr); tinyWRAPJNI.delete_SipStack(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipUri {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipUri(swigCPtr); tinyWRAPJNI.delete_SipUri(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SipUri(String arg0) { public SipUri(String arg0) {
this(tinyWRAPJNI.new_SipUri(arg0), true); this(tinyWRAPJNI.new_SipUri(arg0), true);

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class SubscriptionEvent extends SipEvent {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr); tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class SubscriptionSession extends SipSession {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SubscriptionSession(swigCPtr); tinyWRAPJNI.delete_SubscriptionSession(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -0,0 +1,51 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.doubango.tinyWRAP;
public class PublicationEvent extends SipEvent {
private long swigCPtr;
protected PublicationEvent(long cPtr, boolean cMemoryOwn) {
super(tinyWRAPJNI.SWIGPublicationEventUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(PublicationEvent obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPJNI.delete_PublicationEvent(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public PublicationEvent() {
this(tinyWRAPJNI.new_PublicationEvent(), true);
}
public tsip_publish_event_type_t getType() {
return tsip_publish_event_type_t.swigToEnum(tinyWRAPJNI.PublicationEvent_getType(swigCPtr, this));
}
public PublicationSession getSession() {
long cPtr = tinyWRAPJNI.PublicationEvent_getSession(swigCPtr, this);
return (cPtr == 0) ? null : new PublicationSession(cPtr, false);
}
}

View File

@ -0,0 +1,50 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.doubango.tinyWRAP;
public class PublicationSession extends SipSession {
private long swigCPtr;
protected PublicationSession(long cPtr, boolean cMemoryOwn) {
super(tinyWRAPJNI.SWIGPublicationSessionUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(PublicationSession obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPJNI.delete_PublicationSession(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public PublicationSession(SipStack Stack) {
this(tinyWRAPJNI.new_PublicationSession(SipStack.getCPtr(Stack), Stack), true);
}
public boolean Publish(byte[] payload, long len) {
return tinyWRAPJNI.PublicationSession_Publish(swigCPtr, this, payload, len);
}
public boolean UnPublish() {
return tinyWRAPJNI.PublicationSession_UnPublish(swigCPtr, this);
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class RegistrationEvent extends SipEvent {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_RegistrationEvent(swigCPtr); tinyWRAPJNI.delete_RegistrationEvent(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class RegistrationSession extends SipSession {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_RegistrationSession(swigCPtr); tinyWRAPJNI.delete_RegistrationSession(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SafeObject {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SafeObject(swigCPtr); tinyWRAPJNI.delete_SafeObject(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SafeObject() { public SafeObject() {
this(tinyWRAPJNI.new_SafeObject(), true); this(tinyWRAPJNI.new_SafeObject(), true);

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipCallback {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipCallback(swigCPtr); tinyWRAPJNI.delete_SipCallback(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
protected void swigDirectorDisconnect() { protected void swigDirectorDisconnect() {
swigCMemOwn = false; swigCMemOwn = false;
@ -61,4 +63,8 @@ public class SipCallback {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e); return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e);
} }
public int OnPublicationChanged(PublicationEvent e) {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnPublicationChanged(swigCPtr, this, PublicationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnPublicationChangedSwigExplicitSipCallback(swigCPtr, this, PublicationEvent.getCPtr(e), e);
}
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipDebugCallback {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipDebugCallback(swigCPtr); tinyWRAPJNI.delete_SipDebugCallback(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
protected void swigDirectorDisconnect() { protected void swigDirectorDisconnect() {
swigCMemOwn = false; swigCMemOwn = false;

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipEvent {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipEvent(swigCPtr); tinyWRAPJNI.delete_SipEvent(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SipEvent() { public SipEvent() {
this(tinyWRAPJNI.new_SipEvent(), true); this(tinyWRAPJNI.new_SipEvent(), true);

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,19 +26,19 @@ public class SipMessage {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipMessage(swigCPtr); tinyWRAPJNI.delete_SipMessage(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SipMessage() { public SipMessage() {
this(tinyWRAPJNI.new_SipMessage(), true); this(tinyWRAPJNI.new_SipMessage(), true);
} }
public byte[] getSipContent() { return tinyWRAPJNI.SipMessage_getSipContent(swigCPtr, this); }
public String getSipHeaderValue(String name, long index) { public String getSipHeaderValue(String name, long index) {
return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, this, name, index); return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, this, name, index);
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipSession {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipSession(swigCPtr); tinyWRAPJNI.delete_SipSession(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SipSession(SipStack stack) { public SipSession(SipStack stack) {
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true); this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true);

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class SipStack extends SafeObject {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipStack(swigCPtr); tinyWRAPJNI.delete_SipStack(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -26,12 +26,14 @@ public class SipUri {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SipUri(swigCPtr); tinyWRAPJNI.delete_SipUri(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
} }
}
public SipUri(String arg0) { public SipUri(String arg0) {
this(tinyWRAPJNI.new_SipUri(arg0), true); this(tinyWRAPJNI.new_SipUri(arg0), true);

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class SubscriptionEvent extends SipEvent {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr); tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -25,11 +25,13 @@ public class SubscriptionSession extends SipSession {
} }
public synchronized void delete() { public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) { if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false; swigCMemOwn = false;
tinyWRAPJNI.delete_SubscriptionSession(swigCPtr); tinyWRAPJNI.delete_SubscriptionSession(swigCPtr);
} }
swigCPtr = 0; swigCPtr = 0;
}
super.delete(); super.delete();
} }

View File

@ -9,12 +9,15 @@ all: $(APP)
OBJS = tinyWRAP_wrap.o\ OBJS = tinyWRAP_wrap.o\
../../_common/MessagingEvent.o \ ../../_common/MessagingEvent.o \
../../_common/PublicationEvent.o \
../../_common/PublicationSession.o \
../../_common/RegistrationEvent.o \ ../../_common/RegistrationEvent.o \
../../_common/RegistrationSession.o \ ../../_common/RegistrationSession.o \
../../_common/SafeObject.o \ ../../_common/SafeObject.o \
../../_common/SipCallback.o \ ../../_common/SipCallback.o \
../../_common/SipDebug.o \ ../../_common/SipDebug.o \
../../_common/SipEvent.o \ ../../_common/SipEvent.o \
../../_common/SipMessage.o \
../../_common/SipSession.o \ ../../_common/SipSession.o \
../../_common/SipStack.o \ ../../_common/SipStack.o \
../../_common/SipUri.o \ ../../_common/SipUri.o \

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -15,7 +15,6 @@ class tinyWRAPJNI {
public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_); public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_);
public final static native long new_SipMessage(); public final static native long new_SipMessage();
public final static native void delete_SipMessage(long jarg1); public final static native void delete_SipMessage(long jarg1);
public final static native byte[] SipMessage_getSipContent(long jarg1, SipMessage jarg1_);
public final static native String SipMessage_getSipHeaderValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, long jarg3); public final static native String SipMessage_getSipHeaderValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, long jarg3);
public final static native String SipMessage_getSipHeaderValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2); public final static native String SipMessage_getSipHeaderValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2);
public final static native String SipMessage_getSipHeaderParamValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, String jarg3, long jarg4); public final static native String SipMessage_getSipHeaderParamValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, String jarg3, long jarg4);
@ -36,6 +35,14 @@ class tinyWRAPJNI {
public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2); public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2);
public final static native boolean SipSession_setFromUri(long jarg1, SipSession jarg1_, String jarg2); public final static native boolean SipSession_setFromUri(long jarg1, SipSession jarg1_, String jarg2);
public final static native boolean SipSession_setToUri(long jarg1, SipSession jarg1_, String jarg2); public final static native boolean SipSession_setToUri(long jarg1, SipSession jarg1_, String jarg2);
public final static native long new_PublicationEvent();
public final static native void delete_PublicationEvent(long jarg1);
public final static native int PublicationEvent_getType(long jarg1, PublicationEvent jarg1_);
public final static native long PublicationEvent_getSession(long jarg1, PublicationEvent jarg1_);
public final static native long new_PublicationSession(long jarg1, SipStack jarg1_);
public final static native void delete_PublicationSession(long jarg1);
public final static native boolean PublicationSession_Publish(long jarg1, PublicationSession jarg1_, byte[] jarg2, long jarg3);
public final static native boolean PublicationSession_UnPublish(long jarg1, PublicationSession jarg1_);
public final static native long new_RegistrationEvent(); public final static native long new_RegistrationEvent();
public final static native void delete_RegistrationEvent(long jarg1); public final static native void delete_RegistrationEvent(long jarg1);
public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_); public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_);
@ -58,6 +65,8 @@ class tinyWRAPJNI {
public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
public final static native int SipCallback_OnPublicationChanged(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_);
public final static native int SipCallback_OnPublicationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_);
public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global); public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global);
public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release); public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release);
public final static native long new_SipDebugCallback(); public final static native long new_SipDebugCallback();
@ -93,6 +102,8 @@ class tinyWRAPJNI {
public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2); public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2);
public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_); public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_);
public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_); public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_);
public final static native long SWIGPublicationEventUpcast(long jarg1);
public final static native long SWIGPublicationSessionUpcast(long jarg1);
public final static native long SWIGRegistrationEventUpcast(long jarg1); public final static native long SWIGRegistrationEventUpcast(long jarg1);
public final static native long SWIGRegistrationSessionUpcast(long jarg1); public final static native long SWIGRegistrationSessionUpcast(long jarg1);
public final static native long SWIGSubscriptionEventUpcast(long jarg1); public final static native long SWIGSubscriptionEventUpcast(long jarg1);
@ -105,6 +116,9 @@ class tinyWRAPJNI {
public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) { public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) {
return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false)); return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false));
} }
public static int SwigDirector_SipCallback_OnPublicationChanged(SipCallback self, long e) {
return self.OnPublicationChanged((e == 0) ? null : new PublicationEvent(e, false));
}
public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) { public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) {
return self.OnDebugInfo(message); return self.OnDebugInfo(message);
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
@ -193,7 +193,8 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC
{ SWIG_JavaNullPointerException, "java/lang/NullPointerException" }, { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
{ SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" }, { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
{ SWIG_JavaUnknownError, "java/lang/UnknownError" }, { SWIG_JavaUnknownError, "java/lang/UnknownError" },
{ (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" } }; { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
};
const SWIG_JavaExceptions_t *except_ptr = java_exceptions; const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
while (except_ptr->code != code && except_ptr->code) while (except_ptr->code != code && except_ptr->code)
@ -403,13 +404,15 @@ namespace Swig {
namespace Swig { namespace Swig {
static jclass jclass_tinyWRAPJNI = NULL; static jclass jclass_tinyWRAPJNI = NULL;
static jmethodID director_methids[6]; static jmethodID director_methids[7];
} }
#include "SipUri.h" #include "SipUri.h"
#include "SipMessage.h" #include "SipMessage.h"
#include "SipEvent.h" #include "SipEvent.h"
#include "SipSession.h" #include "SipSession.h"
#include "PublicationEvent.h"
#include "PublicationSession.h"
#include "RegistrationEvent.h" #include "RegistrationEvent.h"
#include "RegistrationSession.h" #include "RegistrationSession.h"
#include "SubscriptionEvent.h" #include "SubscriptionEvent.h"
@ -483,6 +486,30 @@ int SwigDirector_SipCallback::OnSubscriptionChanged(SubscriptionEvent const *e)
return c_result; return c_result;
} }
int SwigDirector_SipCallback::OnPublicationChanged(PublicationEvent const *e) {
int c_result = SwigValueInit< int >() ;
jint jresult = 0 ;
JNIEnvWrapper swigjnienv(this) ;
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[2]) {
return SipCallback::OnPublicationChanged(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((PublicationEvent **)&je) = (PublicationEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[2], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
}
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
return c_result;
}
void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
static struct { static struct {
const char *mname; const char *mname;
@ -494,6 +521,9 @@ void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself
}, },
{ {
"OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SubscriptionEvent;)I", NULL "OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SubscriptionEvent;)I", NULL
},
{
"OnPublicationChanged", "(Lorg/doubango/tinyWRAP/PublicationEvent;)I", NULL
} }
}; };
@ -506,7 +536,7 @@ void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself
baseclass = (jclass) jenv->NewGlobalRef(baseclass); baseclass = (jclass) jenv->NewGlobalRef(baseclass);
} }
bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
for (int i = 0; i < 2; ++i) { for (int i = 0; i < 3; ++i) {
if (!methods[i].base_methid) { if (!methods[i].base_methid) {
methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
if (!methods[i].base_methid) return; if (!methods[i].base_methid) return;
@ -548,7 +578,7 @@ int SwigDirector_SipDebugCallback::OnDebugInfo(char const *message) {
jmessage = jenv->NewStringUTF((const char *)message); jmessage = jenv->NewStringUTF((const char *)message);
if (!jmessage) return c_result; if (!jmessage) return c_result;
} }
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[2], swigjobj, jmessage); jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[3], swigjobj, jmessage);
if (jenv->ExceptionOccurred()) return c_result; if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult; c_result = (int)jresult;
} else { } else {
@ -576,7 +606,7 @@ int SwigDirector_SipDebugCallback::OnDebugWarn(char const *message) {
jmessage = jenv->NewStringUTF((const char *)message); jmessage = jenv->NewStringUTF((const char *)message);
if (!jmessage) return c_result; if (!jmessage) return c_result;
} }
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[3], swigjobj, jmessage); jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[4], swigjobj, jmessage);
if (jenv->ExceptionOccurred()) return c_result; if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult; c_result = (int)jresult;
} else { } else {
@ -604,7 +634,7 @@ int SwigDirector_SipDebugCallback::OnDebugError(char const *message) {
jmessage = jenv->NewStringUTF((const char *)message); jmessage = jenv->NewStringUTF((const char *)message);
if (!jmessage) return c_result; if (!jmessage) return c_result;
} }
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[4], swigjobj, jmessage); jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[5], swigjobj, jmessage);
if (jenv->ExceptionOccurred()) return c_result; if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult; c_result = (int)jresult;
} else { } else {
@ -632,7 +662,7 @@ int SwigDirector_SipDebugCallback::OnDebugFatal(char const *message) {
jmessage = jenv->NewStringUTF((const char *)message); jmessage = jenv->NewStringUTF((const char *)message);
if (!jmessage) return c_result; if (!jmessage) return c_result;
} }
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[5], swigjobj, jmessage); jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[6], swigjobj, jmessage);
if (jenv->ExceptionOccurred()) return c_result; if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult; c_result = (int)jresult;
} else { } else {
@ -777,21 +807,6 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipMessag
} }
SWIGEXPORT void * JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
void * jresult = 0 ;
SipMessage *arg1 = (SipMessage *) 0 ;
void *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(SipMessage **)&jarg1;
result = (void *)((SipMessage const *)arg1)->getSipContent();
jresult = result;
return jresult;
}
SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) {
jstring jresult = 0 ; jstring jresult = 0 ;
SipMessage *arg1 = (SipMessage *) 0 ; SipMessage *arg1 = (SipMessage *) 0 ;
@ -1192,6 +1207,117 @@ SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1s
} }
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1PublicationEvent(JNIEnv *jenv, jclass jcls) {
jlong jresult = 0 ;
PublicationEvent *result = 0 ;
(void)jenv;
(void)jcls;
result = (PublicationEvent *)new PublicationEvent();
*(PublicationEvent **)&jresult = result;
return jresult;
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
(void)jenv;
(void)jcls;
arg1 = *(PublicationEvent **)&jarg1;
delete arg1;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jint jresult = 0 ;
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
tsip_publish_event_type_t result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(PublicationEvent **)&jarg1;
result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType();
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
PublicationSession *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(PublicationEvent **)&jarg1;
result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession();
*(PublicationSession **)&jresult = result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
SipStack *arg1 = (SipStack *) 0 ;
PublicationSession *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(SipStack **)&jarg1;
result = (PublicationSession *)new PublicationSession(arg1);
*(PublicationSession **)&jresult = result;
return jresult;
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
PublicationSession *arg1 = (PublicationSession *) 0 ;
(void)jenv;
(void)jcls;
arg1 = *(PublicationSession **)&jarg1;
delete arg1;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1Publish(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, void * jarg2, jlong jarg3) {
jboolean jresult = 0 ;
PublicationSession *arg1 = (PublicationSession *) 0 ;
void *arg2 = (void *) 0 ;
unsigned int arg3 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(PublicationSession **)&jarg1;
arg2 = jarg2;
arg3 = (unsigned int)jarg3;
result = (bool)(arg1)->Publish((void const *)arg2,arg3);
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1UnPublish(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
PublicationSession *arg1 = (PublicationSession *) 0 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(PublicationSession **)&jarg1;
result = (bool)(arg1)->UnPublish();
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationEvent(JNIEnv *jenv, jclass jcls) { SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationEvent(JNIEnv *jenv, jclass jcls) {
jlong jresult = 0 ; jlong jresult = 0 ;
RegistrationEvent *result = 0 ; RegistrationEvent *result = 0 ;
@ -1500,6 +1626,42 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSu
} }
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationChanged(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
PublicationEvent *arg2 = (PublicationEvent *) 0 ;
int result;
(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(SipCallback **)&jarg1;
arg2 = *(PublicationEvent **)&jarg2;
result = (int)(arg1)->OnPublicationChanged((PublicationEvent const *)arg2);
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationChangedSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
PublicationEvent *arg2 = (PublicationEvent *) 0 ;
int result;
(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(SipCallback **)&jarg1;
arg2 = *(PublicationEvent **)&jarg2;
result = (int)(arg1)->SipCallback::OnPublicationChanged((PublicationEvent const *)arg2);
jresult = (jint)result;
return jresult;
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
SipCallback *obj = *((SipCallback **)&objarg); SipCallback *obj = *((SipCallback **)&objarg);
(void)jcls; (void)jcls;
@ -2154,6 +2316,22 @@ SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1sto
} }
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGPublicationEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0;
(void)jenv;
(void)jcls;
*(SipEvent **)&baseptr = *(PublicationEvent **)&jarg1;
return baseptr;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGPublicationSessionUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0;
(void)jenv;
(void)jcls;
*(SipSession **)&baseptr = *(PublicationSession **)&jarg1;
return baseptr;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGRegistrationEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGRegistrationEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0; jlong baseptr = 0;
(void)jenv; (void)jenv;
@ -2200,13 +2378,16 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1ini
static struct { static struct {
const char *method; const char *method;
const char *signature; const char *signature;
} methods[6] = { } methods[7] = {
{ {
"SwigDirector_SipCallback_OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" "SwigDirector_SipCallback_OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
}, },
{ {
"SwigDirector_SipCallback_OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" "SwigDirector_SipCallback_OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
}, },
{
"SwigDirector_SipCallback_OnPublicationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
},
{ {
"SwigDirector_SipDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" "SwigDirector_SipDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I"
}, },

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
@ -19,12 +19,13 @@ public:
virtual ~SwigDirector_SipCallback(); virtual ~SwigDirector_SipCallback();
virtual int OnRegistrationChanged(RegistrationEvent const *e); virtual int OnRegistrationChanged(RegistrationEvent const *e);
virtual int OnSubscriptionChanged(SubscriptionEvent const *e); virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
virtual int OnPublicationChanged(PublicationEvent const *e);
public: public:
bool swig_overrides(int n) { bool swig_overrides(int n) {
return (n < 2 ? swig_override[n] : false); return (n < 3 ? swig_override[n] : false);
} }
protected: protected:
bool swig_override[2]; bool swig_override[3];
}; };
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -0,0 +1,58 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.doubango.tinyWRAP;
public enum tsip_publish_event_type_t {
tsip_i_publish,
tsip_ai_publish,
tsip_o_publish,
tsip_ao_publish,
tsip_i_unpublish,
tsip_ai_unpublish,
tsip_o_unpublish,
tsip_ao_unpublish;
public final int swigValue() {
return swigValue;
}
public static tsip_publish_event_type_t swigToEnum(int swigValue) {
tsip_publish_event_type_t[] swigValues = tsip_publish_event_type_t.class.getEnumConstants();
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (tsip_publish_event_type_t swigEnum : swigValues)
if (swigEnum.swigValue == swigValue)
return swigEnum;
throw new IllegalArgumentException("No enum " + tsip_publish_event_type_t.class + " with value " + swigValue);
}
@SuppressWarnings("unused")
private tsip_publish_event_type_t() {
this.swigValue = SwigNext.next++;
}
@SuppressWarnings("unused")
private tsip_publish_event_type_t(int swigValue) {
this.swigValue = swigValue;
SwigNext.next = swigValue+1;
}
@SuppressWarnings("unused")
private tsip_publish_event_type_t(tsip_publish_event_type_t swigEnum) {
this.swigValue = swigEnum.swigValue;
SwigNext.next = this.swigValue+1;
}
private final int swigValue;
private static class SwigNext {
private static int next = 0;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.
@ -15,7 +15,6 @@ class tinyWRAPJNI {
public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_); public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_);
public final static native long new_SipMessage(); public final static native long new_SipMessage();
public final static native void delete_SipMessage(long jarg1); public final static native void delete_SipMessage(long jarg1);
public final static native byte[] SipMessage_getSipContent(long jarg1, SipMessage jarg1_);
public final static native String SipMessage_getSipHeaderValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, long jarg3); public final static native String SipMessage_getSipHeaderValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, long jarg3);
public final static native String SipMessage_getSipHeaderValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2); public final static native String SipMessage_getSipHeaderValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2);
public final static native String SipMessage_getSipHeaderParamValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, String jarg3, long jarg4); public final static native String SipMessage_getSipHeaderParamValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, String jarg3, long jarg4);
@ -36,6 +35,14 @@ class tinyWRAPJNI {
public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2); public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2);
public final static native boolean SipSession_setFromUri(long jarg1, SipSession jarg1_, String jarg2); public final static native boolean SipSession_setFromUri(long jarg1, SipSession jarg1_, String jarg2);
public final static native boolean SipSession_setToUri(long jarg1, SipSession jarg1_, String jarg2); public final static native boolean SipSession_setToUri(long jarg1, SipSession jarg1_, String jarg2);
public final static native long new_PublicationEvent();
public final static native void delete_PublicationEvent(long jarg1);
public final static native int PublicationEvent_getType(long jarg1, PublicationEvent jarg1_);
public final static native long PublicationEvent_getSession(long jarg1, PublicationEvent jarg1_);
public final static native long new_PublicationSession(long jarg1, SipStack jarg1_);
public final static native void delete_PublicationSession(long jarg1);
public final static native boolean PublicationSession_Publish(long jarg1, PublicationSession jarg1_, byte[] jarg2, long jarg3);
public final static native boolean PublicationSession_UnPublish(long jarg1, PublicationSession jarg1_);
public final static native long new_RegistrationEvent(); public final static native long new_RegistrationEvent();
public final static native void delete_RegistrationEvent(long jarg1); public final static native void delete_RegistrationEvent(long jarg1);
public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_); public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_);
@ -58,6 +65,8 @@ class tinyWRAPJNI {
public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
public final static native int SipCallback_OnPublicationChanged(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_);
public final static native int SipCallback_OnPublicationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_);
public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global); public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global);
public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release); public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release);
public final static native long new_SipDebugCallback(); public final static native long new_SipDebugCallback();
@ -93,6 +102,8 @@ class tinyWRAPJNI {
public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2); public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2);
public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_); public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_);
public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_); public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_);
public final static native long SWIGPublicationEventUpcast(long jarg1);
public final static native long SWIGPublicationSessionUpcast(long jarg1);
public final static native long SWIGRegistrationEventUpcast(long jarg1); public final static native long SWIGRegistrationEventUpcast(long jarg1);
public final static native long SWIGRegistrationSessionUpcast(long jarg1); public final static native long SWIGRegistrationSessionUpcast(long jarg1);
public final static native long SWIGSubscriptionEventUpcast(long jarg1); public final static native long SWIGSubscriptionEventUpcast(long jarg1);
@ -105,6 +116,9 @@ class tinyWRAPJNI {
public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) { public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) {
return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false)); return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false));
} }
public static int SwigDirector_SipCallback_OnPublicationChanged(SipCallback self, long e) {
return self.OnPublicationChanged((e == 0) ? null : new PublicationEvent(e, false));
}
public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) { public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) {
return self.OnDebugInfo(message); return self.OnDebugInfo(message);
} }

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
@ -193,7 +193,8 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC
{ SWIG_JavaNullPointerException, "java/lang/NullPointerException" }, { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
{ SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" }, { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
{ SWIG_JavaUnknownError, "java/lang/UnknownError" }, { SWIG_JavaUnknownError, "java/lang/UnknownError" },
{ (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" } }; { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
};
const SWIG_JavaExceptions_t *except_ptr = java_exceptions; const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
while (except_ptr->code != code && except_ptr->code) while (except_ptr->code != code && except_ptr->code)
@ -403,13 +404,15 @@ namespace Swig {
namespace Swig { namespace Swig {
static jclass jclass_tinyWRAPJNI = NULL; static jclass jclass_tinyWRAPJNI = NULL;
static jmethodID director_methids[6]; static jmethodID director_methids[7];
} }
#include "SipUri.h" #include "SipUri.h"
#include "SipMessage.h" #include "SipMessage.h"
#include "SipEvent.h" #include "SipEvent.h"
#include "SipSession.h" #include "SipSession.h"
#include "PublicationEvent.h"
#include "PublicationSession.h"
#include "RegistrationEvent.h" #include "RegistrationEvent.h"
#include "RegistrationSession.h" #include "RegistrationSession.h"
#include "SubscriptionEvent.h" #include "SubscriptionEvent.h"
@ -483,6 +486,30 @@ int SwigDirector_SipCallback::OnSubscriptionChanged(SubscriptionEvent const *e)
return c_result; return c_result;
} }
int SwigDirector_SipCallback::OnPublicationChanged(PublicationEvent const *e) {
int c_result = SwigValueInit< int >() ;
jint jresult = 0 ;
JNIEnvWrapper swigjnienv(this) ;
JNIEnv * jenv = swigjnienv.getJNIEnv() ;
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[2]) {
return SipCallback::OnPublicationChanged(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((PublicationEvent **)&je) = (PublicationEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[2], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object");
}
if (swigjobj) jenv->DeleteLocalRef(swigjobj);
return c_result;
}
void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) {
static struct { static struct {
const char *mname; const char *mname;
@ -494,6 +521,9 @@ void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself
}, },
{ {
"OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SubscriptionEvent;)I", NULL "OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SubscriptionEvent;)I", NULL
},
{
"OnPublicationChanged", "(Lorg/doubango/tinyWRAP/PublicationEvent;)I", NULL
} }
}; };
@ -506,7 +536,7 @@ void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself
baseclass = (jclass) jenv->NewGlobalRef(baseclass); baseclass = (jclass) jenv->NewGlobalRef(baseclass);
} }
bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
for (int i = 0; i < 2; ++i) { for (int i = 0; i < 3; ++i) {
if (!methods[i].base_methid) { if (!methods[i].base_methid) {
methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
if (!methods[i].base_methid) return; if (!methods[i].base_methid) return;
@ -548,7 +578,7 @@ int SwigDirector_SipDebugCallback::OnDebugInfo(char const *message) {
jmessage = jenv->NewStringUTF((const char *)message); jmessage = jenv->NewStringUTF((const char *)message);
if (!jmessage) return c_result; if (!jmessage) return c_result;
} }
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[2], swigjobj, jmessage); jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[3], swigjobj, jmessage);
if (jenv->ExceptionOccurred()) return c_result; if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult; c_result = (int)jresult;
} else { } else {
@ -576,7 +606,7 @@ int SwigDirector_SipDebugCallback::OnDebugWarn(char const *message) {
jmessage = jenv->NewStringUTF((const char *)message); jmessage = jenv->NewStringUTF((const char *)message);
if (!jmessage) return c_result; if (!jmessage) return c_result;
} }
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[3], swigjobj, jmessage); jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[4], swigjobj, jmessage);
if (jenv->ExceptionOccurred()) return c_result; if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult; c_result = (int)jresult;
} else { } else {
@ -604,7 +634,7 @@ int SwigDirector_SipDebugCallback::OnDebugError(char const *message) {
jmessage = jenv->NewStringUTF((const char *)message); jmessage = jenv->NewStringUTF((const char *)message);
if (!jmessage) return c_result; if (!jmessage) return c_result;
} }
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[4], swigjobj, jmessage); jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[5], swigjobj, jmessage);
if (jenv->ExceptionOccurred()) return c_result; if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult; c_result = (int)jresult;
} else { } else {
@ -632,7 +662,7 @@ int SwigDirector_SipDebugCallback::OnDebugFatal(char const *message) {
jmessage = jenv->NewStringUTF((const char *)message); jmessage = jenv->NewStringUTF((const char *)message);
if (!jmessage) return c_result; if (!jmessage) return c_result;
} }
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[5], swigjobj, jmessage); jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[6], swigjobj, jmessage);
if (jenv->ExceptionOccurred()) return c_result; if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult; c_result = (int)jresult;
} else { } else {
@ -777,21 +807,6 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipMessag
} }
SWIGEXPORT void * JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
void * jresult = 0 ;
SipMessage *arg1 = (SipMessage *) 0 ;
void *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(SipMessage **)&jarg1;
result = (void *)((SipMessage const *)arg1)->getSipContent();
jresult = result;
return jresult;
}
SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) {
jstring jresult = 0 ; jstring jresult = 0 ;
SipMessage *arg1 = (SipMessage *) 0 ; SipMessage *arg1 = (SipMessage *) 0 ;
@ -1192,6 +1207,117 @@ SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1s
} }
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1PublicationEvent(JNIEnv *jenv, jclass jcls) {
jlong jresult = 0 ;
PublicationEvent *result = 0 ;
(void)jenv;
(void)jcls;
result = (PublicationEvent *)new PublicationEvent();
*(PublicationEvent **)&jresult = result;
return jresult;
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
(void)jenv;
(void)jcls;
arg1 = *(PublicationEvent **)&jarg1;
delete arg1;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jint jresult = 0 ;
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
tsip_publish_event_type_t result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(PublicationEvent **)&jarg1;
result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType();
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
PublicationSession *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(PublicationEvent **)&jarg1;
result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession();
*(PublicationSession **)&jresult = result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
SipStack *arg1 = (SipStack *) 0 ;
PublicationSession *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(SipStack **)&jarg1;
result = (PublicationSession *)new PublicationSession(arg1);
*(PublicationSession **)&jresult = result;
return jresult;
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) {
PublicationSession *arg1 = (PublicationSession *) 0 ;
(void)jenv;
(void)jcls;
arg1 = *(PublicationSession **)&jarg1;
delete arg1;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1Publish(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, void * jarg2, jlong jarg3) {
jboolean jresult = 0 ;
PublicationSession *arg1 = (PublicationSession *) 0 ;
void *arg2 = (void *) 0 ;
unsigned int arg3 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(PublicationSession **)&jarg1;
arg2 = jarg2;
arg3 = (unsigned int)jarg3;
result = (bool)(arg1)->Publish((void const *)arg2,arg3);
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1UnPublish(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
PublicationSession *arg1 = (PublicationSession *) 0 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(PublicationSession **)&jarg1;
result = (bool)(arg1)->UnPublish();
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationEvent(JNIEnv *jenv, jclass jcls) { SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationEvent(JNIEnv *jenv, jclass jcls) {
jlong jresult = 0 ; jlong jresult = 0 ;
RegistrationEvent *result = 0 ; RegistrationEvent *result = 0 ;
@ -1500,6 +1626,42 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSu
} }
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationChanged(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
PublicationEvent *arg2 = (PublicationEvent *) 0 ;
int result;
(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(SipCallback **)&jarg1;
arg2 = *(PublicationEvent **)&jarg2;
result = (int)(arg1)->OnPublicationChanged((PublicationEvent const *)arg2);
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationChangedSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
PublicationEvent *arg2 = (PublicationEvent *) 0 ;
int result;
(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(SipCallback **)&jarg1;
arg2 = *(PublicationEvent **)&jarg2;
result = (int)(arg1)->SipCallback::OnPublicationChanged((PublicationEvent const *)arg2);
jresult = (jint)result;
return jresult;
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
SipCallback *obj = *((SipCallback **)&objarg); SipCallback *obj = *((SipCallback **)&objarg);
(void)jcls; (void)jcls;
@ -2154,6 +2316,22 @@ SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1sto
} }
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGPublicationEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0;
(void)jenv;
(void)jcls;
*(SipEvent **)&baseptr = *(PublicationEvent **)&jarg1;
return baseptr;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGPublicationSessionUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0;
(void)jenv;
(void)jcls;
*(SipSession **)&baseptr = *(PublicationSession **)&jarg1;
return baseptr;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGRegistrationEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGRegistrationEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0; jlong baseptr = 0;
(void)jenv; (void)jenv;
@ -2200,13 +2378,16 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1ini
static struct { static struct {
const char *method; const char *method;
const char *signature; const char *signature;
} methods[6] = { } methods[7] = {
{ {
"SwigDirector_SipCallback_OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" "SwigDirector_SipCallback_OnRegistrationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
}, },
{ {
"SwigDirector_SipCallback_OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" "SwigDirector_SipCallback_OnSubscriptionChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
}, },
{
"SwigDirector_SipCallback_OnPublicationChanged", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
},
{ {
"SwigDirector_SipDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I" "SwigDirector_SipDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/SipDebugCallback;Ljava/lang/String;)I"
}, },

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
@ -19,12 +19,13 @@ public:
virtual ~SwigDirector_SipCallback(); virtual ~SwigDirector_SipCallback();
virtual int OnRegistrationChanged(RegistrationEvent const *e); virtual int OnRegistrationChanged(RegistrationEvent const *e);
virtual int OnSubscriptionChanged(SubscriptionEvent const *e); virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
virtual int OnPublicationChanged(PublicationEvent const *e);
public: public:
bool swig_overrides(int n) { bool swig_overrides(int n) {
return (n < 2 ? swig_override[n] : false); return (n < 3 ? swig_override[n] : false);
} }
protected: protected:
bool swig_override[2]; bool swig_override[3];
}; };
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director { class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -0,0 +1,58 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.doubango.tinyWRAP;
public enum tsip_publish_event_type_t {
tsip_i_publish,
tsip_ai_publish,
tsip_o_publish,
tsip_ao_publish,
tsip_i_unpublish,
tsip_ai_unpublish,
tsip_o_unpublish,
tsip_ao_unpublish;
public final int swigValue() {
return swigValue;
}
public static tsip_publish_event_type_t swigToEnum(int swigValue) {
tsip_publish_event_type_t[] swigValues = tsip_publish_event_type_t.class.getEnumConstants();
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (tsip_publish_event_type_t swigEnum : swigValues)
if (swigEnum.swigValue == swigValue)
return swigEnum;
throw new IllegalArgumentException("No enum " + tsip_publish_event_type_t.class + " with value " + swigValue);
}
@SuppressWarnings("unused")
private tsip_publish_event_type_t() {
this.swigValue = SwigNext.next++;
}
@SuppressWarnings("unused")
private tsip_publish_event_type_t(int swigValue) {
this.swigValue = swigValue;
SwigNext.next = swigValue+1;
}
@SuppressWarnings("unused")
private tsip_publish_event_type_t(tsip_publish_event_type_t swigEnum) {
this.swigValue = swigEnum.swigValue;
SwigNext.next = this.swigValue+1;
}
private final int swigValue;
private static class SwigNext {
private static int next = 0;
}
}

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* Do not make changes to this file unless you know what you are doing--modify * Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead. * the SWIG interface file instead.

View File

@ -1,5 +1,5 @@
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.39 # Version 1.3.40
# #
# Do not make changes to this file unless you know what you are doing--modify # Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead. # the SWIG interface file instead.
@ -112,7 +112,6 @@ sub DESTROY {
} }
} }
*getSipContent = *tinyWRAPc::SipMessage_getSipContent;
*getSipHeaderValue = *tinyWRAPc::SipMessage_getSipHeaderValue; *getSipHeaderValue = *tinyWRAPc::SipMessage_getSipHeaderValue;
*getSipHeaderParamValue = *tinyWRAPc::SipMessage_getSipHeaderParamValue; *getSipHeaderParamValue = *tinyWRAPc::SipMessage_getSipHeaderParamValue;
sub DISOWN { sub DISOWN {
@ -213,6 +212,84 @@ sub ACQUIRE {
} }
############# Class : tinyWRAP::PublicationEvent ##############
package tinyWRAP::PublicationEvent;
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
@ISA = qw( tinyWRAP::SipEvent tinyWRAP );
%OWNER = ();
%ITERATORS = ();
sub new {
my $pkg = shift;
my $self = tinyWRAPc::new_PublicationEvent(@_);
bless $self, $pkg if defined($self);
}
sub DESTROY {
return unless $_[0]->isa('HASH');
my $self = tied(%{$_[0]});
return unless defined $self;
delete $ITERATORS{$self};
if (exists $OWNER{$self}) {
tinyWRAPc::delete_PublicationEvent($self);
delete $OWNER{$self};
}
}
*getType = *tinyWRAPc::PublicationEvent_getType;
*getSession = *tinyWRAPc::PublicationEvent_getSession;
sub DISOWN {
my $self = shift;
my $ptr = tied(%$self);
delete $OWNER{$ptr};
}
sub ACQUIRE {
my $self = shift;
my $ptr = tied(%$self);
$OWNER{$ptr} = 1;
}
############# Class : tinyWRAP::PublicationSession ##############
package tinyWRAP::PublicationSession;
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
@ISA = qw( tinyWRAP::SipSession tinyWRAP );
%OWNER = ();
%ITERATORS = ();
sub new {
my $pkg = shift;
my $self = tinyWRAPc::new_PublicationSession(@_);
bless $self, $pkg if defined($self);
}
sub DESTROY {
return unless $_[0]->isa('HASH');
my $self = tied(%{$_[0]});
return unless defined $self;
delete $ITERATORS{$self};
if (exists $OWNER{$self}) {
tinyWRAPc::delete_PublicationSession($self);
delete $OWNER{$self};
}
}
*Publish = *tinyWRAPc::PublicationSession_Publish;
*UnPublish = *tinyWRAPc::PublicationSession_UnPublish;
sub DISOWN {
my $self = shift;
my $ptr = tied(%$self);
delete $OWNER{$ptr};
}
sub ACQUIRE {
my $self = shift;
my $ptr = tied(%$self);
$OWNER{$ptr} = 1;
}
############# Class : tinyWRAP::RegistrationEvent ############## ############# Class : tinyWRAP::RegistrationEvent ##############
package tinyWRAP::RegistrationEvent; package tinyWRAP::RegistrationEvent;
@ -395,6 +472,7 @@ sub DESTROY {
*OnRegistrationChanged = *tinyWRAPc::SipCallback_OnRegistrationChanged; *OnRegistrationChanged = *tinyWRAPc::SipCallback_OnRegistrationChanged;
*OnSubscriptionChanged = *tinyWRAPc::SipCallback_OnSubscriptionChanged; *OnSubscriptionChanged = *tinyWRAPc::SipCallback_OnSubscriptionChanged;
*OnPublicationChanged = *tinyWRAPc::SipCallback_OnPublicationChanged;
sub DISOWN { sub DISOWN {
my $self = shift; my $self = shift;
my $ptr = tied(%$self); my $ptr = tied(%$self);
@ -571,4 +649,12 @@ package tinyWRAP;
*tsip_ai_notify = *tinyWRAPc::tsip_ai_notify; *tsip_ai_notify = *tinyWRAPc::tsip_ai_notify;
*tsip_o_notify = *tinyWRAPc::tsip_o_notify; *tsip_o_notify = *tinyWRAPc::tsip_o_notify;
*tsip_ao_notify = *tinyWRAPc::tsip_ao_notify; *tsip_ao_notify = *tinyWRAPc::tsip_ao_notify;
*tsip_i_publish = *tinyWRAPc::tsip_i_publish;
*tsip_ai_publish = *tinyWRAPc::tsip_ai_publish;
*tsip_o_publish = *tinyWRAPc::tsip_o_publish;
*tsip_ao_publish = *tinyWRAPc::tsip_ao_publish;
*tsip_i_unpublish = *tinyWRAPc::tsip_i_unpublish;
*tsip_ai_unpublish = *tinyWRAPc::tsip_ai_unpublish;
*tsip_o_unpublish = *tinyWRAPc::tsip_o_unpublish;
*tsip_ao_unpublish = *tinyWRAPc::tsip_ao_unpublish;
1; 1;

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
@ -918,6 +918,7 @@ SWIG_Perl_ErrorType(int code) {
/* for raw pointers */ /* for raw pointers */
#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
#define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
#define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
/* for raw packed data */ /* for raw packed data */
@ -1134,10 +1135,14 @@ SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
/* Function for getting a pointer value */ /* Function for getting a pointer value */
SWIGRUNTIME int SWIGRUNTIME int
SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) {
swig_cast_info *tc; swig_cast_info *tc;
void *voidptr = (void *)0; void *voidptr = (void *)0;
SV *tsv = 0; SV *tsv = 0;
if (own)
*own = 0;
/* If magical, apply more magic */ /* If magical, apply more magic */
if (SvGMAGICAL(sv)) if (SvGMAGICAL(sv))
mg_get(sv); mg_get(sv);
@ -1187,7 +1192,11 @@ SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *
{ {
int newmemory = 0; int newmemory = 0;
*ptr = SWIG_TypeCast(tc,voidptr,&newmemory); *ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
assert(!newmemory); /* newmemory handling not yet implemented */ if (newmemory == SWIG_CAST_NEW_MEMORY) {
assert(own);
if (own)
*own = *own | SWIG_CAST_NEW_MEMORY;
}
} }
} else { } else {
*ptr = voidptr; *ptr = voidptr;
@ -1217,9 +1226,14 @@ SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *
return SWIG_OK; return SWIG_OK;
} }
SWIGRUNTIME int
SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0);
}
SWIGRUNTIME void SWIGRUNTIME void
SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
if (ptr && (flags & SWIG_SHADOW)) { if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) {
SV *self; SV *self;
SV *obj=newSV(0); SV *obj=newSV(0);
HV *hash=newHV(); HV *hash=newHV();
@ -1394,6 +1408,9 @@ SWIG_Perl_SetModule(swig_module_info *module) {
#ifdef do_close #ifdef do_close
#undef do_close #undef do_close
#endif #endif
#ifdef do_exec
#undef do_exec
#endif
#ifdef scalar #ifdef scalar
#undef scalar #undef scalar
#endif #endif
@ -1495,25 +1512,27 @@ SWIG_Perl_SetModule(swig_module_info *module) {
/* -------- TYPES TABLE (BEGIN) -------- */ /* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_RegistrationEvent swig_types[0] #define SWIGTYPE_p_PublicationEvent swig_types[0]
#define SWIGTYPE_p_RegistrationSession swig_types[1] #define SWIGTYPE_p_PublicationSession swig_types[1]
#define SWIGTYPE_p_SafeObject swig_types[2] #define SWIGTYPE_p_RegistrationEvent swig_types[2]
#define SWIGTYPE_p_SipCallback swig_types[3] #define SWIGTYPE_p_RegistrationSession swig_types[3]
#define SWIGTYPE_p_SipDebugCallback swig_types[4] #define SWIGTYPE_p_SafeObject swig_types[4]
#define SWIGTYPE_p_SipEvent swig_types[5] #define SWIGTYPE_p_SipCallback swig_types[5]
#define SWIGTYPE_p_SipMessage swig_types[6] #define SWIGTYPE_p_SipDebugCallback swig_types[6]
#define SWIGTYPE_p_SipSession swig_types[7] #define SWIGTYPE_p_SipEvent swig_types[7]
#define SWIGTYPE_p_SipStack swig_types[8] #define SWIGTYPE_p_SipMessage swig_types[8]
#define SWIGTYPE_p_SipUri swig_types[9] #define SWIGTYPE_p_SipSession swig_types[9]
#define SWIGTYPE_p_SubscriptionEvent swig_types[10] #define SWIGTYPE_p_SipStack swig_types[10]
#define SWIGTYPE_p_SubscriptionSession swig_types[11] #define SWIGTYPE_p_SipUri swig_types[11]
#define SWIGTYPE_p_char swig_types[12] #define SWIGTYPE_p_SubscriptionEvent swig_types[12]
#define SWIGTYPE_p_tsip_event_type_e swig_types[13] #define SWIGTYPE_p_SubscriptionSession swig_types[13]
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[14] #define SWIGTYPE_p_char swig_types[14]
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[15] #define SWIGTYPE_p_tsip_event_type_e swig_types[15]
#define SWIGTYPE_p_void swig_types[16] #define SWIGTYPE_p_tsip_publish_event_type_e swig_types[16]
static swig_type_info *swig_types[18]; #define SWIGTYPE_p_tsip_register_event_type_e swig_types[17]
static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0}; #define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[18]
static swig_type_info *swig_types[20];
static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
@ -1524,7 +1543,7 @@ static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
#define SWIG_name "tinyWRAPc::boot_tinyWRAP" #define SWIG_name "tinyWRAPc::boot_tinyWRAP"
#define SWIG_prefix "tinyWRAPc::" #define SWIG_prefix "tinyWRAPc::"
#define SWIGVERSION 0x010339 #define SWIGVERSION 0x010340
#define SWIG_VERSION SWIGVERSION #define SWIG_VERSION SWIGVERSION
@ -1553,6 +1572,8 @@ SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
#include "SipMessage.h" #include "SipMessage.h"
#include "SipEvent.h" #include "SipEvent.h"
#include "SipSession.h" #include "SipSession.h"
#include "PublicationEvent.h"
#include "PublicationSession.h"
#include "RegistrationEvent.h" #include "RegistrationEvent.h"
#include "RegistrationSession.h" #include "RegistrationSession.h"
#include "SubscriptionEvent.h" #include "SubscriptionEvent.h"
@ -2075,34 +2096,6 @@ XS(_wrap_delete_SipMessage) {
} }
XS(_wrap_SipMessage_getSipContent) {
{
SipMessage *arg1 = (SipMessage *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
void *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: SipMessage_getSipContent(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipContent" "', argument " "1"" of type '" "SipMessage const *""'");
}
arg1 = reinterpret_cast< SipMessage * >(argp1);
result = (void *)((SipMessage const *)arg1)->getSipContent();
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_SipMessage_getSipHeaderValue__SWIG_0) { XS(_wrap_SipMessage_getSipHeaderValue__SWIG_0) {
{ {
SipMessage *arg1 = (SipMessage *) 0 ; SipMessage *arg1 = (SipMessage *) 0 ;
@ -3126,6 +3119,236 @@ XS(_wrap_SipSession_setToUri) {
} }
XS(_wrap_new_PublicationEvent) {
{
int argvi = 0;
PublicationEvent *result = 0 ;
dXSARGS;
if ((items < 0) || (items > 0)) {
SWIG_croak("Usage: new_PublicationEvent();");
}
result = (PublicationEvent *)new PublicationEvent();
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationEvent, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_delete_PublicationEvent) {
{
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: delete_PublicationEvent(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationEvent, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PublicationEvent" "', argument " "1"" of type '" "PublicationEvent *""'");
}
arg1 = reinterpret_cast< PublicationEvent * >(argp1);
delete arg1;
ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_PublicationEvent_getType) {
{
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
tsip_publish_event_type_t result;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: PublicationEvent_getType(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_getType" "', argument " "1"" of type '" "PublicationEvent const *""'");
}
arg1 = reinterpret_cast< PublicationEvent * >(argp1);
result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType();
ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_PublicationEvent_getSession) {
{
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
PublicationSession *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: PublicationEvent_getSession(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_getSession" "', argument " "1"" of type '" "PublicationEvent const *""'");
}
arg1 = reinterpret_cast< PublicationEvent * >(argp1);
result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession();
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, 0 | SWIG_SHADOW); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_new_PublicationSession) {
{
SipStack *arg1 = (SipStack *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
PublicationSession *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: new_PublicationSession(Stack);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PublicationSession" "', argument " "1"" of type '" "SipStack *""'");
}
arg1 = reinterpret_cast< SipStack * >(argp1);
result = (PublicationSession *)new PublicationSession(arg1);
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_delete_PublicationSession) {
{
PublicationSession *arg1 = (PublicationSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: delete_PublicationSession(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationSession, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PublicationSession" "', argument " "1"" of type '" "PublicationSession *""'");
}
arg1 = reinterpret_cast< PublicationSession * >(argp1);
delete arg1;
ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_PublicationSession_Publish) {
{
PublicationSession *arg1 = (PublicationSession *) 0 ;
void *arg2 = (void *) 0 ;
unsigned int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
unsigned int val3 ;
int ecode3 = 0 ;
int argvi = 0;
bool result;
dXSARGS;
if ((items < 3) || (items > 3)) {
SWIG_croak("Usage: PublicationSession_Publish(self,payload,len);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_Publish" "', argument " "1"" of type '" "PublicationSession *""'");
}
arg1 = reinterpret_cast< PublicationSession * >(argp1);
res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PublicationSession_Publish" "', argument " "2"" of type '" "void const *""'");
}
ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PublicationSession_Publish" "', argument " "3"" of type '" "unsigned int""'");
}
arg3 = static_cast< unsigned int >(val3);
result = (bool)(arg1)->Publish((void const *)arg2,arg3);
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_PublicationSession_UnPublish) {
{
PublicationSession *arg1 = (PublicationSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: PublicationSession_UnPublish(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_UnPublish" "', argument " "1"" of type '" "PublicationSession *""'");
}
arg1 = reinterpret_cast< PublicationSession * >(argp1);
result = (bool)(arg1)->UnPublish();
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_new_RegistrationEvent) { XS(_wrap_new_RegistrationEvent) {
{ {
int argvi = 0; int argvi = 0;
@ -3671,6 +3894,44 @@ XS(_wrap_SipCallback_OnSubscriptionChanged) {
} }
XS(_wrap_SipCallback_OnPublicationChanged) {
{
SipCallback *arg1 = (SipCallback *) 0 ;
PublicationEvent *arg2 = (PublicationEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int argvi = 0;
int result;
dXSARGS;
if ((items < 2) || (items > 2)) {
SWIG_croak("Usage: SipCallback_OnPublicationChanged(self,e);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnPublicationChanged" "', argument " "1"" of type '" "SipCallback *""'");
}
arg1 = reinterpret_cast< SipCallback * >(argp1);
res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_PublicationEvent, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnPublicationChanged" "', argument " "2"" of type '" "PublicationEvent const *""'");
}
arg2 = reinterpret_cast< PublicationEvent * >(argp2);
result = (int)(arg1)->OnPublicationChanged((PublicationEvent const *)arg2);
ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_new_SipDebugCallback) { XS(_wrap_new_SipDebugCallback) {
{ {
int argvi = 0; int argvi = 0;
@ -4656,6 +4917,9 @@ XS(_wrap_SipStack_stop) {
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
static void *_p_PublicationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipSession *) ((PublicationSession *) x));
}
static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipSession *) ((RegistrationSession *) x)); return (void *)((SipSession *) ((RegistrationSession *) x));
} }
@ -4665,12 +4929,17 @@ static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(
static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SafeObject *) ((SipStack *) x)); return (void *)((SafeObject *) ((SipStack *) x));
} }
static void *_p_PublicationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((PublicationEvent *) x));
}
static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((RegistrationEvent *) x)); return (void *)((SipEvent *) ((RegistrationEvent *) x));
} }
static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((SubscriptionEvent *) x)); return (void *)((SipEvent *) ((SubscriptionEvent *) x));
} }
static swig_type_info _swigt__p_PublicationEvent = {"_p_PublicationEvent", "PublicationEvent *", 0, 0, (void*)"tinyWRAP::PublicationEvent", 0};
static swig_type_info _swigt__p_PublicationSession = {"_p_PublicationSession", "PublicationSession *", 0, 0, (void*)"tinyWRAP::PublicationSession", 0};
static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)"tinyWRAP::RegistrationEvent", 0}; static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)"tinyWRAP::RegistrationEvent", 0};
static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)"tinyWRAP::RegistrationSession", 0}; static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)"tinyWRAP::RegistrationSession", 0};
static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)"tinyWRAP::SafeObject", 0}; static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)"tinyWRAP::SafeObject", 0};
@ -4685,11 +4954,13 @@ static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "Su
static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)"tinyWRAP::SubscriptionSession", 0}; static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)"tinyWRAP::SubscriptionSession", 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_publish_event_type_e = {"_p_tsip_publish_event_type_e", "enum tsip_publish_event_type_e *|tsip_publish_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
static swig_type_info *swig_type_initial[] = { static swig_type_info *swig_type_initial[] = {
&_swigt__p_PublicationEvent,
&_swigt__p_PublicationSession,
&_swigt__p_RegistrationEvent, &_swigt__p_RegistrationEvent,
&_swigt__p_RegistrationSession, &_swigt__p_RegistrationSession,
&_swigt__p_SafeObject, &_swigt__p_SafeObject,
@ -4704,30 +4975,34 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_SubscriptionSession, &_swigt__p_SubscriptionSession,
&_swigt__p_char, &_swigt__p_char,
&_swigt__p_tsip_event_type_e, &_swigt__p_tsip_event_type_e,
&_swigt__p_tsip_publish_event_type_e,
&_swigt__p_tsip_register_event_type_e, &_swigt__p_tsip_register_event_type_e,
&_swigt__p_tsip_subscribe_event_type_e, &_swigt__p_tsip_subscribe_event_type_e,
&_swigt__p_void,
}; };
static swig_cast_info _swigc__p_PublicationEvent[] = { {&_swigt__p_PublicationEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PublicationSession[] = { {&_swigt__p_PublicationSession, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipDebugCallback[] = { {&_swigt__p_SipDebugCallback, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipDebugCallback[] = { {&_swigt__p_SipDebugCallback, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_PublicationEvent, _p_PublicationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipMessage[] = { {&_swigt__p_SipMessage, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipMessage[] = { {&_swigt__p_SipMessage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_PublicationSession, _p_PublicationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_publish_event_type_e[] = { {&_swigt__p_tsip_publish_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info *swig_cast_initial[] = { static swig_cast_info *swig_cast_initial[] = {
_swigc__p_PublicationEvent,
_swigc__p_PublicationSession,
_swigc__p_RegistrationEvent, _swigc__p_RegistrationEvent,
_swigc__p_RegistrationSession, _swigc__p_RegistrationSession,
_swigc__p_SafeObject, _swigc__p_SafeObject,
@ -4742,9 +5017,9 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_SubscriptionSession, _swigc__p_SubscriptionSession,
_swigc__p_char, _swigc__p_char,
_swigc__p_tsip_event_type_e, _swigc__p_tsip_event_type_e,
_swigc__p_tsip_publish_event_type_e,
_swigc__p_tsip_register_event_type_e, _swigc__p_tsip_register_event_type_e,
_swigc__p_tsip_subscribe_event_type_e, _swigc__p_tsip_subscribe_event_type_e,
_swigc__p_void,
}; };
@ -4765,7 +5040,6 @@ static swig_command_info swig_commands[] = {
{"tinyWRAPc::SipUri_isValid", _wrap_SipUri_isValid}, {"tinyWRAPc::SipUri_isValid", _wrap_SipUri_isValid},
{"tinyWRAPc::new_SipMessage", _wrap_new_SipMessage}, {"tinyWRAPc::new_SipMessage", _wrap_new_SipMessage},
{"tinyWRAPc::delete_SipMessage", _wrap_delete_SipMessage}, {"tinyWRAPc::delete_SipMessage", _wrap_delete_SipMessage},
{"tinyWRAPc::SipMessage_getSipContent", _wrap_SipMessage_getSipContent},
{"tinyWRAPc::SipMessage_getSipHeaderValue", _wrap_SipMessage_getSipHeaderValue}, {"tinyWRAPc::SipMessage_getSipHeaderValue", _wrap_SipMessage_getSipHeaderValue},
{"tinyWRAPc::SipMessage_getSipHeaderParamValue", _wrap_SipMessage_getSipHeaderParamValue}, {"tinyWRAPc::SipMessage_getSipHeaderParamValue", _wrap_SipMessage_getSipHeaderParamValue},
{"tinyWRAPc::new_SipEvent", _wrap_new_SipEvent}, {"tinyWRAPc::new_SipEvent", _wrap_new_SipEvent},
@ -4783,6 +5057,14 @@ static swig_command_info swig_commands[] = {
{"tinyWRAPc::SipSession_setExpires", _wrap_SipSession_setExpires}, {"tinyWRAPc::SipSession_setExpires", _wrap_SipSession_setExpires},
{"tinyWRAPc::SipSession_setFromUri", _wrap_SipSession_setFromUri}, {"tinyWRAPc::SipSession_setFromUri", _wrap_SipSession_setFromUri},
{"tinyWRAPc::SipSession_setToUri", _wrap_SipSession_setToUri}, {"tinyWRAPc::SipSession_setToUri", _wrap_SipSession_setToUri},
{"tinyWRAPc::new_PublicationEvent", _wrap_new_PublicationEvent},
{"tinyWRAPc::delete_PublicationEvent", _wrap_delete_PublicationEvent},
{"tinyWRAPc::PublicationEvent_getType", _wrap_PublicationEvent_getType},
{"tinyWRAPc::PublicationEvent_getSession", _wrap_PublicationEvent_getSession},
{"tinyWRAPc::new_PublicationSession", _wrap_new_PublicationSession},
{"tinyWRAPc::delete_PublicationSession", _wrap_delete_PublicationSession},
{"tinyWRAPc::PublicationSession_Publish", _wrap_PublicationSession_Publish},
{"tinyWRAPc::PublicationSession_UnPublish", _wrap_PublicationSession_UnPublish},
{"tinyWRAPc::new_RegistrationEvent", _wrap_new_RegistrationEvent}, {"tinyWRAPc::new_RegistrationEvent", _wrap_new_RegistrationEvent},
{"tinyWRAPc::delete_RegistrationEvent", _wrap_delete_RegistrationEvent}, {"tinyWRAPc::delete_RegistrationEvent", _wrap_delete_RegistrationEvent},
{"tinyWRAPc::RegistrationEvent_getType", _wrap_RegistrationEvent_getType}, {"tinyWRAPc::RegistrationEvent_getType", _wrap_RegistrationEvent_getType},
@ -4803,6 +5085,7 @@ static swig_command_info swig_commands[] = {
{"tinyWRAPc::delete_SipCallback", _wrap_delete_SipCallback}, {"tinyWRAPc::delete_SipCallback", _wrap_delete_SipCallback},
{"tinyWRAPc::SipCallback_OnRegistrationChanged", _wrap_SipCallback_OnRegistrationChanged}, {"tinyWRAPc::SipCallback_OnRegistrationChanged", _wrap_SipCallback_OnRegistrationChanged},
{"tinyWRAPc::SipCallback_OnSubscriptionChanged", _wrap_SipCallback_OnSubscriptionChanged}, {"tinyWRAPc::SipCallback_OnSubscriptionChanged", _wrap_SipCallback_OnSubscriptionChanged},
{"tinyWRAPc::SipCallback_OnPublicationChanged", _wrap_SipCallback_OnPublicationChanged},
{"tinyWRAPc::new_SipDebugCallback", _wrap_new_SipDebugCallback}, {"tinyWRAPc::new_SipDebugCallback", _wrap_new_SipDebugCallback},
{"tinyWRAPc::delete_SipDebugCallback", _wrap_delete_SipDebugCallback}, {"tinyWRAPc::delete_SipDebugCallback", _wrap_delete_SipDebugCallback},
{"tinyWRAPc::SipDebugCallback_OnDebugInfo", _wrap_SipDebugCallback_OnDebugInfo}, {"tinyWRAPc::SipDebugCallback_OnDebugInfo", _wrap_SipDebugCallback_OnDebugInfo},
@ -5128,6 +5411,8 @@ XS(SWIG_init) {
SWIG_TypeClientData(SWIGTYPE_p_SipMessage, (void*) "tinyWRAP::SipMessage"); SWIG_TypeClientData(SWIGTYPE_p_SipMessage, (void*) "tinyWRAP::SipMessage");
SWIG_TypeClientData(SWIGTYPE_p_SipEvent, (void*) "tinyWRAP::SipEvent"); SWIG_TypeClientData(SWIGTYPE_p_SipEvent, (void*) "tinyWRAP::SipEvent");
SWIG_TypeClientData(SWIGTYPE_p_SipSession, (void*) "tinyWRAP::SipSession"); SWIG_TypeClientData(SWIGTYPE_p_SipSession, (void*) "tinyWRAP::SipSession");
SWIG_TypeClientData(SWIGTYPE_p_PublicationEvent, (void*) "tinyWRAP::PublicationEvent");
SWIG_TypeClientData(SWIGTYPE_p_PublicationSession, (void*) "tinyWRAP::PublicationSession");
SWIG_TypeClientData(SWIGTYPE_p_RegistrationEvent, (void*) "tinyWRAP::RegistrationEvent"); SWIG_TypeClientData(SWIGTYPE_p_RegistrationEvent, (void*) "tinyWRAP::RegistrationEvent");
SWIG_TypeClientData(SWIGTYPE_p_RegistrationSession, (void*) "tinyWRAP::RegistrationSession"); SWIG_TypeClientData(SWIGTYPE_p_RegistrationSession, (void*) "tinyWRAP::RegistrationSession");
SWIG_TypeClientData(SWIGTYPE_p_SubscriptionEvent, (void*) "tinyWRAP::SubscriptionEvent"); SWIG_TypeClientData(SWIGTYPE_p_SubscriptionEvent, (void*) "tinyWRAP::SubscriptionEvent");
@ -5136,141 +5421,181 @@ XS(SWIG_init) {
SWIG_TypeClientData(SWIGTYPE_p_SipDebugCallback, (void*) "tinyWRAP::SipDebugCallback"); SWIG_TypeClientData(SWIGTYPE_p_SipDebugCallback, (void*) "tinyWRAP::SipDebugCallback");
SWIG_TypeClientData(SWIGTYPE_p_SafeObject, (void*) "tinyWRAP::SafeObject"); SWIG_TypeClientData(SWIGTYPE_p_SafeObject, (void*) "tinyWRAP::SafeObject");
SWIG_TypeClientData(SWIGTYPE_p_SipStack, (void*) "tinyWRAP::SipStack"); SWIG_TypeClientData(SWIGTYPE_p_SipStack, (void*) "tinyWRAP::SipStack");
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_invite", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_event_invite", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_invite))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_invite)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_message", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_event_message", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_message))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_message)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_options", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_event_options", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_options))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_options)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_publish", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_event_publish", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_publish))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_publish)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_register", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_event_register", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_register))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_register)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_subscribe", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_event_subscribe", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_subscribe))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_subscribe)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_dialog", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_event_dialog", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_dialog))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_dialog)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_register", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_i_register", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_register))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_register)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_register", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_register", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_register))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_register)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_register", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_o_register", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_register))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_register)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_register", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_register", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_register))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_register)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unregister", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unregister", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unregister))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unregister)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unregister", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unregister", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unregister))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unregister)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unregister", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unregister", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unregister))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unregister)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unregister", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unregister", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unregister))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unregister)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_subscribe", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_i_subscribe", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_subscribe))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_subscribe)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_subscribe", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_subscribe", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_subscribe))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_subscribe)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_subscribe", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_o_subscribe", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_subscribe))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_subscribe)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_subscribe", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_subscribe", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_subscribe))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_subscribe)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unsubscribe", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unsubscribe))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unsubscribe)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unsubscribe", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unsubscribe))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unsubscribe)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unsubscribe", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unsubscribe))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unsubscribe)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unsubscribe", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unsubscribe))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unsubscribe)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_notify", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_i_notify", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_notify))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_notify)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_notify", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_notify", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_notify))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_notify)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_notify", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_o_notify", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_notify))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_notify)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do { /*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_notify", TRUE | 0x2 | GV_ADDMULTI); SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_notify", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_notify))); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_notify)));
SvREADONLY_on(sv); SvREADONLY_on(sv);
} while(0) /*@SWIG@*/; } while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_publish", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_publish)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_publish", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_publish)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_publish", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_publish)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_publish", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_publish)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unpublish", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unpublish)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unpublish", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unpublish)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unpublish", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unpublish)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.40/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unpublish", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unpublish)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
ST(0) = &PL_sv_yes; ST(0) = &PL_sv_yes;
XSRETURN(1); XSRETURN(1);
} }

View File

@ -1,5 +1,5 @@
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.39 # Version 1.3.40
# #
# Do not make changes to this file unless you know what you are doing--modify # Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead. # the SWIG interface file instead.
@ -10,11 +10,17 @@ if version_info >= (2,6,0):
def swig_import_helper(): def swig_import_helper():
from os.path import dirname from os.path import dirname
import imp import imp
fp = None
try: try:
fp, pathname, description = imp.find_module('_tinyWRAP', [dirname(__file__)]) fp, pathname, description = imp.find_module('_tinyWRAP', [dirname(__file__)])
except ImportError:
import _tinyWRAP
return _tinyWRAP
if fp is not None:
try:
_mod = imp.load_module('_tinyWRAP', fp, pathname, description) _mod = imp.load_module('_tinyWRAP', fp, pathname, description)
finally: finally:
if fp is not None: fp.close() fp.close()
return _mod return _mod
_tinyWRAP = swig_import_helper() _tinyWRAP = swig_import_helper()
del swig_import_helper del swig_import_helper
@ -95,7 +101,6 @@ class SipMessage(_object):
except: self.this = this except: self.this = this
__swig_destroy__ = _tinyWRAP.delete_SipMessage __swig_destroy__ = _tinyWRAP.delete_SipMessage
__del__ = lambda self : None; __del__ = lambda self : None;
def getSipContent(self): return _tinyWRAP.SipMessage_getSipContent(self)
def getSipHeaderValue(self, *args): return _tinyWRAP.SipMessage_getSipHeaderValue(self, *args) def getSipHeaderValue(self, *args): return _tinyWRAP.SipMessage_getSipHeaderValue(self, *args)
def getSipHeaderParamValue(self, *args): return _tinyWRAP.SipMessage_getSipHeaderParamValue(self, *args) def getSipHeaderParamValue(self, *args): return _tinyWRAP.SipMessage_getSipHeaderParamValue(self, *args)
SipMessage_swigregister = _tinyWRAP.SipMessage_swigregister SipMessage_swigregister = _tinyWRAP.SipMessage_swigregister
@ -142,6 +147,44 @@ class SipSession(_object):
SipSession_swigregister = _tinyWRAP.SipSession_swigregister SipSession_swigregister = _tinyWRAP.SipSession_swigregister
SipSession_swigregister(SipSession) SipSession_swigregister(SipSession)
class PublicationEvent(SipEvent):
__swig_setmethods__ = {}
for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PublicationEvent, name, value)
__swig_getmethods__ = {}
for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, PublicationEvent, name)
__repr__ = _swig_repr
def __init__(self):
this = _tinyWRAP.new_PublicationEvent()
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _tinyWRAP.delete_PublicationEvent
__del__ = lambda self : None;
def getType(self): return _tinyWRAP.PublicationEvent_getType(self)
def getSession(self): return _tinyWRAP.PublicationEvent_getSession(self)
PublicationEvent_swigregister = _tinyWRAP.PublicationEvent_swigregister
PublicationEvent_swigregister(PublicationEvent)
class PublicationSession(SipSession):
__swig_setmethods__ = {}
for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PublicationSession, name, value)
__swig_getmethods__ = {}
for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, PublicationSession, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _tinyWRAP.new_PublicationSession(*args)
try: self.this.append(this)
except: self.this = this
__swig_destroy__ = _tinyWRAP.delete_PublicationSession
__del__ = lambda self : None;
def Publish(self, *args): return _tinyWRAP.PublicationSession_Publish(self, *args)
def UnPublish(self): return _tinyWRAP.PublicationSession_UnPublish(self)
PublicationSession_swigregister = _tinyWRAP.PublicationSession_swigregister
PublicationSession_swigregister(PublicationSession)
class RegistrationEvent(SipEvent): class RegistrationEvent(SipEvent):
__swig_setmethods__ = {} __swig_setmethods__ = {}
for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
@ -236,6 +279,7 @@ class SipCallback(_object):
__del__ = lambda self : None; __del__ = lambda self : None;
def OnRegistrationChanged(self, *args): return _tinyWRAP.SipCallback_OnRegistrationChanged(self, *args) def OnRegistrationChanged(self, *args): return _tinyWRAP.SipCallback_OnRegistrationChanged(self, *args)
def OnSubscriptionChanged(self, *args): return _tinyWRAP.SipCallback_OnSubscriptionChanged(self, *args) def OnSubscriptionChanged(self, *args): return _tinyWRAP.SipCallback_OnSubscriptionChanged(self, *args)
def OnPublicationChanged(self, *args): return _tinyWRAP.SipCallback_OnPublicationChanged(self, *args)
def __disown__(self): def __disown__(self):
self.this.disown() self.this.disown()
_tinyWRAP.disown_SipCallback(self) _tinyWRAP.disown_SipCallback(self)
@ -346,5 +390,13 @@ tsip_i_notify = _tinyWRAP.tsip_i_notify
tsip_ai_notify = _tinyWRAP.tsip_ai_notify tsip_ai_notify = _tinyWRAP.tsip_ai_notify
tsip_o_notify = _tinyWRAP.tsip_o_notify tsip_o_notify = _tinyWRAP.tsip_o_notify
tsip_ao_notify = _tinyWRAP.tsip_ao_notify tsip_ao_notify = _tinyWRAP.tsip_ao_notify
tsip_i_publish = _tinyWRAP.tsip_i_publish
tsip_ai_publish = _tinyWRAP.tsip_ai_publish
tsip_o_publish = _tinyWRAP.tsip_o_publish
tsip_ao_publish = _tinyWRAP.tsip_ao_publish
tsip_i_unpublish = _tinyWRAP.tsip_i_unpublish
tsip_ai_unpublish = _tinyWRAP.tsip_ai_unpublish
tsip_o_unpublish = _tinyWRAP.tsip_o_unpublish
tsip_ao_unpublish = _tinyWRAP.tsip_ao_unpublish

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
@ -750,7 +750,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
/* Compatibility marcos for Python 3 */ /* Compatibility macros for Python 3 */
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
@ -773,17 +773,35 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
# define SWIG_Python_str_FromFormat PyString_FromFormat # define SWIG_Python_str_FromFormat PyString_FromFormat
#endif #endif
/* Warning: This function will allocate a new string in Python 3,
* so please call SWIG_Python_str_DelForPy3(x) to free the space.
*/
SWIGINTERN char* SWIGINTERN char*
SWIG_Python_str_AsChar(PyObject *str) SWIG_Python_str_AsChar(PyObject *str)
{ {
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
char *cstr;
char *newstr;
Py_ssize_t len;
str = PyUnicode_AsUTF8String(str); str = PyUnicode_AsUTF8String(str);
return PyBytes_AsString(str); PyBytes_AsStringAndSize(str, &cstr, &len);
newstr = (char *) malloc(len+1);
memcpy(newstr, cstr, len+1);
Py_XDECREF(str);
return newstr;
#else #else
return PyString_AsString(str); return PyString_AsString(str);
#endif #endif
} }
#if PY_VERSION_HEX >= 0x03000000
# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
#else
# define SWIG_Python_str_DelForPy3(x)
#endif
SWIGINTERN PyObject* SWIGINTERN PyObject*
SWIG_Python_str_FromChar(const char *c) SWIG_Python_str_FromChar(const char *c)
{ {
@ -938,11 +956,13 @@ SWIG_Python_AddErrorMsg(const char* mesg)
if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
if (value) { if (value) {
char *tmp;
PyObject *old_str = PyObject_Str(value); PyObject *old_str = PyObject_Str(value);
PyErr_Clear(); PyErr_Clear();
Py_XINCREF(type); Py_XINCREF(type);
PyErr_Format(type, "%s %s", SWIG_Python_str_AsChar(old_str), mesg); PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(old_str); Py_DECREF(old_str);
Py_DECREF(value); Py_DECREF(value);
} else { } else {
@ -1453,9 +1473,7 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args)
#endif #endif
{ {
const char *name = SWIG_TypePrettyName(v->ty); const char *name = SWIG_TypePrettyName(v->ty);
PyObject *hex = SwigPyObject_hex(v); PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, v);
PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, hex);
Py_DECREF(hex);
if (v->next) { if (v->next) {
#ifdef METH_NOARGS #ifdef METH_NOARGS
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
@ -1477,13 +1495,16 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args)
SWIGRUNTIME int SWIGRUNTIME int
SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
{ {
char *str;
#ifdef METH_NOARGS #ifdef METH_NOARGS
PyObject *repr = SwigPyObject_repr(v); PyObject *repr = SwigPyObject_repr(v);
#else #else
PyObject *repr = SwigPyObject_repr(v, NULL); PyObject *repr = SwigPyObject_repr(v, NULL);
#endif #endif
if (repr) { if (repr) {
fputs(SWIG_Python_str_AsChar(repr), fp); str = SWIG_Python_str_AsChar(repr);
fputs(str, fp);
SWIG_Python_str_DelForPy3(str);
Py_DECREF(repr); Py_DECREF(repr);
return 0; return 0;
} else { } else {
@ -1507,7 +1528,7 @@ SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
return (i < j) ? -1 : ((i > j) ? 1 : 0); return (i < j) ? -1 : ((i > j) ? 1 : 0);
} }
/* Added for Python 3.x, whould it also useful for Python 2.x? */ /* Added for Python 3.x, would it also be useful for Python 2.x? */
SWIGRUNTIME PyObject* SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
{ {
@ -1555,7 +1576,7 @@ SwigPyObject_dealloc(PyObject *v)
/* destroy is always a VARARGS method */ /* destroy is always a VARARGS method */
PyObject *res; PyObject *res;
if (data->delargs) { if (data->delargs) {
/* we need to create a temporal object to carry the destroy operation */ /* we need to create a temporary object to carry the destroy operation */
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
res = SWIG_Python_CallFunctor(destroy, tmp); res = SWIG_Python_CallFunctor(destroy, tmp);
Py_DECREF(tmp); Py_DECREF(tmp);
@ -1730,7 +1751,11 @@ _PySwigObject_type(void) {
0, /*nb_coerce*/ 0, /*nb_coerce*/
#endif #endif
(unaryfunc)SwigPyObject_long, /*nb_int*/ (unaryfunc)SwigPyObject_long, /*nb_int*/
#if PY_VERSION_HEX < 0x03000000
(unaryfunc)SwigPyObject_long, /*nb_long*/ (unaryfunc)SwigPyObject_long, /*nb_long*/
#else
0, /*nb_reserved*/
#endif
(unaryfunc)0, /*nb_float*/ (unaryfunc)0, /*nb_float*/
#if PY_VERSION_HEX < 0x03000000 #if PY_VERSION_HEX < 0x03000000
(unaryfunc)SwigPyObject_oct, /*nb_oct*/ (unaryfunc)SwigPyObject_oct, /*nb_oct*/
@ -1752,7 +1777,7 @@ _PySwigObject_type(void) {
if (!type_init) { if (!type_init) {
const PyTypeObject tmp const PyTypeObject tmp
= { = {
/* PyOjbect header changed in Python 3 */ /* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(&PyType_Type, 0) PyVarObject_HEAD_INIT(&PyType_Type, 0)
#else #else
@ -1770,7 +1795,11 @@ _PySwigObject_type(void) {
(getattrfunc)0, /* tp_getattr */ (getattrfunc)0, /* tp_getattr */
#endif #endif
(setattrfunc)0, /* tp_setattr */ (setattrfunc)0, /* tp_setattr */
#if PY_VERSION_HEX >= 0x03000000
0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
#else
(cmpfunc)SwigPyObject_compare, /* tp_compare */ (cmpfunc)SwigPyObject_compare, /* tp_compare */
#endif
(reprfunc)SwigPyObject_repr, /* tp_repr */ (reprfunc)SwigPyObject_repr, /* tp_repr */
&SwigPyObject_as_number, /* tp_as_number */ &SwigPyObject_as_number, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */
@ -1817,7 +1846,7 @@ _PySwigObject_type(void) {
#endif #endif
}; };
swigpyobject_type = tmp; swigpyobject_type = tmp;
/* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */ /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
#if PY_VERSION_HEX < 0x03000000 #if PY_VERSION_HEX < 0x03000000
swigpyobject_type.ob_type = &PyType_Type; swigpyobject_type.ob_type = &PyType_Type;
#endif #endif
@ -1941,7 +1970,11 @@ _PySwigPacked_type(void) {
(printfunc)SwigPyPacked_print, /* tp_print */ (printfunc)SwigPyPacked_print, /* tp_print */
(getattrfunc)0, /* tp_getattr */ (getattrfunc)0, /* tp_getattr */
(setattrfunc)0, /* tp_setattr */ (setattrfunc)0, /* tp_setattr */
#if PY_VERSION_HEX>=0x03000000
0, /* tp_reserved in 3.0.1 */
#else
(cmpfunc)SwigPyPacked_compare, /* tp_compare */ (cmpfunc)SwigPyPacked_compare, /* tp_compare */
#endif
(reprfunc)SwigPyPacked_repr, /* tp_repr */ (reprfunc)SwigPyPacked_repr, /* tp_repr */
0, /* tp_as_number */ 0, /* tp_as_number */
0, /* tp_as_sequence */ 0, /* tp_as_sequence */
@ -2220,10 +2253,10 @@ SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
/* here we get the method pointer for callbacks */ /* here we get the method pointer for callbacks */
const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
if (desc) { if (desc)
desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
if (!desc) return SWIG_ERROR; if (!desc)
} return SWIG_ERROR;
if (ty) { if (ty) {
swig_cast_info *tc = SWIG_TypeCheck(desc,ty); swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
if (tc) { if (tc) {
@ -2261,7 +2294,7 @@ SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *t
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
/* /*
Create a new instance object, whitout calling __init__, and set the Create a new instance object, without calling __init__, and set the
'this' attribute. 'this' attribute.
*/ */
@ -2292,7 +2325,6 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
} else { } else {
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
Py_INCREF(data->newargs);
PyObject_SetAttr(inst, SWIG_This(), swig_this); PyObject_SetAttr(inst, SWIG_This(), swig_this);
Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
#else #else
@ -2540,14 +2572,16 @@ SWIG_Python_AddErrMesg(const char* mesg, int infront)
PyObject *traceback = 0; PyObject *traceback = 0;
PyErr_Fetch(&type, &value, &traceback); PyErr_Fetch(&type, &value, &traceback);
if (value) { if (value) {
char *tmp;
PyObject *old_str = PyObject_Str(value); PyObject *old_str = PyObject_Str(value);
Py_XINCREF(type); Py_XINCREF(type);
PyErr_Clear(); PyErr_Clear();
if (infront) { if (infront) {
PyErr_Format(type, "%s %s", mesg, SWIG_Python_str_AsChar(old_str)); PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
} else { } else {
PyErr_Format(type, "%s %s", SWIG_Python_str_AsChar(old_str), mesg); PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
} }
SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(old_str); Py_DECREF(old_str);
} }
return 1; return 1;
@ -2599,6 +2633,7 @@ SWIG_Python_TypeError(const char *type, PyObject *obj)
if (cstr) { if (cstr) {
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
type, otype, cstr); type, otype, cstr);
SWIG_Python_str_DelForPy3(cstr);
} else { } else {
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
type, otype); type, otype);
@ -2620,10 +2655,12 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
void *result; void *result;
if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
PyErr_Clear(); PyErr_Clear();
if (flags & SWIG_POINTER_EXCEPTION) { #if SWIG_POINTER_EXCEPTION
if (flags) {
SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
SWIG_Python_ArgFail(argnum); SWIG_Python_ArgFail(argnum);
} }
#endif
} }
return result; return result;
} }
@ -2692,7 +2729,7 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
/* /*
Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
'Swig' namespace. This could be usefull for multi-modules projects. 'Swig' namespace. This could be useful for multi-modules projects.
*/ */
#ifdef SWIG_DIRECTOR_STATIC #ifdef SWIG_DIRECTOR_STATIC
/* Force anonymous (static) namespace */ /* Force anonymous (static) namespace */
@ -3121,25 +3158,27 @@ namespace Swig {
/* -------- TYPES TABLE (BEGIN) -------- */ /* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_RegistrationEvent swig_types[0] #define SWIGTYPE_p_PublicationEvent swig_types[0]
#define SWIGTYPE_p_RegistrationSession swig_types[1] #define SWIGTYPE_p_PublicationSession swig_types[1]
#define SWIGTYPE_p_SafeObject swig_types[2] #define SWIGTYPE_p_RegistrationEvent swig_types[2]
#define SWIGTYPE_p_SipCallback swig_types[3] #define SWIGTYPE_p_RegistrationSession swig_types[3]
#define SWIGTYPE_p_SipDebugCallback swig_types[4] #define SWIGTYPE_p_SafeObject swig_types[4]
#define SWIGTYPE_p_SipEvent swig_types[5] #define SWIGTYPE_p_SipCallback swig_types[5]
#define SWIGTYPE_p_SipMessage swig_types[6] #define SWIGTYPE_p_SipDebugCallback swig_types[6]
#define SWIGTYPE_p_SipSession swig_types[7] #define SWIGTYPE_p_SipEvent swig_types[7]
#define SWIGTYPE_p_SipStack swig_types[8] #define SWIGTYPE_p_SipMessage swig_types[8]
#define SWIGTYPE_p_SipUri swig_types[9] #define SWIGTYPE_p_SipSession swig_types[9]
#define SWIGTYPE_p_SubscriptionEvent swig_types[10] #define SWIGTYPE_p_SipStack swig_types[10]
#define SWIGTYPE_p_SubscriptionSession swig_types[11] #define SWIGTYPE_p_SipUri swig_types[11]
#define SWIGTYPE_p_char swig_types[12] #define SWIGTYPE_p_SubscriptionEvent swig_types[12]
#define SWIGTYPE_p_tsip_event_type_e swig_types[13] #define SWIGTYPE_p_SubscriptionSession swig_types[13]
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[14] #define SWIGTYPE_p_char swig_types[14]
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[15] #define SWIGTYPE_p_tsip_event_type_e swig_types[15]
#define SWIGTYPE_p_void swig_types[16] #define SWIGTYPE_p_tsip_publish_event_type_e swig_types[16]
static swig_type_info *swig_types[18]; #define SWIGTYPE_p_tsip_register_event_type_e swig_types[17]
static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0}; #define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[18]
static swig_type_info *swig_types[20];
static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
@ -3163,7 +3202,7 @@ static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
#endif #endif
#define SWIG_name "_tinyWRAP" #define SWIG_name "_tinyWRAP"
#define SWIGVERSION 0x010339 #define SWIGVERSION 0x010340
#define SWIG_VERSION SWIGVERSION #define SWIG_VERSION SWIGVERSION
@ -3240,6 +3279,8 @@ namespace swig {
#include "SipMessage.h" #include "SipMessage.h"
#include "SipEvent.h" #include "SipEvent.h"
#include "SipSession.h" #include "SipSession.h"
#include "PublicationEvent.h"
#include "PublicationSession.h"
#include "RegistrationEvent.h" #include "RegistrationEvent.h"
#include "RegistrationSession.h" #include "RegistrationSession.h"
#include "SubscriptionEvent.h" #include "SubscriptionEvent.h"
@ -3274,8 +3315,16 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
{ {
char *cstr; Py_ssize_t len; char *cstr; Py_ssize_t len;
#if PY_VERSION_HEX>=0x03000000 #if PY_VERSION_HEX>=0x03000000
if (!alloc && cptr) {
/* We can't allow converting without allocation, since the internal
representation of string in Python 3 is UCS-2/UCS-4 but we require
a UTF-8 representation.
TODO(bhy) More detailed explanation */
return SWIG_RuntimeError;
}
obj = PyUnicode_AsUTF8String(obj); obj = PyUnicode_AsUTF8String(obj);
PyBytes_AsStringAndSize(obj, &cstr, &len); PyBytes_AsStringAndSize(obj, &cstr, &len);
if(alloc) *alloc = SWIG_NEWOBJ;
#else #else
PyString_AsStringAndSize(obj, &cstr, &len); PyString_AsStringAndSize(obj, &cstr, &len);
#endif #endif
@ -3304,10 +3353,16 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
*alloc = SWIG_OLDOBJ; *alloc = SWIG_OLDOBJ;
} }
} else { } else {
#if PY_VERSION_HEX>=0x03000000
assert(0); /* Should never reach here in Python 3 */
#endif
*cptr = SWIG_Python_str_AsChar(obj); *cptr = SWIG_Python_str_AsChar(obj);
} }
} }
if (psize) *psize = len + 1; if (psize) *psize = len + 1;
#if PY_VERSION_HEX>=0x03000000
Py_XDECREF(obj);
#endif
return SWIG_OK; return SWIG_OK;
} else { } else {
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
@ -3675,6 +3730,37 @@ int SwigDirector_SipCallback::OnSubscriptionChanged(SubscriptionEvent const *e)
} }
int SwigDirector_SipCallback::OnPublicationChanged(PublicationEvent const *e) {
int c_result;
swig::SwigVar_PyObject obj0;
obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_PublicationEvent, 0 );
if (!swig_get_self()) {
Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__.");
}
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
const size_t swig_method_index = 2;
const char * const swig_method_name = "OnPublicationChanged";
PyObject* method = swig_get_method(swig_method_index, swig_method_name);
swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0);
#else
swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnPublicationChanged", (char *)"(O)" ,(PyObject *)obj0);
#endif
if (result == NULL) {
PyObject *error = PyErr_Occurred();
if (error != NULL) {
Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnPublicationChanged'");
}
}
int swig_val;
int swig_res = SWIG_AsVal_int(result, &swig_val);
if (!SWIG_IsOK(swig_res)) {
Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'");
}
c_result = static_cast< int >(swig_val);
return (int) c_result;
}
SwigDirector_SipDebugCallback::SwigDirector_SipDebugCallback(PyObject *self): SipDebugCallback(), Swig::Director(self) { SwigDirector_SipDebugCallback::SwigDirector_SipDebugCallback(PyObject *self): SipDebugCallback(), Swig::Director(self) {
SWIG_DIRECTOR_RGTR((SipDebugCallback *)this, this); SWIG_DIRECTOR_RGTR((SipDebugCallback *)this, this);
} }
@ -3983,28 +4069,6 @@ fail:
} }
SWIGINTERN PyObject *_wrap_SipMessage_getSipContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
SipMessage *arg1 = (SipMessage *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
void *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:SipMessage_getSipContent",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipContent" "', argument " "1"" of type '" "SipMessage const *""'");
}
arg1 = reinterpret_cast< SipMessage * >(argp1);
result = (void *)((SipMessage const *)arg1)->getSipContent();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SipMessage_getSipHeaderValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { SWIGINTERN PyObject *_wrap_SipMessage_getSipHeaderValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0; PyObject *resultobj = 0;
SipMessage *arg1 = (SipMessage *) 0 ; SipMessage *arg1 = (SipMessage *) 0 ;
@ -4826,6 +4890,201 @@ SWIGINTERN PyObject *SipSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyO
return SWIG_Py_Void(); return SWIG_Py_Void();
} }
SWIGINTERN PyObject *_wrap_new_PublicationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PublicationEvent *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)":new_PublicationEvent")) SWIG_fail;
result = (PublicationEvent *)new PublicationEvent();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationEvent, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_PublicationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:delete_PublicationEvent",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationEvent, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PublicationEvent" "', argument " "1"" of type '" "PublicationEvent *""'");
}
arg1 = reinterpret_cast< PublicationEvent * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PublicationEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
tsip_publish_event_type_t result;
if (!PyArg_ParseTuple(args,(char *)"O:PublicationEvent_getType",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_getType" "', argument " "1"" of type '" "PublicationEvent const *""'");
}
arg1 = reinterpret_cast< PublicationEvent * >(argp1);
result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PublicationEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PublicationEvent *arg1 = (PublicationEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
PublicationSession *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:PublicationEvent_getSession",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_getSession" "', argument " "1"" of type '" "PublicationEvent const *""'");
}
arg1 = reinterpret_cast< PublicationEvent * >(argp1);
result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *PublicationEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_PublicationEvent, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_new_PublicationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
SipStack *arg1 = (SipStack *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
PublicationSession *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:new_PublicationSession",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PublicationSession" "', argument " "1"" of type '" "SipStack *""'");
}
arg1 = reinterpret_cast< SipStack * >(argp1);
result = (PublicationSession *)new PublicationSession(arg1);
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_PublicationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PublicationSession *arg1 = (PublicationSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:delete_PublicationSession",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationSession, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PublicationSession" "', argument " "1"" of type '" "PublicationSession *""'");
}
arg1 = reinterpret_cast< PublicationSession * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PublicationSession_Publish(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PublicationSession *arg1 = (PublicationSession *) 0 ;
void *arg2 = (void *) 0 ;
unsigned int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
unsigned int val3 ;
int ecode3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
bool result;
if (!PyArg_ParseTuple(args,(char *)"OOO:PublicationSession_Publish",&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_Publish" "', argument " "1"" of type '" "PublicationSession *""'");
}
arg1 = reinterpret_cast< PublicationSession * >(argp1);
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PublicationSession_Publish" "', argument " "2"" of type '" "void const *""'");
}
ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PublicationSession_Publish" "', argument " "3"" of type '" "unsigned int""'");
}
arg3 = static_cast< unsigned int >(val3);
result = (bool)(arg1)->Publish((void const *)arg2,arg3);
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_PublicationSession_UnPublish(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PublicationSession *arg1 = (PublicationSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
bool result;
if (!PyArg_ParseTuple(args,(char *)"O:PublicationSession_UnPublish",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_UnPublish" "', argument " "1"" of type '" "PublicationSession *""'");
}
arg1 = reinterpret_cast< PublicationSession * >(argp1);
result = (bool)(arg1)->UnPublish();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *PublicationSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_PublicationSession, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_new_RegistrationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { SWIGINTERN PyObject *_wrap_new_RegistrationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0; PyObject *resultobj = 0;
RegistrationEvent *result = 0 ; RegistrationEvent *result = 0 ;
@ -5313,6 +5572,49 @@ fail:
} }
SWIGINTERN PyObject *_wrap_SipCallback_OnPublicationChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
SipCallback *arg1 = (SipCallback *) 0 ;
PublicationEvent *arg2 = (PublicationEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
int result;
if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnPublicationChanged",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnPublicationChanged" "', argument " "1"" of type '" "SipCallback *""'");
}
arg1 = reinterpret_cast< SipCallback * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_PublicationEvent, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnPublicationChanged" "', argument " "2"" of type '" "PublicationEvent const *""'");
}
arg2 = reinterpret_cast< PublicationEvent * >(argp2);
director = SWIG_DIRECTOR_CAST(arg1);
upcall = (director && (director->swig_get_self()==obj0));
try {
if (upcall) {
result = (int)(arg1)->SipCallback::OnPublicationChanged((PublicationEvent const *)arg2);
} else {
result = (int)(arg1)->OnPublicationChanged((PublicationEvent const *)arg2);
}
} catch (Swig::DirectorException&) {
SWIG_fail;
}
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_disown_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { SWIGINTERN PyObject *_wrap_disown_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0; PyObject *resultobj = 0;
SipCallback *arg1 = (SipCallback *) 0 ; SipCallback *arg1 = (SipCallback *) 0 ;
@ -5327,7 +5629,7 @@ SWIGINTERN PyObject *_wrap_disown_SipCallback(PyObject *SWIGUNUSEDPARM(self), Py
} }
arg1 = reinterpret_cast< SipCallback * >(argp1); arg1 = reinterpret_cast< SipCallback * >(argp1);
{ {
Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
if (director) director->swig_disown(); if (director) director->swig_disown();
} }
@ -5586,7 +5888,7 @@ SWIGINTERN PyObject *_wrap_disown_SipDebugCallback(PyObject *SWIGUNUSEDPARM(self
} }
arg1 = reinterpret_cast< SipDebugCallback * >(argp1); arg1 = reinterpret_cast< SipDebugCallback * >(argp1);
{ {
Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
if (director) director->swig_disown(); if (director) director->swig_disown();
} }
@ -6293,7 +6595,6 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"SipUri_swigregister", SipUri_swigregister, METH_VARARGS, NULL}, { (char *)"SipUri_swigregister", SipUri_swigregister, METH_VARARGS, NULL},
{ (char *)"new_SipMessage", _wrap_new_SipMessage, METH_VARARGS, NULL}, { (char *)"new_SipMessage", _wrap_new_SipMessage, METH_VARARGS, NULL},
{ (char *)"delete_SipMessage", _wrap_delete_SipMessage, METH_VARARGS, NULL}, { (char *)"delete_SipMessage", _wrap_delete_SipMessage, METH_VARARGS, NULL},
{ (char *)"SipMessage_getSipContent", _wrap_SipMessage_getSipContent, METH_VARARGS, NULL},
{ (char *)"SipMessage_getSipHeaderValue", _wrap_SipMessage_getSipHeaderValue, METH_VARARGS, NULL}, { (char *)"SipMessage_getSipHeaderValue", _wrap_SipMessage_getSipHeaderValue, METH_VARARGS, NULL},
{ (char *)"SipMessage_getSipHeaderParamValue", _wrap_SipMessage_getSipHeaderParamValue, METH_VARARGS, NULL}, { (char *)"SipMessage_getSipHeaderParamValue", _wrap_SipMessage_getSipHeaderParamValue, METH_VARARGS, NULL},
{ (char *)"SipMessage_swigregister", SipMessage_swigregister, METH_VARARGS, NULL}, { (char *)"SipMessage_swigregister", SipMessage_swigregister, METH_VARARGS, NULL},
@ -6314,6 +6615,16 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"SipSession_setFromUri", _wrap_SipSession_setFromUri, METH_VARARGS, NULL}, { (char *)"SipSession_setFromUri", _wrap_SipSession_setFromUri, METH_VARARGS, NULL},
{ (char *)"SipSession_setToUri", _wrap_SipSession_setToUri, METH_VARARGS, NULL}, { (char *)"SipSession_setToUri", _wrap_SipSession_setToUri, METH_VARARGS, NULL},
{ (char *)"SipSession_swigregister", SipSession_swigregister, METH_VARARGS, NULL}, { (char *)"SipSession_swigregister", SipSession_swigregister, METH_VARARGS, NULL},
{ (char *)"new_PublicationEvent", _wrap_new_PublicationEvent, METH_VARARGS, NULL},
{ (char *)"delete_PublicationEvent", _wrap_delete_PublicationEvent, METH_VARARGS, NULL},
{ (char *)"PublicationEvent_getType", _wrap_PublicationEvent_getType, METH_VARARGS, NULL},
{ (char *)"PublicationEvent_getSession", _wrap_PublicationEvent_getSession, METH_VARARGS, NULL},
{ (char *)"PublicationEvent_swigregister", PublicationEvent_swigregister, METH_VARARGS, NULL},
{ (char *)"new_PublicationSession", _wrap_new_PublicationSession, METH_VARARGS, NULL},
{ (char *)"delete_PublicationSession", _wrap_delete_PublicationSession, METH_VARARGS, NULL},
{ (char *)"PublicationSession_Publish", _wrap_PublicationSession_Publish, METH_VARARGS, NULL},
{ (char *)"PublicationSession_UnPublish", _wrap_PublicationSession_UnPublish, METH_VARARGS, NULL},
{ (char *)"PublicationSession_swigregister", PublicationSession_swigregister, METH_VARARGS, NULL},
{ (char *)"new_RegistrationEvent", _wrap_new_RegistrationEvent, METH_VARARGS, NULL}, { (char *)"new_RegistrationEvent", _wrap_new_RegistrationEvent, METH_VARARGS, NULL},
{ (char *)"delete_RegistrationEvent", _wrap_delete_RegistrationEvent, METH_VARARGS, NULL}, { (char *)"delete_RegistrationEvent", _wrap_delete_RegistrationEvent, METH_VARARGS, NULL},
{ (char *)"RegistrationEvent_getType", _wrap_RegistrationEvent_getType, METH_VARARGS, NULL}, { (char *)"RegistrationEvent_getType", _wrap_RegistrationEvent_getType, METH_VARARGS, NULL},
@ -6338,6 +6649,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"delete_SipCallback", _wrap_delete_SipCallback, METH_VARARGS, NULL}, { (char *)"delete_SipCallback", _wrap_delete_SipCallback, METH_VARARGS, NULL},
{ (char *)"SipCallback_OnRegistrationChanged", _wrap_SipCallback_OnRegistrationChanged, METH_VARARGS, NULL}, { (char *)"SipCallback_OnRegistrationChanged", _wrap_SipCallback_OnRegistrationChanged, METH_VARARGS, NULL},
{ (char *)"SipCallback_OnSubscriptionChanged", _wrap_SipCallback_OnSubscriptionChanged, METH_VARARGS, NULL}, { (char *)"SipCallback_OnSubscriptionChanged", _wrap_SipCallback_OnSubscriptionChanged, METH_VARARGS, NULL},
{ (char *)"SipCallback_OnPublicationChanged", _wrap_SipCallback_OnPublicationChanged, METH_VARARGS, NULL},
{ (char *)"disown_SipCallback", _wrap_disown_SipCallback, METH_VARARGS, NULL}, { (char *)"disown_SipCallback", _wrap_disown_SipCallback, METH_VARARGS, NULL},
{ (char *)"SipCallback_swigregister", SipCallback_swigregister, METH_VARARGS, NULL}, { (char *)"SipCallback_swigregister", SipCallback_swigregister, METH_VARARGS, NULL},
{ (char *)"new_SipDebugCallback", _wrap_new_SipDebugCallback, METH_VARARGS, NULL}, { (char *)"new_SipDebugCallback", _wrap_new_SipDebugCallback, METH_VARARGS, NULL},
@ -6377,6 +6689,9 @@ static PyMethodDef SwigMethods[] = {
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
static void *_p_PublicationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipSession *) ((PublicationSession *) x));
}
static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipSession *) ((RegistrationSession *) x)); return (void *)((SipSession *) ((RegistrationSession *) x));
} }
@ -6386,12 +6701,17 @@ static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(
static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SafeObject *) ((SipStack *) x)); return (void *)((SafeObject *) ((SipStack *) x));
} }
static void *_p_PublicationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((PublicationEvent *) x));
}
static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((RegistrationEvent *) x)); return (void *)((SipEvent *) ((RegistrationEvent *) x));
} }
static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((SubscriptionEvent *) x)); return (void *)((SipEvent *) ((SubscriptionEvent *) x));
} }
static swig_type_info _swigt__p_PublicationEvent = {"_p_PublicationEvent", "PublicationEvent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_PublicationSession = {"_p_PublicationSession", "PublicationSession *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)0, 0};
@ -6406,11 +6726,13 @@ static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "Su
static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_publish_event_type_e = {"_p_tsip_publish_event_type_e", "enum tsip_publish_event_type_e *|tsip_publish_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
static swig_type_info *swig_type_initial[] = { static swig_type_info *swig_type_initial[] = {
&_swigt__p_PublicationEvent,
&_swigt__p_PublicationSession,
&_swigt__p_RegistrationEvent, &_swigt__p_RegistrationEvent,
&_swigt__p_RegistrationSession, &_swigt__p_RegistrationSession,
&_swigt__p_SafeObject, &_swigt__p_SafeObject,
@ -6425,30 +6747,34 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_SubscriptionSession, &_swigt__p_SubscriptionSession,
&_swigt__p_char, &_swigt__p_char,
&_swigt__p_tsip_event_type_e, &_swigt__p_tsip_event_type_e,
&_swigt__p_tsip_publish_event_type_e,
&_swigt__p_tsip_register_event_type_e, &_swigt__p_tsip_register_event_type_e,
&_swigt__p_tsip_subscribe_event_type_e, &_swigt__p_tsip_subscribe_event_type_e,
&_swigt__p_void,
}; };
static swig_cast_info _swigc__p_PublicationEvent[] = { {&_swigt__p_PublicationEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_PublicationSession[] = { {&_swigt__p_PublicationSession, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipDebugCallback[] = { {&_swigt__p_SipDebugCallback, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipDebugCallback[] = { {&_swigt__p_SipDebugCallback, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_PublicationEvent, _p_PublicationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipMessage[] = { {&_swigt__p_SipMessage, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipMessage[] = { {&_swigt__p_SipMessage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_PublicationSession, _p_PublicationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_publish_event_type_e[] = { {&_swigt__p_tsip_publish_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info *swig_cast_initial[] = { static swig_cast_info *swig_cast_initial[] = {
_swigc__p_PublicationEvent,
_swigc__p_PublicationSession,
_swigc__p_RegistrationEvent, _swigc__p_RegistrationEvent,
_swigc__p_RegistrationSession, _swigc__p_RegistrationSession,
_swigc__p_SafeObject, _swigc__p_SafeObject,
@ -6463,9 +6789,9 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_SubscriptionSession, _swigc__p_SubscriptionSession,
_swigc__p_char, _swigc__p_char,
_swigc__p_tsip_event_type_e, _swigc__p_tsip_event_type_e,
_swigc__p_tsip_publish_event_type_e,
_swigc__p_tsip_register_event_type_e, _swigc__p_tsip_register_event_type_e,
_swigc__p_tsip_subscribe_event_type_e, _swigc__p_tsip_subscribe_event_type_e,
_swigc__p_void,
}; };
@ -6790,9 +7116,11 @@ extern "C" {
SWIGINTERN int SWIGINTERN int
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
char *tmp;
PyObject *str = swig_varlink_str(v); PyObject *str = swig_varlink_str(v);
fprintf(fp,"Swig global variables "); fprintf(fp,"Swig global variables ");
fprintf(fp,"%s\n", SWIG_Python_str_AsChar(str)); fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
SWIG_Python_str_DelForPy3(tmp);
Py_DECREF(str); Py_DECREF(str);
return 0; return 0;
} }
@ -6892,7 +7220,7 @@ extern "C" {
#endif #endif
}; };
varlink_type = tmp; varlink_type = tmp;
/* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */ /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
#if PY_VERSION_HEX < 0x03000000 #if PY_VERSION_HEX < 0x03000000
varlink_type.ob_type = &PyType_Type; varlink_type.ob_type = &PyType_Type;
#endif #endif
@ -7029,9 +7357,6 @@ void
#endif #endif
SWIG_init(void) { SWIG_init(void) {
PyObject *m, *d; PyObject *m, *d;
/* Fix SwigMethods to carry the callback ptrs when needed */
SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
static struct PyModuleDef SWIG_module = { static struct PyModuleDef SWIG_module = {
PyModuleDef_HEAD_INIT, PyModuleDef_HEAD_INIT,
@ -7044,7 +7369,12 @@ SWIG_init(void) {
NULL, NULL,
NULL NULL
}; };
#endif
/* Fix SwigMethods to carry the callback ptrs when needed */
SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
#if PY_VERSION_HEX >= 0x03000000
m = PyModule_Create(&SWIG_module); m = PyModule_Create(&SWIG_module);
#else #else
m = Py_InitModule((char *) SWIG_name, SwigMethods); m = Py_InitModule((char *) SWIG_name, SwigMethods);
@ -7082,6 +7412,14 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, "tsip_ai_notify",SWIG_From_int(static_cast< int >(tsip_ai_notify))); SWIG_Python_SetConstant(d, "tsip_ai_notify",SWIG_From_int(static_cast< int >(tsip_ai_notify)));
SWIG_Python_SetConstant(d, "tsip_o_notify",SWIG_From_int(static_cast< int >(tsip_o_notify))); SWIG_Python_SetConstant(d, "tsip_o_notify",SWIG_From_int(static_cast< int >(tsip_o_notify)));
SWIG_Python_SetConstant(d, "tsip_ao_notify",SWIG_From_int(static_cast< int >(tsip_ao_notify))); SWIG_Python_SetConstant(d, "tsip_ao_notify",SWIG_From_int(static_cast< int >(tsip_ao_notify)));
SWIG_Python_SetConstant(d, "tsip_i_publish",SWIG_From_int(static_cast< int >(tsip_i_publish)));
SWIG_Python_SetConstant(d, "tsip_ai_publish",SWIG_From_int(static_cast< int >(tsip_ai_publish)));
SWIG_Python_SetConstant(d, "tsip_o_publish",SWIG_From_int(static_cast< int >(tsip_o_publish)));
SWIG_Python_SetConstant(d, "tsip_ao_publish",SWIG_From_int(static_cast< int >(tsip_ao_publish)));
SWIG_Python_SetConstant(d, "tsip_i_unpublish",SWIG_From_int(static_cast< int >(tsip_i_unpublish)));
SWIG_Python_SetConstant(d, "tsip_ai_unpublish",SWIG_From_int(static_cast< int >(tsip_ai_unpublish)));
SWIG_Python_SetConstant(d, "tsip_o_unpublish",SWIG_From_int(static_cast< int >(tsip_o_unpublish)));
SWIG_Python_SetConstant(d, "tsip_ao_unpublish",SWIG_From_int(static_cast< int >(tsip_ao_unpublish)));
#if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03000000
return m; return m;
#else #else

View File

@ -1,6 +1,6 @@
/* ---------------------------------------------------------------------------- /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org). * This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39 * Version 1.3.40
* *
* This file is not intended to be easily readable and contains a number of * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make * coding conventions designed to improve portability and efficiency. Do not make
@ -22,6 +22,7 @@ public:
virtual ~SwigDirector_SipCallback(); virtual ~SwigDirector_SipCallback();
virtual int OnRegistrationChanged(RegistrationEvent const *e); virtual int OnRegistrationChanged(RegistrationEvent const *e);
virtual int OnSubscriptionChanged(SubscriptionEvent const *e); virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
virtual int OnPublicationChanged(PublicationEvent const *e);
/* Internal Director utilities */ /* Internal Director utilities */
@ -55,7 +56,7 @@ private:
return method; return method;
} }
private: private:
mutable swig::SwigVar_PyObject vtable[2]; mutable swig::SwigVar_PyObject vtable[3];
#endif #endif
}; };

View File

@ -31,6 +31,8 @@ namespace test
this.buttonRegister = new System.Windows.Forms.Button(); this.buttonRegister = new System.Windows.Forms.Button();
this.buttonUnRegister = new System.Windows.Forms.Button(); this.buttonUnRegister = new System.Windows.Forms.Button();
this.textBoxDebug = new System.Windows.Forms.TextBox(); this.textBoxDebug = new System.Windows.Forms.TextBox();
this.buttonPublish = new System.Windows.Forms.Button();
this.buttonUnPublish = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonRegister // buttonRegister
@ -61,11 +63,33 @@ namespace test
this.textBoxDebug.Size = new System.Drawing.Size(262, 70); this.textBoxDebug.Size = new System.Drawing.Size(262, 70);
this.textBoxDebug.TabIndex = 2; this.textBoxDebug.TabIndex = 2;
// //
// buttonPublish
//
this.buttonPublish.Location = new System.Drawing.Point(12, 234);
this.buttonPublish.Name = "buttonPublish";
this.buttonPublish.Size = new System.Drawing.Size(75, 23);
this.buttonPublish.TabIndex = 3;
this.buttonPublish.Text = "Publish";
this.buttonPublish.UseVisualStyleBackColor = true;
this.buttonPublish.Click += new System.EventHandler(this.buttonPublish_Click);
//
// buttonUnPublish
//
this.buttonUnPublish.Location = new System.Drawing.Point(199, 235);
this.buttonUnPublish.Name = "buttonUnPublish";
this.buttonUnPublish.Size = new System.Drawing.Size(75, 23);
this.buttonUnPublish.TabIndex = 4;
this.buttonUnPublish.Text = "UnPublish";
this.buttonUnPublish.UseVisualStyleBackColor = true;
this.buttonUnPublish.Click += new System.EventHandler(this.buttonUnPublish_Click);
//
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(286, 374); this.ClientSize = new System.Drawing.Size(286, 374);
this.Controls.Add(this.buttonUnPublish);
this.Controls.Add(this.buttonPublish);
this.Controls.Add(this.textBoxDebug); this.Controls.Add(this.textBoxDebug);
this.Controls.Add(this.buttonUnRegister); this.Controls.Add(this.buttonUnRegister);
this.Controls.Add(this.buttonRegister); this.Controls.Add(this.buttonRegister);
@ -81,6 +105,8 @@ namespace test
private System.Windows.Forms.Button buttonRegister; private System.Windows.Forms.Button buttonRegister;
private System.Windows.Forms.Button buttonUnRegister; private System.Windows.Forms.Button buttonUnRegister;
private System.Windows.Forms.TextBox textBoxDebug; private System.Windows.Forms.TextBox textBoxDebug;
private System.Windows.Forms.Button buttonPublish;
private System.Windows.Forms.Button buttonUnPublish;
} }
} }

View File

@ -10,19 +10,61 @@ namespace test
{ {
public partial class Form1 : Form public partial class Form1 : Form
{ {
const String REALM = "ims.inexbee.com"; /*const String REALM = "ims.inexbee.com";
const String USER = "mamadou"; const String USER = "mamadou";
const String PASSWORD = "mamadou"; const String PASSWORD = "mamadou";
const String PROXY_CSCF_IP = "192.168.16.225"; const String PROXY_CSCF_IP = "192.168.16.225";
const uint PROXY_CSCF_PORT = 4060; const uint PROXY_CSCF_PORT = 4060;*/
const String REALM = "micromethod.com";
const String USER = "mamadou";
const String PASSWORD = "mamadou";
const String PROXY_CSCF_IP = "192.168.16.104";
const uint PROXY_CSCF_PORT = 5060;
RegistrationSession regSession = null; RegistrationSession regSession = null;
PublicationSession pubSession = null;
MyCallback callback = null; MyCallback callback = null;
SipStack stack = null; SipStack stack = null;
public delegate void PrintDebug(String text); public delegate void PrintDebug(String text);
public PrintDebug mydel; public PrintDebug mydel;
const String PUBLISH_PAYLOAD = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<presence xmlns:cp=\"urn:ietf:params:xml:ns:pidf:cipid\" xmlns:caps=\"urn:ietf:params:xml:ns:pidf:caps\" xmlns:rpid=\"urn:ietf:params:xml:ns:pidf:rpid\" xmlns:pdm=\"urn:ietf:params:xml:ns:pidf:data-model\" xmlns:p=\"urn:ietf:params:xml:ns:pidf-diff\" xmlns:op=\"urn:oma:xml:prs:pidf:oma-pres\" entity=\"sip:bob@ims.inexbee.com\" xmlns=\"urn:ietf:params:xml:ns:pidf\">" +
"<pdm:person id=\"RPVRYNJH\">" +
"<op:overriding-willingness>" +
"<op:basic>open</op:basic>" +
"</op:overriding-willingness>" +
"<rpid:activities>" +
"<rpid:busy />" +
"</rpid:activities>" +
"<rpid:mood>" +
"<rpid:guilty />" +
"</rpid:mood>" +
"<cp:homepage>http://www.mercuro.net</cp:homepage>" +
"<pdm:note>Come share with me RCS Experience</pdm:note>" +
"</pdm:person>" +
"<pdm:device id=\"d0001\">" +
"<status>" +
"<basic>open</basic>" +
"</status>" +
"<caps:devcaps>" +
"<caps:mobility>" +
"<caps:supported>" +
"<caps:fixed />" +
"</caps:supported>" +
"</caps:mobility>" +
"</caps:devcaps>" +
"<op:network-availability>" +
"<op:network id=\"IMS\">" +
"<op:active />" +
"</op:network>" +
"</op:network-availability>" +
"<pdm:deviceID>urn:uuid:3ca50bcb-7a67-44f1-afd0-994a55f930f4</pdm:deviceID>" +
"</pdm:device>" +
"</presence>";
public Form1() public Form1()
{ {
InitializeComponent(); InitializeComponent();
@ -35,11 +77,7 @@ namespace test
callback = new MyCallback(this); callback = new MyCallback(this);
/* Create and configure the IMS/LTE stack */ /* Create and configure the IMS/LTE stack */
// stack = new SipStack(callback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM)); // stack = new SipStack(callback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM));
stack = new SipStack(callback, "sip:dd", "aaaa", "sip:444@example.com"); stack = new SipStack(callback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM));
success = stack.setRealm(String.Format("sip:{0}", REALM));
success = stack.setIMPI(String.Format("{0}@{1}", USER, REALM));
success = stack.setIMPU(String.Format("sip:{0}@{1}", USER, REALM));
if (!stack.isValid()) if (!stack.isValid())
{ {
@ -55,7 +93,7 @@ namespace test
/* set password */ /* set password */
success = stack.setPassword(PASSWORD); success = stack.setPassword(PASSWORD);
/* Sets Proxy-CSCF */ /* Sets Proxy-CSCF */
success = stack.setProxyCSCF(PROXY_CSCF_IP, PROXY_CSCF_PORT, "tcp", "ipv4"); success = stack.setProxyCSCF(PROXY_CSCF_IP, PROXY_CSCF_PORT, "udp", "ipv4");
/* Starts the stack */ /* Starts the stack */
success = stack.start(); success = stack.start();
} }
@ -81,6 +119,28 @@ namespace test
} }
} }
private void buttonPublish_Click(object sender, EventArgs e)
{
if (this.pubSession == null)
{
this.pubSession = new PublicationSession(stack);
this.pubSession.addHeader("Content-Type", "application/pidf+xml");
this.pubSession.addHeader("Event", "presence");
this.regSession.setExpires(30);
byte[] payload = Encoding.UTF8.GetBytes(PUBLISH_PAYLOAD);
this.pubSession.Publish(payload, (uint)payload.Length);
}
}
private void buttonUnPublish_Click(object sender, EventArgs e)
{
if (this.pubSession != null)
{
this.pubSession.UnPublish();
}
}
void PrintDebugMethod(String text) void PrintDebugMethod(String text)
{ {
this.textBoxDebug.Text = text; this.textBoxDebug.Text = text;
@ -91,8 +151,6 @@ namespace test
public class MyCallback : SipCallback public class MyCallback : SipCallback
{ {
Form1 form; Form1 form;
@ -133,5 +191,31 @@ namespace test
return 0; return 0;
} }
public override int OnPublicationChanged(PublicationEvent e)
{
short code = e.getCode();
tsip_publish_event_type_t type = e.getType();
String text;
PublicationSession session = e.getSession();
switch (type){
default:
break;
}
text = String.Format("OnPublicationChanged() ==> {0}:{1}", code, e.getPhrase());
if (this.form.InvokeRequired)
{
this.form.Invoke(this.form.mydel, new object[] { text });
}
return 0;
} }
} }
}

View File

@ -36,6 +36,12 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\..\..\csharp\PublicationEvent.cs">
<Link>PublicationEvent.cs</Link>
</Compile>
<Compile Include="..\..\..\csharp\PublicationSession.cs">
<Link>PublicationSession.cs</Link>
</Compile>
<Compile Include="..\..\..\csharp\RegistrationEvent.cs"> <Compile Include="..\..\..\csharp\RegistrationEvent.cs">
<Link>RegistrationEvent.cs</Link> <Link>RegistrationEvent.cs</Link>
</Compile> </Compile>
@ -54,6 +60,9 @@
<Compile Include="..\..\..\csharp\SipEvent.cs"> <Compile Include="..\..\..\csharp\SipEvent.cs">
<Link>SipEvent.cs</Link> <Link>SipEvent.cs</Link>
</Compile> </Compile>
<Compile Include="..\..\..\csharp\SipMessage.cs">
<Link>SipMessage.cs</Link>
</Compile>
<Compile Include="..\..\..\csharp\SipSession.cs"> <Compile Include="..\..\..\csharp\SipSession.cs">
<Link>SipSession.cs</Link> <Link>SipSession.cs</Link>
</Compile> </Compile>
@ -78,6 +87,9 @@
<Compile Include="..\..\..\csharp\tsip_event_type_t.cs"> <Compile Include="..\..\..\csharp\tsip_event_type_t.cs">
<Link>tsip_event_type_t.cs</Link> <Link>tsip_event_type_t.cs</Link>
</Compile> </Compile>
<Compile Include="..\..\..\csharp\tsip_publish_event_type_t.cs">
<Link>tsip_publish_event_type_t.cs</Link>
</Compile>
<Compile Include="..\..\..\csharp\tsip_register_event_type_t.cs"> <Compile Include="..\..\..\csharp\tsip_register_event_type_t.cs">
<Link>tsip_register_event_type_t.cs</Link> <Link>tsip_register_event_type_t.cs</Link>
</Compile> </Compile>

View File

@ -182,6 +182,14 @@
RelativePath="..\..\_common\MessagingEvent.cxx" RelativePath="..\..\_common\MessagingEvent.cxx"
> >
</File> </File>
<File
RelativePath="..\..\_common\PublicationEvent.cxx"
>
</File>
<File
RelativePath="..\..\_common\PublicationSession.cxx"
>
</File>
<File <File
RelativePath="..\..\_common\RegistrationEvent.cxx" RelativePath="..\..\_common\RegistrationEvent.cxx"
> >
@ -206,6 +214,10 @@
RelativePath="..\..\_common\SipEvent.cxx" RelativePath="..\..\_common\SipEvent.cxx"
> >
</File> </File>
<File
RelativePath="..\..\_common\SipMessage.cxx"
>
</File>
<File <File
RelativePath="..\..\_common\SipSession.cxx" RelativePath="..\..\_common\SipSession.cxx"
> >
@ -248,6 +260,14 @@
RelativePath="..\..\_common\MessagingEvent.h" RelativePath="..\..\_common\MessagingEvent.h"
> >
</File> </File>
<File
RelativePath="..\..\_common\PublicationEvent.h"
>
</File>
<File
RelativePath="..\..\_common\PublicationSession.h"
>
</File>
<File <File
RelativePath="..\..\_common\RegistrationEvent.h" RelativePath="..\..\_common\RegistrationEvent.h"
> >
@ -272,6 +292,10 @@
RelativePath="..\..\_common\SipEvent.h" RelativePath="..\..\_common\SipEvent.h"
> >
</File> </File>
<File
RelativePath="..\..\_common\SipMessage.h"
>
</File>
<File <File
RelativePath="..\..\_common\SipSession.h" RelativePath="..\..\_common\SipSession.h"
> >
@ -306,6 +330,13 @@
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
> >
<File
RelativePath="..\..\csharp\csharp.i"
>
</File>
<Filter
Name="common"
>
<File <File
RelativePath="..\..\_common\SipStack.i" RelativePath="..\..\_common\SipStack.i"
> >
@ -319,6 +350,7 @@
> >
</File> </File>
</Filter> </Filter>
</Filter>
</Files> </Files>
<Globals> <Globals>
</Globals> </Globals>

View File

@ -155,7 +155,7 @@ int thttp_dialog_Transfering_2_Transfering_X_401_407(va_list *app)
ret = thttp_dialog_send_request(self); ret = thttp_dialog_send_request(self);
/* very important: do not break the state machine for transport error events /* very important: do not break the state machine for transport error events
* => let the transport layer do it for us throught (transport_error). * => let the transport layer do it for us (throught tnet_transport_error event).
* => transport_error event will be queued and sent after this event (i_message) * => transport_error event will be queued and sent after this event (i_message)
*/ */
if(ret == THTTP_DIALOG_TRANSPORT_ERROR_CODE){ if(ret == THTTP_DIALOG_TRANSPORT_ERROR_CODE){