General update

This commit is contained in:
bossiel 2010-06-22 15:11:38 +00:00
parent 712d1f4391
commit 80d8df7f70
58 changed files with 2208 additions and 212 deletions

View File

@ -187,9 +187,14 @@ ProxyAudioConsumer::~ProxyAudioConsumer()
}
}
void ProxyAudioConsumer::setActivate()
void ProxyAudioConsumer::setActivate(bool enabled)
{
ProxyAudioConsumer::instance = this;
if(enabled){
ProxyAudioConsumer::instance = this;
}
else{
ProxyAudioConsumer::instance = tsk_null;
}
}
unsigned ProxyAudioConsumer::pull(void* output, unsigned size)

View File

@ -44,7 +44,7 @@ public:
virtual int pause() { return 0; }
virtual int stop() { return 0; }
void setActivate();
void setActivate(bool enabled);
unsigned pull(void* output, unsigned size);
public:

View File

@ -169,9 +169,14 @@ ProxyAudioProducer::~ProxyAudioProducer()
}
}
void ProxyAudioProducer::setActivate()
void ProxyAudioProducer::setActivate(bool enabled)
{
ProxyAudioProducer::instance = this;
if(enabled){
ProxyAudioProducer::instance = this;
}
else{
ProxyAudioProducer::instance = tsk_null;
}
}
int ProxyAudioProducer::push(const void* buffer, unsigned size)

View File

@ -44,7 +44,7 @@ public:
virtual int pause() { return 0; }
virtual int stop() { return 0; }
void setActivate();
void setActivate(bool enabled);
int push(const void* buffer, unsigned size);
public:

View File

@ -25,6 +25,7 @@
class DialogEvent;
class StackEvent;
class CallEvent;
class MessagingEvent;
class OptionsEvent;
class PublicationEvent;
@ -39,6 +40,7 @@ public:
virtual int OnDialogEvent(const DialogEvent* e) { return -1; }
virtual int OnStackEvent(const StackEvent* e) { return -1; }
virtual int OnCallEvent(const CallEvent* e) { return -1; }
virtual int OnMessagingEvent(const MessagingEvent* e) { return -1; }
virtual int OnOptionsEvent(const OptionsEvent* e) { return -1; }
virtual int OnPublicationEvent(const PublicationEvent* e) { return -1; }

View File

@ -86,6 +86,50 @@ StackEvent::StackEvent(const tsip_event_t *_sipevent)
StackEvent::~StackEvent(){ }
/* ======================== CallEvent ========================*/
CallEvent::CallEvent(const tsip_event_t *_sipevent)
:SipEvent(_sipevent)
{
}
CallEvent::~CallEvent()
{
}
tsip_invite_event_type_t CallEvent::getType() const
{
return TSIP_INVITE_EVENT(this->sipevent)->type;
}
const CallSession* CallEvent::getSession() const
{
return dyn_cast<const CallSession*>(this->getBaseSession());
}
CallSession* CallEvent::takeSessionOwnership() const
{
if(!this->sipevent || !this->sipevent->ss){
return tsk_null;
}
if(tsip_ssession_have_ownership(this->sipevent->ss)){
// already have ownership
return tsk_null;
}
else{
const tsip_stack_handle_t* stack_handle = tsip_ssession_get_stack(sipevent->ss);
const void* userdata;
if(stack_handle && (userdata = tsip_stack_get_userdata(stack_handle))){
SipStack* stack = dyn_cast<SipStack*>((SipStack*)userdata);
if(stack){
// FIXME: Memory Leak ?
/* The constructor will call take_ownerhip() */
return new CallSession(stack, this->sipevent->ss);
}
}
return tsk_null;
}
}
/* ======================== MessagingEvent ========================*/
MessagingEvent::MessagingEvent(const tsip_event_t *_sipevent)

View File

@ -25,6 +25,7 @@
#include "tinysip.h"
class SipSession;
class CallSession;
class MessagingSession;
class OptionsSession;
class PublicationSession;
@ -80,6 +81,24 @@ public: /* Public API functions */
};
/* ======================== CallEvent ========================*/
class CallEvent: public SipEvent
{
public:
#if !defined(SWIG)
CallEvent(const tsip_event_t *sipevent);
#endif
virtual ~CallEvent();
public: /* Public API functions */
tsip_invite_event_type_t getType() const;
const CallSession* getSession() const;
CallSession* takeSessionOwnership() const;
};
/* ======================== MessagingEvent ========================*/
class MessagingEvent: public SipEvent
{

View File

@ -209,7 +209,51 @@ bool CallSession::Hangup()
TSIP_ACTION_SET_NULL());
return (ret == 0);
}
#if ANDROID
static void *__droid_accept(void *param)
{
tsip_action_ACCEPT((tsip_ssession_handle_t *)param,
TSIP_ACTION_SET_NULL());
return tsk_null;
}
bool CallSession::Accept()
{
void* tid[1] = {0};
tsip_ssession_handle_t *handle;
int ret;
handle = tsk_object_ref(this->handle);
ret = tsk_thread_create(tid, __droid_accept, this->handle);
tsk_thread_join(tid);
tsk_object_unref(handle);
return (ret == 0);
}
#else
bool CallSession::Accept()
{
int ret = tsip_action_ACCEPT(this->handle,
TSIP_ACTION_SET_NULL());
return (ret == 0);
}
#endif
bool CallSession::Hold()
{
int ret = tsip_action_HOLD(this->handle, tmedia_all,
TSIP_ACTION_SET_NULL());
return (ret == 0);
}
bool CallSession::Resume()
{
int ret = tsip_action_RESUME(this->handle, tmedia_all,
TSIP_ACTION_SET_NULL());
return (ret == 0);
}

View File

@ -77,6 +77,9 @@ public: /* Public functions */
bool CallAudio(const char* remoteUri);
bool CallAudioVideo(const char* remoteUri);
bool CallVideo(const char* remoteUri);
bool Accept();
bool Hold();
bool Resume();
bool Hangup();
};

View File

@ -265,6 +265,10 @@ int stack_callback(const tsip_event_t *sipevent)
}
case tsip_event_invite:
{ /* INVITE */
if(Stack->getCallback()){
e = new CallEvent(sipevent);
Stack->getCallback()->OnCallEvent((const CallEvent*)e);
}
break;
}
case tsip_event_message:

View File

@ -121,4 +121,36 @@ typedef enum tsip_options_event_type_e
tsip_i_options,
tsip_ao_options,
}
tsip_options_event_type_t;
tsip_options_event_type_t;
/* ====== From "tinySIP\include\tinysip\tsip_api_invite.h" ====== */
typedef enum tsip_invite_event_type_e
{
// ============================
// Sip Events
//
tsip_i_newcall,
//! in-dialog requests/reponses
tsip_i_request,
tsip_ao_request,
/* Explicit Call Transfer (ECT) */
tsip_o_ect_ok,
tsip_o_ect_nok,
tsip_i_ect,
// ============================
// Media Events
//
/* 3GPP TS 24.610: Communication Hold */
tsip_m_local_hold_ok,
tsip_m_local_hold_nok,
tsip_m_local_resume_ok,
tsip_m_local_resume_nok,
tsip_m_remote_hold,
tsip_m_remote_resume,
}
tsip_invite_event_type_t;

View File

@ -15,7 +15,8 @@
%newobject getSipHeaderValue;
%newobject getSipHeaderParamValue;
// don't seem to work
%newobject takeSessionOwnership;
%newobject MessagingEvent::takeSessionOwnership;
%newobject CallEvent::takeSessionOwnership;
/* Sip Stack */

View File

@ -0,0 +1,57 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39
*
* 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 CallEvent : SipEvent {
private HandleRef swigCPtr;
internal CallEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.CallEventUpcast(cPtr), cMemoryOwn) {
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(CallEvent obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~CallEvent() {
Dispose();
}
public override void Dispose() {
lock(this) {
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPPINVOKE.delete_CallEvent(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
GC.SuppressFinalize(this);
base.Dispose();
}
}
public tsip_invite_event_type_t getType() {
tsip_invite_event_type_t ret = (tsip_invite_event_type_t)tinyWRAPPINVOKE.CallEvent_getType(swigCPtr);
return ret;
}
public CallSession getSession() {
IntPtr cPtr = tinyWRAPPINVOKE.CallEvent_getSession(swigCPtr);
CallSession ret = (cPtr == IntPtr.Zero) ? null : new CallSession(cPtr, false);
return ret;
}
public CallSession takeSessionOwnership() {
IntPtr cPtr = tinyWRAPPINVOKE.CallEvent_takeSessionOwnership(swigCPtr);
CallSession ret = (cPtr == IntPtr.Zero) ? null : new CallSession(cPtr, true);
return ret;
}
}

View File

@ -55,6 +55,21 @@ public class CallSession : SipSession {
return ret;
}
public bool Accept() {
bool ret = tinyWRAPPINVOKE.CallSession_Accept(swigCPtr);
return ret;
}
public bool Hold() {
bool ret = tinyWRAPPINVOKE.CallSession_Hold(swigCPtr);
return ret;
}
public bool Resume() {
bool ret = tinyWRAPPINVOKE.CallSession_Resume(swigCPtr);
return ret;
}
public bool Hangup() {
bool ret = tinyWRAPPINVOKE.CallSession_Hangup(swigCPtr);
return ret;

View File

@ -62,8 +62,8 @@ public class ProxyAudioConsumer : IDisposable {
return ret;
}
public void setActivate() {
tinyWRAPPINVOKE.ProxyAudioConsumer_setActivate(swigCPtr);
public void setActivate(bool enabled) {
tinyWRAPPINVOKE.ProxyAudioConsumer_setActivate(swigCPtr, enabled);
}
public uint pull(byte[] output, uint size) {

View File

@ -62,8 +62,8 @@ public class ProxyAudioProducer : IDisposable {
return ret;
}
public void setActivate() {
tinyWRAPPINVOKE.ProxyAudioProducer_setActivate(swigCPtr);
public void setActivate(bool enabled) {
tinyWRAPPINVOKE.ProxyAudioProducer_setActivate(swigCPtr, enabled);
}
public int push(byte[] buffer, uint size) {

View File

@ -52,6 +52,11 @@ public class SipCallback : IDisposable {
return ret;
}
public virtual int OnCallEvent(CallEvent e) {
int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnCallEvent(swigCPtr, CallEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnCallEventSwigExplicitSipCallback(swigCPtr, CallEvent.getCPtr(e)));
return ret;
}
public virtual int OnMessagingEvent(MessagingEvent e) {
int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnMessagingEvent(swigCPtr, MessagingEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnMessagingEventSwigExplicitSipCallback(swigCPtr, MessagingEvent.getCPtr(e)));
return ret;
@ -82,17 +87,19 @@ public class SipCallback : IDisposable {
swigDelegate0 = new SwigDelegateSipCallback_0(SwigDirectorOnDialogEvent);
if (SwigDerivedClassHasMethod("OnStackEvent", swigMethodTypes1))
swigDelegate1 = new SwigDelegateSipCallback_1(SwigDirectorOnStackEvent);
if (SwigDerivedClassHasMethod("OnMessagingEvent", swigMethodTypes2))
swigDelegate2 = new SwigDelegateSipCallback_2(SwigDirectorOnMessagingEvent);
if (SwigDerivedClassHasMethod("OnOptionsEvent", swigMethodTypes3))
swigDelegate3 = new SwigDelegateSipCallback_3(SwigDirectorOnOptionsEvent);
if (SwigDerivedClassHasMethod("OnPublicationEvent", swigMethodTypes4))
swigDelegate4 = new SwigDelegateSipCallback_4(SwigDirectorOnPublicationEvent);
if (SwigDerivedClassHasMethod("OnRegistrationEvent", swigMethodTypes5))
swigDelegate5 = new SwigDelegateSipCallback_5(SwigDirectorOnRegistrationEvent);
if (SwigDerivedClassHasMethod("OnSubscriptionEvent", swigMethodTypes6))
swigDelegate6 = new SwigDelegateSipCallback_6(SwigDirectorOnSubscriptionEvent);
tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6);
if (SwigDerivedClassHasMethod("OnCallEvent", swigMethodTypes2))
swigDelegate2 = new SwigDelegateSipCallback_2(SwigDirectorOnCallEvent);
if (SwigDerivedClassHasMethod("OnMessagingEvent", swigMethodTypes3))
swigDelegate3 = new SwigDelegateSipCallback_3(SwigDirectorOnMessagingEvent);
if (SwigDerivedClassHasMethod("OnOptionsEvent", swigMethodTypes4))
swigDelegate4 = new SwigDelegateSipCallback_4(SwigDirectorOnOptionsEvent);
if (SwigDerivedClassHasMethod("OnPublicationEvent", swigMethodTypes5))
swigDelegate5 = new SwigDelegateSipCallback_5(SwigDirectorOnPublicationEvent);
if (SwigDerivedClassHasMethod("OnRegistrationEvent", swigMethodTypes6))
swigDelegate6 = new SwigDelegateSipCallback_6(SwigDirectorOnRegistrationEvent);
if (SwigDerivedClassHasMethod("OnSubscriptionEvent", swigMethodTypes7))
swigDelegate7 = new SwigDelegateSipCallback_7(SwigDirectorOnSubscriptionEvent);
tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7);
}
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
@ -109,6 +116,10 @@ public class SipCallback : IDisposable {
return OnStackEvent((e == IntPtr.Zero) ? null : new StackEvent(e, false));
}
private int SwigDirectorOnCallEvent(IntPtr e) {
return OnCallEvent((e == IntPtr.Zero) ? null : new CallEvent(e, false));
}
private int SwigDirectorOnMessagingEvent(IntPtr e) {
return OnMessagingEvent((e == IntPtr.Zero) ? null : new MessagingEvent(e, false));
}
@ -136,6 +147,7 @@ public class SipCallback : IDisposable {
public delegate int SwigDelegateSipCallback_4(IntPtr e);
public delegate int SwigDelegateSipCallback_5(IntPtr e);
public delegate int SwigDelegateSipCallback_6(IntPtr e);
public delegate int SwigDelegateSipCallback_7(IntPtr e);
private SwigDelegateSipCallback_0 swigDelegate0;
private SwigDelegateSipCallback_1 swigDelegate1;
@ -144,12 +156,14 @@ public class SipCallback : IDisposable {
private SwigDelegateSipCallback_4 swigDelegate4;
private SwigDelegateSipCallback_5 swigDelegate5;
private SwigDelegateSipCallback_6 swigDelegate6;
private SwigDelegateSipCallback_7 swigDelegate7;
private static Type[] swigMethodTypes0 = new Type[] { typeof(DialogEvent) };
private static Type[] swigMethodTypes1 = new Type[] { typeof(StackEvent) };
private static Type[] swigMethodTypes2 = new Type[] { typeof(MessagingEvent) };
private static Type[] swigMethodTypes3 = new Type[] { typeof(OptionsEvent) };
private static Type[] swigMethodTypes4 = new Type[] { typeof(PublicationEvent) };
private static Type[] swigMethodTypes5 = new Type[] { typeof(RegistrationEvent) };
private static Type[] swigMethodTypes6 = new Type[] { typeof(SubscriptionEvent) };
private static Type[] swigMethodTypes2 = new Type[] { typeof(CallEvent) };
private static Type[] swigMethodTypes3 = new Type[] { typeof(MessagingEvent) };
private static Type[] swigMethodTypes4 = new Type[] { typeof(OptionsEvent) };
private static Type[] swigMethodTypes5 = new Type[] { typeof(PublicationEvent) };
private static Type[] swigMethodTypes6 = new Type[] { typeof(RegistrationEvent) };
private static Type[] swigMethodTypes7 = new Type[] { typeof(SubscriptionEvent) };
}

View File

@ -8,10 +8,10 @@ namespace test
{
class Program
{
const String REALM = "ericsson.com";
const String REALM = "micromethod.com";
const String USER = "mamadou";
const String PROXY_CSCF_IP = "192.168.0.13";
const uint PROXY_CSCF_PORT = 5081;
const String PROXY_CSCF_IP = "192.168.0.17";
const uint PROXY_CSCF_PORT = 5060;
const String PASSWORD = "";
/*
@ -35,14 +35,12 @@ namespace test
/* Create Audio consumer */
audioConsumer = new MyProxyAudioConsumer();
audioConsumer.setActivate();
/* Create Audio producer */
audioProducer = new MyProxyAudioProducer();
audioProducer.setActivate();
/* Create and configure the IMS/LTE stack */
sipStack = new SipStack(sipCallback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM));
sipStack = new SipStack(sipCallback, String.Format("sip:{0}", REALM), /*String.Format("{0}@{1}", USER, REALM)*/USER, String.Format("sip:{0}@{1}", USER, REALM));
sipStack.setDebugCallback(sipDebugCallback);
sipStack.addHeader("Allow", "INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER");
sipStack.addHeader("Privacy", "header; id");
@ -54,15 +52,21 @@ namespace test
ProxyAudioProducer.registerPlugin();
/* Sets Proxy-CSCF */
success = sipStack.setProxyCSCF(PROXY_CSCF_IP, PROXY_CSCF_PORT, "tcp", "ipv4");
success = sipStack.setProxyCSCF(PROXY_CSCF_IP, PROXY_CSCF_PORT, "udp", "ipv4");
/* Starts the stack */
success = sipStack.start();
/* Set Password */
//stack.setPassword(PASSWORD);
sipStack.setPassword(PASSWORD);
/* Early IMS */
sipStack.setEarlyIMS(true);
//sipStack.setAoR("127.0.0.1", 1234);
audioConsumer.setActivate(true);
audioProducer.setActivate(true);
/* Send REGISTER */
regSession = new RegistrationSession(sipStack);
regSession.addCaps("+g.oma.sip-im");
@ -72,15 +76,20 @@ namespace test
regSession.Register();
Console.ReadLine();
callSession = new CallSession(sipStack);
callSession.Call(String.Format("sip:bob@{0}", REALM));
callSession.CallAudioVideo(String.Format("sip:bob@{0}", REALM));
tcb = new TimerCallback(OnTimer);
timer = new Timer(tcb, new AutoResetEvent(false), 0, 20);
Console.ReadLine();
callSession.Hold();
Console.ReadLine();
callSession.Resume();
Console.ReadLine();
callSession.Hangup();
@ -219,21 +228,6 @@ namespace test
{
}
private static bool isSipCode(short code)
{
return (code <=699 && code >=100);
}
private static bool is2xxCode(short code)
{
return (code <= 299 && code >= 200);
}
private static bool is1xxCode(short code)
{
return (code <= 199 && code >= 100);
}
public override int OnRegistrationEvent(RegistrationEvent e)
{
short code = e.getCode();
@ -259,6 +253,62 @@ namespace test
return 0;
}
public override int OnCallEvent(CallEvent e)
{
tsip_invite_event_type_t type = e.getType();
CallSession session = e.getSession();
SipMessage message = e.getSipMessage();
switch(type){
case tsip_invite_event_type_t.tsip_i_newcall:
if (session != null)
{
Console.WriteLine("ERRRRRRRRRRRORRRR");
return 0;
}
else if ((session = e.takeSessionOwnership()) != null)
{
session.Accept();
}
break;
case tsip_invite_event_type_t.tsip_i_request:
break;
case tsip_invite_event_type_t.tsip_ao_request:
break;
case tsip_invite_event_type_t.tsip_o_ect_ok:
break;
case tsip_invite_event_type_t.tsip_o_ect_nok:
break;
case tsip_invite_event_type_t.tsip_i_ect:
break;
case tsip_invite_event_type_t.tsip_m_local_hold_ok:
Console.WriteLine("Local Hold OK");
break;
case tsip_invite_event_type_t.tsip_m_local_hold_nok:
Console.WriteLine("Local Hold NOK");
break;
case tsip_invite_event_type_t.tsip_m_local_resume_ok:
Console.WriteLine("Local Resume OK");
break;
case tsip_invite_event_type_t.tsip_m_local_resume_nok:
Console.WriteLine("Local Resume NOK");
break;
case tsip_invite_event_type_t.tsip_m_remote_hold:
Console.WriteLine("Remote Hold");
break;
case tsip_invite_event_type_t.tsip_m_remote_resume:
Console.WriteLine("Remote Resume");
break;
}
return 0;
}
public override int OnOptionsEvent(OptionsEvent e)
{

View File

@ -45,6 +45,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\CallEvent.cs">
<Link>CallEvent.cs</Link>
</Compile>
<Compile Include="..\CallSession.cs">
<Link>CallSession.cs</Link>
</Compile>
@ -120,6 +123,9 @@
<Compile Include="..\tsip_event_type_t.cs">
<Link>tsip_event_type_t.cs</Link>
</Compile>
<Compile Include="..\tsip_invite_event_type_t.cs">
<Link>tsip_invite_event_type_t.cs</Link>
</Compile>
<Compile Include="..\tsip_message_event_type_t.cs">
<Link>tsip_message_event_type_t.cs</Link>
</Compile>

Binary file not shown.

View File

@ -259,6 +259,18 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_StackEvent")]
public static extern void delete_StackEvent(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_CallEvent")]
public static extern void delete_CallEvent(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallEvent_getType")]
public static extern int CallEvent_getType(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallEvent_getSession")]
public static extern IntPtr CallEvent_getSession(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallEvent_takeSessionOwnership")]
public static extern IntPtr CallEvent_takeSessionOwnership(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_MessagingEvent")]
public static extern void delete_MessagingEvent(HandleRef jarg1);
@ -361,6 +373,15 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_CallVideo")]
public static extern bool CallSession_CallVideo(HandleRef jarg1, string jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_Accept")]
public static extern bool CallSession_Accept(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_Hold")]
public static extern bool CallSession_Hold(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_Resume")]
public static extern bool CallSession_Resume(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_Hangup")]
public static extern bool CallSession_Hangup(HandleRef jarg1);
@ -455,7 +476,7 @@ class tinyWRAPPINVOKE {
public static extern int ProxyAudioConsumer_stopSwigExplicitProxyAudioConsumer(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_setActivate")]
public static extern void ProxyAudioConsumer_setActivate(HandleRef jarg1);
public static extern void ProxyAudioConsumer_setActivate(HandleRef jarg1, bool jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_pull")]
public static extern uint ProxyAudioConsumer_pull(HandleRef jarg1, byte[] jarg2, uint jarg3);
@ -497,7 +518,7 @@ class tinyWRAPPINVOKE {
public static extern int ProxyAudioProducer_stopSwigExplicitProxyAudioProducer(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_setActivate")]
public static extern void ProxyAudioProducer_setActivate(HandleRef jarg1);
public static extern void ProxyAudioProducer_setActivate(HandleRef jarg1, bool jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_push")]
public static extern int ProxyAudioProducer_push(HandleRef jarg1, byte[] jarg2, uint jarg3);
@ -526,6 +547,12 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnStackEventSwigExplicitSipCallback")]
public static extern int SipCallback_OnStackEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnCallEvent")]
public static extern int SipCallback_OnCallEvent(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnCallEventSwigExplicitSipCallback")]
public static extern int SipCallback_OnCallEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnMessagingEvent")]
public static extern int SipCallback_OnMessagingEvent(HandleRef jarg1, HandleRef jarg2);
@ -557,7 +584,7 @@ class tinyWRAPPINVOKE {
public static extern int SipCallback_OnSubscriptionEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_director_connect")]
public static extern void SipCallback_director_connect(HandleRef jarg1, SipCallback.SwigDelegateSipCallback_0 delegate0, SipCallback.SwigDelegateSipCallback_1 delegate1, SipCallback.SwigDelegateSipCallback_2 delegate2, SipCallback.SwigDelegateSipCallback_3 delegate3, SipCallback.SwigDelegateSipCallback_4 delegate4, SipCallback.SwigDelegateSipCallback_5 delegate5, SipCallback.SwigDelegateSipCallback_6 delegate6);
public static extern void SipCallback_director_connect(HandleRef jarg1, SipCallback.SwigDelegateSipCallback_0 delegate0, SipCallback.SwigDelegateSipCallback_1 delegate1, SipCallback.SwigDelegateSipCallback_2 delegate2, SipCallback.SwigDelegateSipCallback_3 delegate3, SipCallback.SwigDelegateSipCallback_4 delegate4, SipCallback.SwigDelegateSipCallback_5 delegate5, SipCallback.SwigDelegateSipCallback_6 delegate6, SipCallback.SwigDelegateSipCallback_7 delegate7);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SafeObject")]
public static extern IntPtr new_SafeObject();
@ -673,6 +700,9 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_StackEventUpcast")]
public static extern IntPtr StackEventUpcast(IntPtr objectRef);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallEventUpcast")]
public static extern IntPtr CallEventUpcast(IntPtr objectRef);
[DllImport("tinyWRAP", EntryPoint="CSharp_MessagingEventUpcast")]
public static extern IntPtr MessagingEventUpcast(IntPtr objectRef);

View File

@ -555,6 +555,21 @@ int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) {
return c_result;
}
int SwigDirector_SipCallback::OnCallEvent(CallEvent const *e) {
int c_result = SwigValueInit< int >() ;
int jresult = 0 ;
void * je = 0 ;
if (!swig_callbackOnCallEvent) {
return SipCallback::OnCallEvent(e);
} else {
je = (void *) e;
jresult = (int) swig_callbackOnCallEvent(je);
c_result = (int)jresult;
}
return c_result;
}
int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) {
int c_result = SwigValueInit< int >() ;
int jresult = 0 ;
@ -630,9 +645,10 @@ int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) {
return c_result;
}
void SwigDirector_SipCallback::swig_connect_director(SWIG_Callback0_t callbackOnDialogEvent, SWIG_Callback1_t callbackOnStackEvent, SWIG_Callback2_t callbackOnMessagingEvent, SWIG_Callback3_t callbackOnOptionsEvent, SWIG_Callback4_t callbackOnPublicationEvent, SWIG_Callback5_t callbackOnRegistrationEvent, SWIG_Callback6_t callbackOnSubscriptionEvent) {
void SwigDirector_SipCallback::swig_connect_director(SWIG_Callback0_t callbackOnDialogEvent, SWIG_Callback1_t callbackOnStackEvent, SWIG_Callback2_t callbackOnCallEvent, SWIG_Callback3_t callbackOnMessagingEvent, SWIG_Callback4_t callbackOnOptionsEvent, SWIG_Callback5_t callbackOnPublicationEvent, SWIG_Callback6_t callbackOnRegistrationEvent, SWIG_Callback7_t callbackOnSubscriptionEvent) {
swig_callbackOnDialogEvent = callbackOnDialogEvent;
swig_callbackOnStackEvent = callbackOnStackEvent;
swig_callbackOnCallEvent = callbackOnCallEvent;
swig_callbackOnMessagingEvent = callbackOnMessagingEvent;
swig_callbackOnOptionsEvent = callbackOnOptionsEvent;
swig_callbackOnPublicationEvent = callbackOnPublicationEvent;
@ -643,6 +659,7 @@ void SwigDirector_SipCallback::swig_connect_director(SWIG_Callback0_t callbackOn
void SwigDirector_SipCallback::swig_init_callbacks() {
swig_callbackOnDialogEvent = 0;
swig_callbackOnStackEvent = 0;
swig_callbackOnCallEvent = 0;
swig_callbackOnMessagingEvent = 0;
swig_callbackOnOptionsEvent = 0;
swig_callbackOnPublicationEvent = 0;
@ -959,6 +976,50 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_StackEvent(void * jarg1) {
}
SWIGEXPORT void SWIGSTDCALL CSharp_delete_CallEvent(void * jarg1) {
CallEvent *arg1 = (CallEvent *) 0 ;
arg1 = (CallEvent *)jarg1;
delete arg1;
}
SWIGEXPORT int SWIGSTDCALL CSharp_CallEvent_getType(void * jarg1) {
int jresult ;
CallEvent *arg1 = (CallEvent *) 0 ;
tsip_invite_event_type_t result;
arg1 = (CallEvent *)jarg1;
result = (tsip_invite_event_type_t)((CallEvent const *)arg1)->getType();
jresult = result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_CallEvent_getSession(void * jarg1) {
void * jresult ;
CallEvent *arg1 = (CallEvent *) 0 ;
CallSession *result = 0 ;
arg1 = (CallEvent *)jarg1;
result = (CallSession *)((CallEvent const *)arg1)->getSession();
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_CallEvent_takeSessionOwnership(void * jarg1) {
void * jresult ;
CallEvent *arg1 = (CallEvent *) 0 ;
CallSession *result = 0 ;
arg1 = (CallEvent *)jarg1;
result = (CallSession *)((CallEvent const *)arg1)->takeSessionOwnership();
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_delete_MessagingEvent(void * jarg1) {
MessagingEvent *arg1 = (MessagingEvent *) 0 ;
@ -1367,6 +1428,42 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_CallVideo(void * jarg1, c
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_Accept(void * jarg1) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
bool result;
arg1 = (CallSession *)jarg1;
result = (bool)(arg1)->Accept();
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_Hold(void * jarg1) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
bool result;
arg1 = (CallSession *)jarg1;
result = (bool)(arg1)->Hold();
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_Resume(void * jarg1) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
bool result;
arg1 = (CallSession *)jarg1;
result = (bool)(arg1)->Resume();
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_Hangup(void * jarg1) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
@ -1733,11 +1830,13 @@ SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioConsumer_stopSwigExplicitProxyAudioC
}
SWIGEXPORT void SWIGSTDCALL CSharp_ProxyAudioConsumer_setActivate(void * jarg1) {
SWIGEXPORT void SWIGSTDCALL CSharp_ProxyAudioConsumer_setActivate(void * jarg1, unsigned int jarg2) {
ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
bool arg2 ;
arg1 = (ProxyAudioConsumer *)jarg1;
(arg1)->setActivate();
arg2 = jarg2 ? true : false;
(arg1)->setActivate(arg2);
}
@ -1902,11 +2001,13 @@ SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducer_stopSwigExplicitProxyAudioP
}
SWIGEXPORT void SWIGSTDCALL CSharp_ProxyAudioProducer_setActivate(void * jarg1) {
SWIGEXPORT void SWIGSTDCALL CSharp_ProxyAudioProducer_setActivate(void * jarg1, unsigned int jarg2) {
ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
bool arg2 ;
arg1 = (ProxyAudioProducer *)jarg1;
(arg1)->setActivate();
arg2 = jarg2 ? true : false;
(arg1)->setActivate(arg2);
}
@ -2019,6 +2120,34 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnStackEventSwigExplicitSipCallbac
}
SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnCallEvent(void * jarg1, void * jarg2) {
int jresult ;
SipCallback *arg1 = (SipCallback *) 0 ;
CallEvent *arg2 = (CallEvent *) 0 ;
int result;
arg1 = (SipCallback *)jarg1;
arg2 = (CallEvent *)jarg2;
result = (int)(arg1)->OnCallEvent((CallEvent const *)arg2);
jresult = result;
return jresult;
}
SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnCallEventSwigExplicitSipCallback(void * jarg1, void * jarg2) {
int jresult ;
SipCallback *arg1 = (SipCallback *) 0 ;
CallEvent *arg2 = (CallEvent *) 0 ;
int result;
arg1 = (SipCallback *)jarg1;
arg2 = (CallEvent *)jarg2;
result = (int)(arg1)->SipCallback::OnCallEvent((CallEvent const *)arg2);
jresult = result;
return jresult;
}
SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnMessagingEvent(void * jarg1, void * jarg2) {
int jresult ;
SipCallback *arg1 = (SipCallback *) 0 ;
@ -2159,11 +2288,11 @@ SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnSubscriptionEventSwigExplicitSip
}
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, SwigDirector_SipCallback::SWIG_Callback3_t callback3, SwigDirector_SipCallback::SWIG_Callback4_t callback4, SwigDirector_SipCallback::SWIG_Callback5_t callback5, SwigDirector_SipCallback::SWIG_Callback6_t callback6) {
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, SwigDirector_SipCallback::SWIG_Callback3_t callback3, SwigDirector_SipCallback::SWIG_Callback4_t callback4, SwigDirector_SipCallback::SWIG_Callback5_t callback5, SwigDirector_SipCallback::SWIG_Callback6_t callback6, SwigDirector_SipCallback::SWIG_Callback7_t callback7) {
SipCallback *obj = (SipCallback *)objarg;
SwigDirector_SipCallback *director = dynamic_cast<SwigDirector_SipCallback *>(obj);
if (director) {
director->swig_connect_director(callback0, callback1, callback2, callback3, callback4, callback5, callback6);
director->swig_connect_director(callback0, callback1, callback2, callback3, callback4, callback5, callback6, callback7);
}
}
@ -2612,6 +2741,10 @@ SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_StackEventUpcast(StackEvent *objectRef)
return (SipEvent *)objectRef;
}
SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_CallEventUpcast(CallEvent *objectRef) {
return (SipEvent *)objectRef;
}
SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_MessagingEventUpcast(MessagingEvent *objectRef) {
return (SipEvent *)objectRef;
}

View File

@ -66,6 +66,7 @@ public:
virtual ~SwigDirector_SipCallback();
virtual int OnDialogEvent(DialogEvent const *e);
virtual int OnStackEvent(StackEvent const *e);
virtual int OnCallEvent(CallEvent const *e);
virtual int OnMessagingEvent(MessagingEvent const *e);
virtual int OnOptionsEvent(OptionsEvent const *e);
virtual int OnPublicationEvent(PublicationEvent const *e);
@ -79,16 +80,18 @@ public:
typedef int (SWIGSTDCALL* SWIG_Callback4_t)(void *);
typedef int (SWIGSTDCALL* SWIG_Callback5_t)(void *);
typedef int (SWIGSTDCALL* SWIG_Callback6_t)(void *);
void swig_connect_director(SWIG_Callback0_t callbackOnDialogEvent, SWIG_Callback1_t callbackOnStackEvent, SWIG_Callback2_t callbackOnMessagingEvent, SWIG_Callback3_t callbackOnOptionsEvent, SWIG_Callback4_t callbackOnPublicationEvent, SWIG_Callback5_t callbackOnRegistrationEvent, SWIG_Callback6_t callbackOnSubscriptionEvent);
typedef int (SWIGSTDCALL* SWIG_Callback7_t)(void *);
void swig_connect_director(SWIG_Callback0_t callbackOnDialogEvent, SWIG_Callback1_t callbackOnStackEvent, SWIG_Callback2_t callbackOnCallEvent, SWIG_Callback3_t callbackOnMessagingEvent, SWIG_Callback4_t callbackOnOptionsEvent, SWIG_Callback5_t callbackOnPublicationEvent, SWIG_Callback6_t callbackOnRegistrationEvent, SWIG_Callback7_t callbackOnSubscriptionEvent);
private:
SWIG_Callback0_t swig_callbackOnDialogEvent;
SWIG_Callback1_t swig_callbackOnStackEvent;
SWIG_Callback2_t swig_callbackOnMessagingEvent;
SWIG_Callback3_t swig_callbackOnOptionsEvent;
SWIG_Callback4_t swig_callbackOnPublicationEvent;
SWIG_Callback5_t swig_callbackOnRegistrationEvent;
SWIG_Callback6_t swig_callbackOnSubscriptionEvent;
SWIG_Callback2_t swig_callbackOnCallEvent;
SWIG_Callback3_t swig_callbackOnMessagingEvent;
SWIG_Callback4_t swig_callbackOnOptionsEvent;
SWIG_Callback5_t swig_callbackOnPublicationEvent;
SWIG_Callback6_t swig_callbackOnRegistrationEvent;
SWIG_Callback7_t swig_callbackOnSubscriptionEvent;
void swig_init_callbacks();
};

View File

@ -0,0 +1,23 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
public enum tsip_invite_event_type_t {
tsip_i_newcall,
tsip_i_request,
tsip_ao_request,
tsip_o_ect_ok,
tsip_o_ect_nok,
tsip_i_ect,
tsip_m_local_hold_ok,
tsip_m_local_hold_nok,
tsip_m_local_resume_ok,
tsip_m_local_resume_nok,
tsip_m_remote_hold,
tsip_m_remote_resume
}

View File

@ -0,0 +1,50 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39
*
* 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 CallEvent extends SipEvent {
private long swigCPtr;
protected CallEvent(long cPtr, boolean cMemoryOwn) {
super(tinyWRAPJNI.SWIGCallEventUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(CallEvent obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPJNI.delete_CallEvent(swigCPtr);
}
swigCPtr = 0;
super.delete();
}
public tsip_invite_event_type_t getType() {
return tsip_invite_event_type_t.swigToEnum(tinyWRAPJNI.CallEvent_getType(swigCPtr, this));
}
public CallSession getSession() {
long cPtr = tinyWRAPJNI.CallEvent_getSession(swigCPtr, this);
return (cPtr == 0) ? null : new CallSession(cPtr, false);
}
public CallSession takeSessionOwnership() {
long cPtr = tinyWRAPJNI.CallEvent_takeSessionOwnership(swigCPtr, this);
return (cPtr == 0) ? null : new CallSession(cPtr, true);
}
}

View File

@ -49,6 +49,18 @@ public class CallSession extends SipSession {
return tinyWRAPJNI.CallSession_CallVideo(swigCPtr, this, remoteUri);
}
public boolean Accept() {
return tinyWRAPJNI.CallSession_Accept(swigCPtr, this);
}
public boolean Hold() {
return tinyWRAPJNI.CallSession_Hold(swigCPtr, this);
}
public boolean Resume() {
return tinyWRAPJNI.CallSession_Resume(swigCPtr, this);
}
public boolean Hangup() {
return tinyWRAPJNI.CallSession_Hangup(swigCPtr, this);
}

View File

@ -69,8 +69,8 @@ public class ProxyAudioConsumer {
return (getClass() == ProxyAudioConsumer.class) ? tinyWRAPJNI.ProxyAudioConsumer_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumer_stopSwigExplicitProxyAudioConsumer(swigCPtr, this);
}
public void setActivate() {
tinyWRAPJNI.ProxyAudioConsumer_setActivate(swigCPtr, this);
public void setActivate(boolean enabled) {
tinyWRAPJNI.ProxyAudioConsumer_setActivate(swigCPtr, this, enabled);
}
public long pull(java.nio.ByteBuffer output, long size) {

View File

@ -69,8 +69,8 @@ public class ProxyAudioProducer {
return (getClass() == ProxyAudioProducer.class) ? tinyWRAPJNI.ProxyAudioProducer_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducer_stopSwigExplicitProxyAudioProducer(swigCPtr, this);
}
public void setActivate() {
tinyWRAPJNI.ProxyAudioProducer_setActivate(swigCPtr, this);
public void setActivate(boolean enabled) {
tinyWRAPJNI.ProxyAudioProducer_setActivate(swigCPtr, this, enabled);
}
public int push(java.nio.ByteBuffer buffer, long size) {

View File

@ -61,6 +61,10 @@ public class SipCallback {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnStackEvent(swigCPtr, this, StackEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnStackEventSwigExplicitSipCallback(swigCPtr, this, StackEvent.getCPtr(e), e);
}
public int OnCallEvent(CallEvent e) {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnCallEvent(swigCPtr, this, CallEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnCallEventSwigExplicitSipCallback(swigCPtr, this, CallEvent.getCPtr(e), e);
}
public int OnMessagingEvent(MessagingEvent e) {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnMessagingEvent(swigCPtr, this, MessagingEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnMessagingEventSwigExplicitSipCallback(swigCPtr, this, MessagingEvent.getCPtr(e), e);
}

View File

@ -0,0 +1,50 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39
*
* 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 CallEvent extends SipEvent {
private long swigCPtr;
protected CallEvent(long cPtr, boolean cMemoryOwn) {
super(tinyWRAPJNI.SWIGCallEventUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(CallEvent obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPJNI.delete_CallEvent(swigCPtr);
}
swigCPtr = 0;
super.delete();
}
public tsip_invite_event_type_t getType() {
return tsip_invite_event_type_t.swigToEnum(tinyWRAPJNI.CallEvent_getType(swigCPtr, this));
}
public CallSession getSession() {
long cPtr = tinyWRAPJNI.CallEvent_getSession(swigCPtr, this);
return (cPtr == 0) ? null : new CallSession(cPtr, false);
}
public CallSession takeSessionOwnership() {
long cPtr = tinyWRAPJNI.CallEvent_takeSessionOwnership(swigCPtr, this);
return (cPtr == 0) ? null : new CallSession(cPtr, true);
}
}

View File

@ -49,6 +49,18 @@ public class CallSession extends SipSession {
return tinyWRAPJNI.CallSession_CallVideo(swigCPtr, this, remoteUri);
}
public boolean Accept() {
return tinyWRAPJNI.CallSession_Accept(swigCPtr, this);
}
public boolean Hold() {
return tinyWRAPJNI.CallSession_Hold(swigCPtr, this);
}
public boolean Resume() {
return tinyWRAPJNI.CallSession_Resume(swigCPtr, this);
}
public boolean Hangup() {
return tinyWRAPJNI.CallSession_Hangup(swigCPtr, this);
}

View File

@ -69,8 +69,8 @@ public class ProxyAudioConsumer {
return (getClass() == ProxyAudioConsumer.class) ? tinyWRAPJNI.ProxyAudioConsumer_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumer_stopSwigExplicitProxyAudioConsumer(swigCPtr, this);
}
public void setActivate() {
tinyWRAPJNI.ProxyAudioConsumer_setActivate(swigCPtr, this);
public void setActivate(boolean enabled) {
tinyWRAPJNI.ProxyAudioConsumer_setActivate(swigCPtr, this, enabled);
}
public long pull(java.nio.ByteBuffer output, long size) {

View File

@ -69,8 +69,8 @@ public class ProxyAudioProducer {
return (getClass() == ProxyAudioProducer.class) ? tinyWRAPJNI.ProxyAudioProducer_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducer_stopSwigExplicitProxyAudioProducer(swigCPtr, this);
}
public void setActivate() {
tinyWRAPJNI.ProxyAudioProducer_setActivate(swigCPtr, this);
public void setActivate(boolean enabled) {
tinyWRAPJNI.ProxyAudioProducer_setActivate(swigCPtr, this, enabled);
}
public int push(java.nio.ByteBuffer buffer, long size) {

View File

@ -61,6 +61,10 @@ public class SipCallback {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnStackEvent(swigCPtr, this, StackEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnStackEventSwigExplicitSipCallback(swigCPtr, this, StackEvent.getCPtr(e), e);
}
public int OnCallEvent(CallEvent e) {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnCallEvent(swigCPtr, this, CallEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnCallEventSwigExplicitSipCallback(swigCPtr, this, CallEvent.getCPtr(e), e);
}
public int OnMessagingEvent(MessagingEvent e) {
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnMessagingEvent(swigCPtr, this, MessagingEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnMessagingEventSwigExplicitSipCallback(swigCPtr, this, MessagingEvent.getCPtr(e), e);
}

View File

@ -34,6 +34,10 @@ class tinyWRAPJNI {
public final static native long SipEvent_getSipMessage(long jarg1, SipEvent jarg1_);
public final static native void delete_DialogEvent(long jarg1);
public final static native void delete_StackEvent(long jarg1);
public final static native void delete_CallEvent(long jarg1);
public final static native int CallEvent_getType(long jarg1, CallEvent jarg1_);
public final static native long CallEvent_getSession(long jarg1, CallEvent jarg1_);
public final static native long CallEvent_takeSessionOwnership(long jarg1, CallEvent jarg1_);
public final static native void delete_MessagingEvent(long jarg1);
public final static native int MessagingEvent_getType(long jarg1, MessagingEvent jarg1_);
public final static native long MessagingEvent_getSession(long jarg1, MessagingEvent jarg1_);
@ -68,6 +72,9 @@ class tinyWRAPJNI {
public final static native boolean CallSession_CallAudio(long jarg1, CallSession jarg1_, String jarg2);
public final static native boolean CallSession_CallAudioVideo(long jarg1, CallSession jarg1_, String jarg2);
public final static native boolean CallSession_CallVideo(long jarg1, CallSession jarg1_, String jarg2);
public final static native boolean CallSession_Accept(long jarg1, CallSession jarg1_);
public final static native boolean CallSession_Hold(long jarg1, CallSession jarg1_);
public final static native boolean CallSession_Resume(long jarg1, CallSession jarg1_);
public final static native boolean CallSession_Hangup(long jarg1, CallSession jarg1_);
public final static native long new_MessagingSession(long jarg1, SipStack jarg1_);
public final static native void delete_MessagingSession(long jarg1);
@ -99,7 +106,7 @@ class tinyWRAPJNI {
public final static native int ProxyAudioConsumer_pauseSwigExplicitProxyAudioConsumer(long jarg1, ProxyAudioConsumer jarg1_);
public final static native int ProxyAudioConsumer_stop(long jarg1, ProxyAudioConsumer jarg1_);
public final static native int ProxyAudioConsumer_stopSwigExplicitProxyAudioConsumer(long jarg1, ProxyAudioConsumer jarg1_);
public final static native void ProxyAudioConsumer_setActivate(long jarg1, ProxyAudioConsumer jarg1_);
public final static native void ProxyAudioConsumer_setActivate(long jarg1, ProxyAudioConsumer jarg1_, boolean jarg2);
public final static native long ProxyAudioConsumer_pull(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
public final static native boolean ProxyAudioConsumer_registerPlugin();
public final static native void ProxyAudioConsumer_director_connect(ProxyAudioConsumer obj, long cptr, boolean mem_own, boolean weak_global);
@ -114,7 +121,7 @@ class tinyWRAPJNI {
public final static native int ProxyAudioProducer_pauseSwigExplicitProxyAudioProducer(long jarg1, ProxyAudioProducer jarg1_);
public final static native int ProxyAudioProducer_stop(long jarg1, ProxyAudioProducer jarg1_);
public final static native int ProxyAudioProducer_stopSwigExplicitProxyAudioProducer(long jarg1, ProxyAudioProducer jarg1_);
public final static native void ProxyAudioProducer_setActivate(long jarg1, ProxyAudioProducer jarg1_);
public final static native void ProxyAudioProducer_setActivate(long jarg1, ProxyAudioProducer jarg1_, boolean jarg2);
public final static native int ProxyAudioProducer_push(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
public final static native boolean ProxyAudioProducer_registerPlugin();
public final static native void ProxyAudioProducer_director_connect(ProxyAudioProducer obj, long cptr, boolean mem_own, boolean weak_global);
@ -125,6 +132,8 @@ class tinyWRAPJNI {
public final static native int SipCallback_OnDialogEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, DialogEvent jarg2_);
public final static native int SipCallback_OnStackEvent(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_);
public final static native int SipCallback_OnStackEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_);
public final static native int SipCallback_OnCallEvent(long jarg1, SipCallback jarg1_, long jarg2, CallEvent jarg2_);
public final static native int SipCallback_OnCallEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, CallEvent jarg2_);
public final static native int SipCallback_OnMessagingEvent(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_);
public final static native int SipCallback_OnMessagingEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_);
public final static native int SipCallback_OnOptionsEvent(long jarg1, SipCallback jarg1_, long jarg2, OptionsEvent jarg2_);
@ -161,6 +170,7 @@ class tinyWRAPJNI {
public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_);
public final static native long SWIGDialogEventUpcast(long jarg1);
public final static native long SWIGStackEventUpcast(long jarg1);
public final static native long SWIGCallEventUpcast(long jarg1);
public final static native long SWIGMessagingEventUpcast(long jarg1);
public final static native long SWIGOptionsEventUpcast(long jarg1);
public final static native long SWIGPublicationEventUpcast(long jarg1);
@ -204,6 +214,9 @@ class tinyWRAPJNI {
public static int SwigDirector_SipCallback_OnStackEvent(SipCallback self, long e) {
return self.OnStackEvent((e == 0) ? null : new StackEvent(e, false));
}
public static int SwigDirector_SipCallback_OnCallEvent(SipCallback self, long e) {
return self.OnCallEvent((e == 0) ? null : new CallEvent(e, false));
}
public static int SwigDirector_SipCallback_OnMessagingEvent(SipCallback self, long e) {
return self.OnMessagingEvent((e == 0) ? null : new MessagingEvent(e, false));
}

View File

@ -403,7 +403,7 @@ namespace Swig {
namespace Swig {
static jclass jclass_tinyWRAPJNI = NULL;
static jmethodID director_methids[15];
static jmethodID director_methids[16];
}
#include "DDebug.h"
@ -779,7 +779,7 @@ int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) {
return c_result;
}
int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) {
int SwigDirector_SipCallback::OnCallEvent(CallEvent const *e) {
int c_result = SwigValueInit< int >() ;
jint jresult = 0 ;
JNIEnvWrapper swigjnienv(this) ;
@ -788,12 +788,36 @@ int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) {
jlong je = 0 ;
if (!swig_override[2]) {
return SipCallback::OnCallEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((CallEvent **)&je) = (CallEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[10], 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;
}
int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent 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[3]) {
return SipCallback::OnMessagingEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((MessagingEvent **)&je) = (MessagingEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[10], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[11], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -811,13 +835,13 @@ int SwigDirector_SipCallback::OnOptionsEvent(OptionsEvent const *e) {
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[3]) {
if (!swig_override[4]) {
return SipCallback::OnOptionsEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((OptionsEvent **)&je) = (OptionsEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[11], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[12], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -835,13 +859,13 @@ int SwigDirector_SipCallback::OnPublicationEvent(PublicationEvent const *e) {
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[4]) {
if (!swig_override[5]) {
return SipCallback::OnPublicationEvent(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[12], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[13], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -859,13 +883,13 @@ int SwigDirector_SipCallback::OnRegistrationEvent(RegistrationEvent const *e) {
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[5]) {
if (!swig_override[6]) {
return SipCallback::OnRegistrationEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((RegistrationEvent **)&je) = (RegistrationEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[13], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[14], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -883,13 +907,13 @@ int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) {
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[6]) {
if (!swig_override[7]) {
return SipCallback::OnSubscriptionEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((SubscriptionEvent **)&je) = (SubscriptionEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[14], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[15], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -911,6 +935,9 @@ void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself
{
"OnStackEvent", "(Lorg/doubango/tinyWRAP/StackEvent;)I", NULL
},
{
"OnCallEvent", "(Lorg/doubango/tinyWRAP/CallEvent;)I", NULL
},
{
"OnMessagingEvent", "(Lorg/doubango/tinyWRAP/MessagingEvent;)I", NULL
},
@ -937,7 +964,7 @@ void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself
baseclass = (jclass) jenv->NewGlobalRef(baseclass);
}
bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
for (int i = 0; i < 7; ++i) {
for (int i = 0; i < 8; ++i) {
if (!methods[i].base_methid) {
methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
if (!methods[i].base_methid) return;
@ -1389,6 +1416,61 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1StackEven
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1CallEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
CallEvent *arg1 = (CallEvent *) 0 ;
(void)jenv;
(void)jcls;
arg1 = *(CallEvent **)&jarg1;
delete arg1;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jint jresult = 0 ;
CallEvent *arg1 = (CallEvent *) 0 ;
tsip_invite_event_type_t result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallEvent **)&jarg1;
result = (tsip_invite_event_type_t)((CallEvent const *)arg1)->getType();
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
CallEvent *arg1 = (CallEvent *) 0 ;
CallSession *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallEvent **)&jarg1;
result = (CallSession *)((CallEvent const *)arg1)->getSession();
*(CallSession **)&jresult = result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
CallEvent *arg1 = (CallEvent *) 0 ;
CallSession *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallEvent **)&jarg1;
result = (CallSession *)((CallEvent const *)arg1)->takeSessionOwnership();
*(CallSession **)&jresult = result;
return jresult;
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
MessagingEvent *arg1 = (MessagingEvent *) 0 ;
@ -1952,6 +2034,51 @@ SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1Accept(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
CallSession *arg1 = (CallSession *) 0 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallSession **)&jarg1;
result = (bool)(arg1)->Accept();
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1Hold(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
CallSession *arg1 = (CallSession *) 0 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallSession **)&jarg1;
result = (bool)(arg1)->Hold();
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1Resume(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
CallSession *arg1 = (CallSession *) 0 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallSession **)&jarg1;
result = (bool)(arg1)->Resume();
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1Hangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
CallSession *arg1 = (CallSession *) 0 ;
@ -2408,14 +2535,16 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsume
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setActivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setActivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
bool arg2 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(ProxyAudioConsumer **)&jarg1;
(arg1)->setActivate();
arg2 = jarg2 ? true : false;
(arg1)->setActivate(arg2);
}
@ -2626,14 +2755,16 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProduce
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setActivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setActivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
bool arg2 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(ProxyAudioProducer **)&jarg1;
(arg1)->setActivate();
arg2 = jarg2 ? true : false;
(arg1)->setActivate(arg2);
}
@ -2784,6 +2915,42 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSt
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnCallEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
CallEvent *arg2 = (CallEvent *) 0 ;
int result;
(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(SipCallback **)&jarg1;
arg2 = *(CallEvent **)&jarg2;
result = (int)(arg1)->OnCallEvent((CallEvent const *)arg2);
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnCallEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
CallEvent *arg2 = (CallEvent *) 0 ;
int result;
(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(SipCallback **)&jarg1;
arg2 = *(CallEvent **)&jarg2;
result = (int)(arg1)->SipCallback::OnCallEvent((CallEvent const *)arg2);
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
@ -3440,6 +3607,14 @@ SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGStackEventUp
return baseptr;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGCallEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0;
(void)jenv;
(void)jcls;
*(SipEvent **)&baseptr = *(CallEvent **)&jarg1;
return baseptr;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGMessagingEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0;
(void)jenv;
@ -3542,7 +3717,7 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1ini
static struct {
const char *method;
const char *signature;
} methods[15] = {
} methods[16] = {
{
"SwigDirector_ProxyAudioConsumer_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumer;III)I"
},
@ -3573,6 +3748,9 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1ini
{
"SwigDirector_SipCallback_OnStackEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
},
{
"SwigDirector_SipCallback_OnCallEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
},
{
"SwigDirector_SipCallback_OnMessagingEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
},

View File

@ -55,6 +55,7 @@ public:
virtual ~SwigDirector_SipCallback();
virtual int OnDialogEvent(DialogEvent const *e);
virtual int OnStackEvent(StackEvent const *e);
virtual int OnCallEvent(CallEvent const *e);
virtual int OnMessagingEvent(MessagingEvent const *e);
virtual int OnOptionsEvent(OptionsEvent const *e);
virtual int OnPublicationEvent(PublicationEvent const *e);
@ -62,10 +63,10 @@ public:
virtual int OnSubscriptionEvent(SubscriptionEvent const *e);
public:
bool swig_overrides(int n) {
return (n < 7 ? swig_override[n] : false);
return (n < 8 ? swig_override[n] : false);
}
protected:
bool swig_override[7];
bool swig_override[8];
};

View File

@ -0,0 +1,62 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39
*
* 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_invite_event_type_t {
tsip_i_newcall,
tsip_i_request,
tsip_ao_request,
tsip_o_ect_ok,
tsip_o_ect_nok,
tsip_i_ect,
tsip_m_local_hold_ok,
tsip_m_local_hold_nok,
tsip_m_local_resume_ok,
tsip_m_local_resume_nok,
tsip_m_remote_hold,
tsip_m_remote_resume;
public final int swigValue() {
return swigValue;
}
public static tsip_invite_event_type_t swigToEnum(int swigValue) {
tsip_invite_event_type_t[] swigValues = tsip_invite_event_type_t.class.getEnumConstants();
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (tsip_invite_event_type_t swigEnum : swigValues)
if (swigEnum.swigValue == swigValue)
return swigEnum;
throw new IllegalArgumentException("No enum " + tsip_invite_event_type_t.class + " with value " + swigValue);
}
@SuppressWarnings("unused")
private tsip_invite_event_type_t() {
this.swigValue = SwigNext.next++;
}
@SuppressWarnings("unused")
private tsip_invite_event_type_t(int swigValue) {
this.swigValue = swigValue;
SwigNext.next = swigValue+1;
}
@SuppressWarnings("unused")
private tsip_invite_event_type_t(tsip_invite_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

@ -34,6 +34,10 @@ class tinyWRAPJNI {
public final static native long SipEvent_getSipMessage(long jarg1, SipEvent jarg1_);
public final static native void delete_DialogEvent(long jarg1);
public final static native void delete_StackEvent(long jarg1);
public final static native void delete_CallEvent(long jarg1);
public final static native int CallEvent_getType(long jarg1, CallEvent jarg1_);
public final static native long CallEvent_getSession(long jarg1, CallEvent jarg1_);
public final static native long CallEvent_takeSessionOwnership(long jarg1, CallEvent jarg1_);
public final static native void delete_MessagingEvent(long jarg1);
public final static native int MessagingEvent_getType(long jarg1, MessagingEvent jarg1_);
public final static native long MessagingEvent_getSession(long jarg1, MessagingEvent jarg1_);
@ -68,6 +72,9 @@ class tinyWRAPJNI {
public final static native boolean CallSession_CallAudio(long jarg1, CallSession jarg1_, String jarg2);
public final static native boolean CallSession_CallAudioVideo(long jarg1, CallSession jarg1_, String jarg2);
public final static native boolean CallSession_CallVideo(long jarg1, CallSession jarg1_, String jarg2);
public final static native boolean CallSession_Accept(long jarg1, CallSession jarg1_);
public final static native boolean CallSession_Hold(long jarg1, CallSession jarg1_);
public final static native boolean CallSession_Resume(long jarg1, CallSession jarg1_);
public final static native boolean CallSession_Hangup(long jarg1, CallSession jarg1_);
public final static native long new_MessagingSession(long jarg1, SipStack jarg1_);
public final static native void delete_MessagingSession(long jarg1);
@ -99,7 +106,7 @@ class tinyWRAPJNI {
public final static native int ProxyAudioConsumer_pauseSwigExplicitProxyAudioConsumer(long jarg1, ProxyAudioConsumer jarg1_);
public final static native int ProxyAudioConsumer_stop(long jarg1, ProxyAudioConsumer jarg1_);
public final static native int ProxyAudioConsumer_stopSwigExplicitProxyAudioConsumer(long jarg1, ProxyAudioConsumer jarg1_);
public final static native void ProxyAudioConsumer_setActivate(long jarg1, ProxyAudioConsumer jarg1_);
public final static native void ProxyAudioConsumer_setActivate(long jarg1, ProxyAudioConsumer jarg1_, boolean jarg2);
public final static native long ProxyAudioConsumer_pull(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
public final static native boolean ProxyAudioConsumer_registerPlugin();
public final static native void ProxyAudioConsumer_director_connect(ProxyAudioConsumer obj, long cptr, boolean mem_own, boolean weak_global);
@ -114,7 +121,7 @@ class tinyWRAPJNI {
public final static native int ProxyAudioProducer_pauseSwigExplicitProxyAudioProducer(long jarg1, ProxyAudioProducer jarg1_);
public final static native int ProxyAudioProducer_stop(long jarg1, ProxyAudioProducer jarg1_);
public final static native int ProxyAudioProducer_stopSwigExplicitProxyAudioProducer(long jarg1, ProxyAudioProducer jarg1_);
public final static native void ProxyAudioProducer_setActivate(long jarg1, ProxyAudioProducer jarg1_);
public final static native void ProxyAudioProducer_setActivate(long jarg1, ProxyAudioProducer jarg1_, boolean jarg2);
public final static native int ProxyAudioProducer_push(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3);
public final static native boolean ProxyAudioProducer_registerPlugin();
public final static native void ProxyAudioProducer_director_connect(ProxyAudioProducer obj, long cptr, boolean mem_own, boolean weak_global);
@ -125,6 +132,8 @@ class tinyWRAPJNI {
public final static native int SipCallback_OnDialogEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, DialogEvent jarg2_);
public final static native int SipCallback_OnStackEvent(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_);
public final static native int SipCallback_OnStackEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_);
public final static native int SipCallback_OnCallEvent(long jarg1, SipCallback jarg1_, long jarg2, CallEvent jarg2_);
public final static native int SipCallback_OnCallEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, CallEvent jarg2_);
public final static native int SipCallback_OnMessagingEvent(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_);
public final static native int SipCallback_OnMessagingEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_);
public final static native int SipCallback_OnOptionsEvent(long jarg1, SipCallback jarg1_, long jarg2, OptionsEvent jarg2_);
@ -161,6 +170,7 @@ class tinyWRAPJNI {
public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_);
public final static native long SWIGDialogEventUpcast(long jarg1);
public final static native long SWIGStackEventUpcast(long jarg1);
public final static native long SWIGCallEventUpcast(long jarg1);
public final static native long SWIGMessagingEventUpcast(long jarg1);
public final static native long SWIGOptionsEventUpcast(long jarg1);
public final static native long SWIGPublicationEventUpcast(long jarg1);
@ -204,6 +214,9 @@ class tinyWRAPJNI {
public static int SwigDirector_SipCallback_OnStackEvent(SipCallback self, long e) {
return self.OnStackEvent((e == 0) ? null : new StackEvent(e, false));
}
public static int SwigDirector_SipCallback_OnCallEvent(SipCallback self, long e) {
return self.OnCallEvent((e == 0) ? null : new CallEvent(e, false));
}
public static int SwigDirector_SipCallback_OnMessagingEvent(SipCallback self, long e) {
return self.OnMessagingEvent((e == 0) ? null : new MessagingEvent(e, false));
}

View File

@ -403,7 +403,7 @@ namespace Swig {
namespace Swig {
static jclass jclass_tinyWRAPJNI = NULL;
static jmethodID director_methids[15];
static jmethodID director_methids[16];
}
#include "DDebug.h"
@ -779,7 +779,7 @@ int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) {
return c_result;
}
int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) {
int SwigDirector_SipCallback::OnCallEvent(CallEvent const *e) {
int c_result = SwigValueInit< int >() ;
jint jresult = 0 ;
JNIEnvWrapper swigjnienv(this) ;
@ -788,12 +788,36 @@ int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) {
jlong je = 0 ;
if (!swig_override[2]) {
return SipCallback::OnCallEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((CallEvent **)&je) = (CallEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[10], 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;
}
int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent 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[3]) {
return SipCallback::OnMessagingEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((MessagingEvent **)&je) = (MessagingEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[10], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[11], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -811,13 +835,13 @@ int SwigDirector_SipCallback::OnOptionsEvent(OptionsEvent const *e) {
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[3]) {
if (!swig_override[4]) {
return SipCallback::OnOptionsEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((OptionsEvent **)&je) = (OptionsEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[11], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[12], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -835,13 +859,13 @@ int SwigDirector_SipCallback::OnPublicationEvent(PublicationEvent const *e) {
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[4]) {
if (!swig_override[5]) {
return SipCallback::OnPublicationEvent(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[12], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[13], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -859,13 +883,13 @@ int SwigDirector_SipCallback::OnRegistrationEvent(RegistrationEvent const *e) {
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[5]) {
if (!swig_override[6]) {
return SipCallback::OnRegistrationEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((RegistrationEvent **)&je) = (RegistrationEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[13], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[14], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -883,13 +907,13 @@ int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) {
jobject swigjobj = (jobject) NULL ;
jlong je = 0 ;
if (!swig_override[6]) {
if (!swig_override[7]) {
return SipCallback::OnSubscriptionEvent(e);
}
swigjobj = swig_get_self(jenv);
if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) {
*((SubscriptionEvent **)&je) = (SubscriptionEvent *) e;
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[14], swigjobj, je);
jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[15], swigjobj, je);
if (jenv->ExceptionOccurred()) return c_result;
c_result = (int)jresult;
} else {
@ -911,6 +935,9 @@ void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself
{
"OnStackEvent", "(Lorg/doubango/tinyWRAP/StackEvent;)I", NULL
},
{
"OnCallEvent", "(Lorg/doubango/tinyWRAP/CallEvent;)I", NULL
},
{
"OnMessagingEvent", "(Lorg/doubango/tinyWRAP/MessagingEvent;)I", NULL
},
@ -937,7 +964,7 @@ void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself
baseclass = (jclass) jenv->NewGlobalRef(baseclass);
}
bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true);
for (int i = 0; i < 7; ++i) {
for (int i = 0; i < 8; ++i) {
if (!methods[i].base_methid) {
methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc);
if (!methods[i].base_methid) return;
@ -1389,6 +1416,61 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1StackEven
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1CallEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
CallEvent *arg1 = (CallEvent *) 0 ;
(void)jenv;
(void)jcls;
arg1 = *(CallEvent **)&jarg1;
delete arg1;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jint jresult = 0 ;
CallEvent *arg1 = (CallEvent *) 0 ;
tsip_invite_event_type_t result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallEvent **)&jarg1;
result = (tsip_invite_event_type_t)((CallEvent const *)arg1)->getType();
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
CallEvent *arg1 = (CallEvent *) 0 ;
CallSession *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallEvent **)&jarg1;
result = (CallSession *)((CallEvent const *)arg1)->getSession();
*(CallSession **)&jresult = result;
return jresult;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
CallEvent *arg1 = (CallEvent *) 0 ;
CallSession *result = 0 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallEvent **)&jarg1;
result = (CallSession *)((CallEvent const *)arg1)->takeSessionOwnership();
*(CallSession **)&jresult = result;
return jresult;
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
MessagingEvent *arg1 = (MessagingEvent *) 0 ;
@ -1952,6 +2034,51 @@ SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1Accept(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
CallSession *arg1 = (CallSession *) 0 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallSession **)&jarg1;
result = (bool)(arg1)->Accept();
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1Hold(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
CallSession *arg1 = (CallSession *) 0 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallSession **)&jarg1;
result = (bool)(arg1)->Hold();
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1Resume(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
CallSession *arg1 = (CallSession *) 0 ;
bool result;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(CallSession **)&jarg1;
result = (bool)(arg1)->Resume();
jresult = (jboolean)result;
return jresult;
}
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1Hangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jboolean jresult = 0 ;
CallSession *arg1 = (CallSession *) 0 ;
@ -2408,14 +2535,16 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsume
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setActivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setActivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
bool arg2 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(ProxyAudioConsumer **)&jarg1;
(arg1)->setActivate();
arg2 = jarg2 ? true : false;
(arg1)->setActivate(arg2);
}
@ -2626,14 +2755,16 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProduce
}
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setActivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setActivate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
bool arg2 ;
(void)jenv;
(void)jcls;
(void)jarg1_;
arg1 = *(ProxyAudioProducer **)&jarg1;
(arg1)->setActivate();
arg2 = jarg2 ? true : false;
(arg1)->setActivate(arg2);
}
@ -2784,6 +2915,42 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSt
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnCallEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
CallEvent *arg2 = (CallEvent *) 0 ;
int result;
(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(SipCallback **)&jarg1;
arg2 = *(CallEvent **)&jarg2;
result = (int)(arg1)->OnCallEvent((CallEvent const *)arg2);
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnCallEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
CallEvent *arg2 = (CallEvent *) 0 ;
int result;
(void)jenv;
(void)jcls;
(void)jarg1_;
(void)jarg2_;
arg1 = *(SipCallback **)&jarg1;
arg2 = *(CallEvent **)&jarg2;
result = (int)(arg1)->SipCallback::OnCallEvent((CallEvent const *)arg2);
jresult = (jint)result;
return jresult;
}
SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
jint jresult = 0 ;
SipCallback *arg1 = (SipCallback *) 0 ;
@ -3440,6 +3607,14 @@ SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGStackEventUp
return baseptr;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGCallEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0;
(void)jenv;
(void)jcls;
*(SipEvent **)&baseptr = *(CallEvent **)&jarg1;
return baseptr;
}
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SWIGMessagingEventUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) {
jlong baseptr = 0;
(void)jenv;
@ -3542,7 +3717,7 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1ini
static struct {
const char *method;
const char *signature;
} methods[15] = {
} methods[16] = {
{
"SwigDirector_ProxyAudioConsumer_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumer;III)I"
},
@ -3573,6 +3748,9 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1ini
{
"SwigDirector_SipCallback_OnStackEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
},
{
"SwigDirector_SipCallback_OnCallEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
},
{
"SwigDirector_SipCallback_OnMessagingEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I"
},

View File

@ -55,6 +55,7 @@ public:
virtual ~SwigDirector_SipCallback();
virtual int OnDialogEvent(DialogEvent const *e);
virtual int OnStackEvent(StackEvent const *e);
virtual int OnCallEvent(CallEvent const *e);
virtual int OnMessagingEvent(MessagingEvent const *e);
virtual int OnOptionsEvent(OptionsEvent const *e);
virtual int OnPublicationEvent(PublicationEvent const *e);
@ -62,10 +63,10 @@ public:
virtual int OnSubscriptionEvent(SubscriptionEvent const *e);
public:
bool swig_overrides(int n) {
return (n < 7 ? swig_override[n] : false);
return (n < 8 ? swig_override[n] : false);
}
protected:
bool swig_override[7];
bool swig_override[8];
};

View File

@ -0,0 +1,62 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.39
*
* 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_invite_event_type_t {
tsip_i_newcall,
tsip_i_request,
tsip_ao_request,
tsip_o_ect_ok,
tsip_o_ect_nok,
tsip_i_ect,
tsip_m_local_hold_ok,
tsip_m_local_hold_nok,
tsip_m_local_resume_ok,
tsip_m_local_resume_nok,
tsip_m_remote_hold,
tsip_m_remote_resume;
public final int swigValue() {
return swigValue;
}
public static tsip_invite_event_type_t swigToEnum(int swigValue) {
tsip_invite_event_type_t[] swigValues = tsip_invite_event_type_t.class.getEnumConstants();
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
return swigValues[swigValue];
for (tsip_invite_event_type_t swigEnum : swigValues)
if (swigEnum.swigValue == swigValue)
return swigEnum;
throw new IllegalArgumentException("No enum " + tsip_invite_event_type_t.class + " with value " + swigValue);
}
@SuppressWarnings("unused")
private tsip_invite_event_type_t() {
this.swigValue = SwigNext.next++;
}
@SuppressWarnings("unused")
private tsip_invite_event_type_t(int swigValue) {
this.swigValue = swigValue;
SwigNext.next = swigValue+1;
}
@SuppressWarnings("unused")
private tsip_invite_event_type_t(tsip_invite_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

@ -267,6 +267,40 @@ sub ACQUIRE {
}
############# Class : tinyWRAP::CallEvent ##############
package tinyWRAP::CallEvent;
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
@ISA = qw( tinyWRAP::SipEvent tinyWRAP );
%OWNER = ();
%ITERATORS = ();
sub DESTROY {
return unless $_[0]->isa('HASH');
my $self = tied(%{$_[0]});
return unless defined $self;
delete $ITERATORS{$self};
if (exists $OWNER{$self}) {
tinyWRAPc::delete_CallEvent($self);
delete $OWNER{$self};
}
}
*getType = *tinyWRAPc::CallEvent_getType;
*getSession = *tinyWRAPc::CallEvent_getSession;
*takeSessionOwnership = *tinyWRAPc::CallEvent_takeSessionOwnership;
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::MessagingEvent ##############
package tinyWRAP::MessagingEvent;
@ -507,6 +541,9 @@ sub DESTROY {
*CallAudio = *tinyWRAPc::CallSession_CallAudio;
*CallAudioVideo = *tinyWRAPc::CallSession_CallAudioVideo;
*CallVideo = *tinyWRAPc::CallSession_CallVideo;
*Accept = *tinyWRAPc::CallSession_Accept;
*Hold = *tinyWRAPc::CallSession_Hold;
*Resume = *tinyWRAPc::CallSession_Resume;
*Hangup = *tinyWRAPc::CallSession_Hangup;
sub DISOWN {
my $self = shift;
@ -830,6 +867,7 @@ sub DESTROY {
*OnDialogEvent = *tinyWRAPc::SipCallback_OnDialogEvent;
*OnStackEvent = *tinyWRAPc::SipCallback_OnStackEvent;
*OnCallEvent = *tinyWRAPc::SipCallback_OnCallEvent;
*OnMessagingEvent = *tinyWRAPc::SipCallback_OnMessagingEvent;
*OnOptionsEvent = *tinyWRAPc::SipCallback_OnOptionsEvent;
*OnPublicationEvent = *tinyWRAPc::SipCallback_OnPublicationEvent;
@ -983,4 +1021,16 @@ package tinyWRAP;
*tsip_ao_message = *tinyWRAPc::tsip_ao_message;
*tsip_i_options = *tinyWRAPc::tsip_i_options;
*tsip_ao_options = *tinyWRAPc::tsip_ao_options;
*tsip_i_newcall = *tinyWRAPc::tsip_i_newcall;
*tsip_i_request = *tinyWRAPc::tsip_i_request;
*tsip_ao_request = *tinyWRAPc::tsip_ao_request;
*tsip_o_ect_ok = *tinyWRAPc::tsip_o_ect_ok;
*tsip_o_ect_nok = *tinyWRAPc::tsip_o_ect_nok;
*tsip_i_ect = *tinyWRAPc::tsip_i_ect;
*tsip_m_local_hold_ok = *tinyWRAPc::tsip_m_local_hold_ok;
*tsip_m_local_hold_nok = *tinyWRAPc::tsip_m_local_hold_nok;
*tsip_m_local_resume_ok = *tinyWRAPc::tsip_m_local_resume_ok;
*tsip_m_local_resume_nok = *tinyWRAPc::tsip_m_local_resume_nok;
*tsip_m_remote_hold = *tinyWRAPc::tsip_m_remote_hold;
*tsip_m_remote_resume = *tinyWRAPc::tsip_m_remote_resume;
1;

View File

@ -1495,38 +1495,40 @@ SWIG_Perl_SetModule(swig_module_info *module) {
/* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_CallSession swig_types[0]
#define SWIGTYPE_p_DDebugCallback swig_types[1]
#define SWIGTYPE_p_DialogEvent swig_types[2]
#define SWIGTYPE_p_MessagingEvent swig_types[3]
#define SWIGTYPE_p_MessagingSession swig_types[4]
#define SWIGTYPE_p_OptionsEvent swig_types[5]
#define SWIGTYPE_p_OptionsSession swig_types[6]
#define SWIGTYPE_p_ProxyAudioConsumer swig_types[7]
#define SWIGTYPE_p_ProxyAudioProducer swig_types[8]
#define SWIGTYPE_p_PublicationEvent swig_types[9]
#define SWIGTYPE_p_PublicationSession swig_types[10]
#define SWIGTYPE_p_RegistrationEvent swig_types[11]
#define SWIGTYPE_p_RegistrationSession swig_types[12]
#define SWIGTYPE_p_SafeObject swig_types[13]
#define SWIGTYPE_p_SipCallback swig_types[14]
#define SWIGTYPE_p_SipEvent swig_types[15]
#define SWIGTYPE_p_SipMessage swig_types[16]
#define SWIGTYPE_p_SipSession swig_types[17]
#define SWIGTYPE_p_SipStack swig_types[18]
#define SWIGTYPE_p_SipUri swig_types[19]
#define SWIGTYPE_p_StackEvent swig_types[20]
#define SWIGTYPE_p_SubscriptionEvent swig_types[21]
#define SWIGTYPE_p_SubscriptionSession swig_types[22]
#define SWIGTYPE_p_char swig_types[23]
#define SWIGTYPE_p_tsip_event_type_e swig_types[24]
#define SWIGTYPE_p_tsip_message_event_type_e swig_types[25]
#define SWIGTYPE_p_tsip_options_event_type_e swig_types[26]
#define SWIGTYPE_p_tsip_publish_event_type_e swig_types[27]
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[28]
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[29]
static swig_type_info *swig_types[31];
static swig_module_info swig_module = {swig_types, 30, 0, 0, 0, 0};
#define SWIGTYPE_p_CallEvent swig_types[0]
#define SWIGTYPE_p_CallSession swig_types[1]
#define SWIGTYPE_p_DDebugCallback swig_types[2]
#define SWIGTYPE_p_DialogEvent swig_types[3]
#define SWIGTYPE_p_MessagingEvent swig_types[4]
#define SWIGTYPE_p_MessagingSession swig_types[5]
#define SWIGTYPE_p_OptionsEvent swig_types[6]
#define SWIGTYPE_p_OptionsSession swig_types[7]
#define SWIGTYPE_p_ProxyAudioConsumer swig_types[8]
#define SWIGTYPE_p_ProxyAudioProducer swig_types[9]
#define SWIGTYPE_p_PublicationEvent swig_types[10]
#define SWIGTYPE_p_PublicationSession swig_types[11]
#define SWIGTYPE_p_RegistrationEvent swig_types[12]
#define SWIGTYPE_p_RegistrationSession swig_types[13]
#define SWIGTYPE_p_SafeObject swig_types[14]
#define SWIGTYPE_p_SipCallback swig_types[15]
#define SWIGTYPE_p_SipEvent swig_types[16]
#define SWIGTYPE_p_SipMessage swig_types[17]
#define SWIGTYPE_p_SipSession swig_types[18]
#define SWIGTYPE_p_SipStack swig_types[19]
#define SWIGTYPE_p_SipUri swig_types[20]
#define SWIGTYPE_p_StackEvent swig_types[21]
#define SWIGTYPE_p_SubscriptionEvent swig_types[22]
#define SWIGTYPE_p_SubscriptionSession swig_types[23]
#define SWIGTYPE_p_char swig_types[24]
#define SWIGTYPE_p_tsip_event_type_e swig_types[25]
#define SWIGTYPE_p_tsip_invite_event_type_e swig_types[26]
#define SWIGTYPE_p_tsip_message_event_type_e swig_types[27]
#define SWIGTYPE_p_tsip_options_event_type_e swig_types[28]
#define SWIGTYPE_p_tsip_publish_event_type_e swig_types[29]
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[30]
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[31]
static swig_type_info *swig_types[33];
static swig_module_info swig_module = {swig_types, 32, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
@ -3021,6 +3023,117 @@ XS(_wrap_delete_StackEvent) {
}
XS(_wrap_delete_CallEvent) {
{
CallEvent *arg1 = (CallEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: delete_CallEvent(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallEvent, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CallEvent" "', argument " "1"" of type '" "CallEvent *""'");
}
arg1 = reinterpret_cast< CallEvent * >(argp1);
delete arg1;
ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_CallEvent_getType) {
{
CallEvent *arg1 = (CallEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
tsip_invite_event_type_t result;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: CallEvent_getType(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallEvent_getType" "', argument " "1"" of type '" "CallEvent const *""'");
}
arg1 = reinterpret_cast< CallEvent * >(argp1);
result = (tsip_invite_event_type_t)((CallEvent 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_CallEvent_getSession) {
{
CallEvent *arg1 = (CallEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
CallSession *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: CallEvent_getSession(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallEvent_getSession" "', argument " "1"" of type '" "CallEvent const *""'");
}
arg1 = reinterpret_cast< CallEvent * >(argp1);
result = (CallSession *)((CallEvent const *)arg1)->getSession();
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallSession, 0 | SWIG_SHADOW); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_CallEvent_takeSessionOwnership) {
{
CallEvent *arg1 = (CallEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
CallSession *result = 0 ;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: CallEvent_takeSessionOwnership(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallEvent_takeSessionOwnership" "', argument " "1"" of type '" "CallEvent const *""'");
}
arg1 = reinterpret_cast< CallEvent * >(argp1);
result = (CallSession *)((CallEvent const *)arg1)->takeSessionOwnership();
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_delete_MessagingEvent) {
{
MessagingEvent *arg1 = (MessagingEvent *) 0 ;
@ -4204,6 +4317,90 @@ XS(_wrap_CallSession_CallVideo) {
}
XS(_wrap_CallSession_Accept) {
{
CallSession *arg1 = (CallSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: CallSession_Accept(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_Accept" "', argument " "1"" of type '" "CallSession *""'");
}
arg1 = reinterpret_cast< CallSession * >(argp1);
result = (bool)(arg1)->Accept();
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_CallSession_Hold) {
{
CallSession *arg1 = (CallSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: CallSession_Hold(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_Hold" "', argument " "1"" of type '" "CallSession *""'");
}
arg1 = reinterpret_cast< CallSession * >(argp1);
result = (bool)(arg1)->Hold();
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_CallSession_Resume) {
{
CallSession *arg1 = (CallSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
bool result;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: CallSession_Resume(self);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_Resume" "', argument " "1"" of type '" "CallSession *""'");
}
arg1 = reinterpret_cast< CallSession * >(argp1);
result = (bool)(arg1)->Resume();
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
XS(_wrap_CallSession_Hangup) {
{
CallSession *arg1 = (CallSession *) 0 ;
@ -5013,25 +5210,35 @@ XS(_wrap_ProxyAudioConsumer_stop) {
XS(_wrap_ProxyAudioConsumer_setActivate) {
{
ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
int argvi = 0;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: ProxyAudioConsumer_setActivate(self);");
if ((items < 2) || (items > 2)) {
SWIG_croak("Usage: ProxyAudioConsumer_setActivate(self,enabled);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setActivate" "', argument " "1"" of type '" "ProxyAudioConsumer *""'");
}
arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1);
(arg1)->setActivate();
ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumer_setActivate" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
(arg1)->setActivate(arg2);
ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
@ -5291,25 +5498,35 @@ XS(_wrap_ProxyAudioProducer_stop) {
XS(_wrap_ProxyAudioProducer_setActivate) {
{
ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
int argvi = 0;
dXSARGS;
if ((items < 1) || (items > 1)) {
SWIG_croak("Usage: ProxyAudioProducer_setActivate(self);");
if ((items < 2) || (items > 2)) {
SWIG_croak("Usage: ProxyAudioProducer_setActivate(self,enabled);");
}
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setActivate" "', argument " "1"" of type '" "ProxyAudioProducer *""'");
}
arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1);
(arg1)->setActivate();
ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioProducer_setActivate" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
(arg1)->setActivate(arg2);
ST(argvi) = sv_newmortal();
XSRETURN(argvi);
fail:
SWIG_croak_null();
}
}
@ -5500,6 +5717,44 @@ XS(_wrap_SipCallback_OnStackEvent) {
}
XS(_wrap_SipCallback_OnCallEvent) {
{
SipCallback *arg1 = (SipCallback *) 0 ;
CallEvent *arg2 = (CallEvent *) 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_OnCallEvent(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_OnCallEvent" "', argument " "1"" of type '" "SipCallback *""'");
}
arg1 = reinterpret_cast< SipCallback * >(argp1);
res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CallEvent, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnCallEvent" "', argument " "2"" of type '" "CallEvent const *""'");
}
arg2 = reinterpret_cast< CallEvent * >(argp2);
result = (int)(arg1)->OnCallEvent((CallEvent 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_SipCallback_OnMessagingEvent) {
{
SipCallback *arg1 = (SipCallback *) 0 ;
@ -6544,6 +6799,9 @@ static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(
static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SafeObject *) ((SipStack *) x));
}
static void *_p_CallEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((CallEvent *) x));
}
static void *_p_OptionsEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((OptionsEvent *) x));
}
@ -6565,6 +6823,7 @@ static void *_p_StackEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory))
static void *_p_MessagingEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((MessagingEvent *) x));
}
static swig_type_info _swigt__p_CallEvent = {"_p_CallEvent", "CallEvent *", 0, 0, (void*)"tinyWRAP::CallEvent", 0};
static swig_type_info _swigt__p_CallSession = {"_p_CallSession", "CallSession *", 0, 0, (void*)"tinyWRAP::CallSession", 0};
static swig_type_info _swigt__p_DDebugCallback = {"_p_DDebugCallback", "DDebugCallback *", 0, 0, (void*)"tinyWRAP::DDebugCallback", 0};
static swig_type_info _swigt__p_DialogEvent = {"_p_DialogEvent", "DialogEvent *", 0, 0, (void*)"tinyWRAP::DialogEvent", 0};
@ -6590,6 +6849,7 @@ 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_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_invite_event_type_e = {"_p_tsip_invite_event_type_e", "enum tsip_invite_event_type_e *|tsip_invite_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_message_event_type_e = {"_p_tsip_message_event_type_e", "enum tsip_message_event_type_e *|tsip_message_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_options_event_type_e = {"_p_tsip_options_event_type_e", "enum tsip_options_event_type_e *|tsip_options_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};
@ -6597,6 +6857,7 @@ static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_
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 *swig_type_initial[] = {
&_swigt__p_CallEvent,
&_swigt__p_CallSession,
&_swigt__p_DDebugCallback,
&_swigt__p_DialogEvent,
@ -6622,6 +6883,7 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_SubscriptionSession,
&_swigt__p_char,
&_swigt__p_tsip_event_type_e,
&_swigt__p_tsip_invite_event_type_e,
&_swigt__p_tsip_message_event_type_e,
&_swigt__p_tsip_options_event_type_e,
&_swigt__p_tsip_publish_event_type_e,
@ -6629,6 +6891,7 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_tsip_subscribe_event_type_e,
};
static swig_cast_info _swigc__p_CallEvent[] = { {&_swigt__p_CallEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CallSession[] = { {&_swigt__p_CallSession, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DDebugCallback[] = { {&_swigt__p_DDebugCallback, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DialogEvent[] = { {&_swigt__p_DialogEvent, 0, 0, 0},{0, 0, 0, 0}};
@ -6644,7 +6907,7 @@ static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_Registratio
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_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_OptionsEvent, _p_OptionsEventTo_p_SipEvent, 0, 0}, {&_swigt__p_DialogEvent, _p_DialogEventTo_p_SipEvent, 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}, {&_swigt__p_StackEvent, _p_StackEventTo_p_SipEvent, 0, 0}, {&_swigt__p_MessagingEvent, _p_MessagingEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_CallEvent, _p_CallEventTo_p_SipEvent, 0, 0}, {&_swigt__p_OptionsEvent, _p_OptionsEventTo_p_SipEvent, 0, 0}, {&_swigt__p_DialogEvent, _p_DialogEventTo_p_SipEvent, 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}, {&_swigt__p_StackEvent, _p_StackEventTo_p_SipEvent, 0, 0}, {&_swigt__p_MessagingEvent, _p_MessagingEventTo_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_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_CallSession, _p_CallSessionTo_p_SipSession, 0, 0}, {&_swigt__p_MessagingSession, _p_MessagingSessionTo_p_SipSession, 0, 0}, {&_swigt__p_OptionsSession, _p_OptionsSessionTo_p_SipSession, 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}};
@ -6654,6 +6917,7 @@ static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_Subscriptio
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_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_invite_event_type_e[] = { {&_swigt__p_tsip_invite_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_message_event_type_e[] = { {&_swigt__p_tsip_message_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_options_event_type_e[] = { {&_swigt__p_tsip_options_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}};
@ -6661,6 +6925,7 @@ static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_ts
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 *swig_cast_initial[] = {
_swigc__p_CallEvent,
_swigc__p_CallSession,
_swigc__p_DDebugCallback,
_swigc__p_DialogEvent,
@ -6686,6 +6951,7 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_SubscriptionSession,
_swigc__p_char,
_swigc__p_tsip_event_type_e,
_swigc__p_tsip_invite_event_type_e,
_swigc__p_tsip_message_event_type_e,
_swigc__p_tsip_options_event_type_e,
_swigc__p_tsip_publish_event_type_e,
@ -6728,6 +6994,10 @@ static swig_command_info swig_commands[] = {
{"tinyWRAPc::SipEvent_getSipMessage", _wrap_SipEvent_getSipMessage},
{"tinyWRAPc::delete_DialogEvent", _wrap_delete_DialogEvent},
{"tinyWRAPc::delete_StackEvent", _wrap_delete_StackEvent},
{"tinyWRAPc::delete_CallEvent", _wrap_delete_CallEvent},
{"tinyWRAPc::CallEvent_getType", _wrap_CallEvent_getType},
{"tinyWRAPc::CallEvent_getSession", _wrap_CallEvent_getSession},
{"tinyWRAPc::CallEvent_takeSessionOwnership", _wrap_CallEvent_takeSessionOwnership},
{"tinyWRAPc::delete_MessagingEvent", _wrap_delete_MessagingEvent},
{"tinyWRAPc::MessagingEvent_getType", _wrap_MessagingEvent_getType},
{"tinyWRAPc::MessagingEvent_getSession", _wrap_MessagingEvent_getSession},
@ -6761,6 +7031,9 @@ static swig_command_info swig_commands[] = {
{"tinyWRAPc::CallSession_CallAudio", _wrap_CallSession_CallAudio},
{"tinyWRAPc::CallSession_CallAudioVideo", _wrap_CallSession_CallAudioVideo},
{"tinyWRAPc::CallSession_CallVideo", _wrap_CallSession_CallVideo},
{"tinyWRAPc::CallSession_Accept", _wrap_CallSession_Accept},
{"tinyWRAPc::CallSession_Hold", _wrap_CallSession_Hold},
{"tinyWRAPc::CallSession_Resume", _wrap_CallSession_Resume},
{"tinyWRAPc::CallSession_Hangup", _wrap_CallSession_Hangup},
{"tinyWRAPc::new_MessagingSession", _wrap_new_MessagingSession},
{"tinyWRAPc::delete_MessagingSession", _wrap_delete_MessagingSession},
@ -6804,6 +7077,7 @@ static swig_command_info swig_commands[] = {
{"tinyWRAPc::delete_SipCallback", _wrap_delete_SipCallback},
{"tinyWRAPc::SipCallback_OnDialogEvent", _wrap_SipCallback_OnDialogEvent},
{"tinyWRAPc::SipCallback_OnStackEvent", _wrap_SipCallback_OnStackEvent},
{"tinyWRAPc::SipCallback_OnCallEvent", _wrap_SipCallback_OnCallEvent},
{"tinyWRAPc::SipCallback_OnMessagingEvent", _wrap_SipCallback_OnMessagingEvent},
{"tinyWRAPc::SipCallback_OnOptionsEvent", _wrap_SipCallback_OnOptionsEvent},
{"tinyWRAPc::SipCallback_OnPublicationEvent", _wrap_SipCallback_OnPublicationEvent},
@ -7131,6 +7405,7 @@ XS(SWIG_init) {
SWIG_TypeClientData(SWIGTYPE_p_SipEvent, (void*) "tinyWRAP::SipEvent");
SWIG_TypeClientData(SWIGTYPE_p_DialogEvent, (void*) "tinyWRAP::DialogEvent");
SWIG_TypeClientData(SWIGTYPE_p_StackEvent, (void*) "tinyWRAP::StackEvent");
SWIG_TypeClientData(SWIGTYPE_p_CallEvent, (void*) "tinyWRAP::CallEvent");
SWIG_TypeClientData(SWIGTYPE_p_MessagingEvent, (void*) "tinyWRAP::MessagingEvent");
SWIG_TypeClientData(SWIGTYPE_p_OptionsEvent, (void*) "tinyWRAP::OptionsEvent");
SWIG_TypeClientData(SWIGTYPE_p_PublicationEvent, (void*) "tinyWRAP::PublicationEvent");
@ -7343,6 +7618,66 @@ XS(SWIG_init) {
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_options)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_newcall", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_newcall)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_request", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_request)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_request", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_request)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_ect_ok", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_ect_ok)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_ect_nok", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_ect_nok)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_ect", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_ect)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_m_local_hold_ok", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_local_hold_ok)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_m_local_hold_nok", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_local_hold_nok)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_m_local_resume_ok", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_local_resume_ok)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_m_local_resume_nok", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_local_resume_nok)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_m_remote_hold", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_remote_hold)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
/*@SWIG:/usr/local/share/swig/1.3.39/perl5/perltypemaps.swg,65,%set_constant@*/ do {
SV *sv = get_sv((char*) SWIG_prefix "tsip_m_remote_resume", TRUE | 0x2 | GV_ADDMULTI);
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_remote_resume)));
SvREADONLY_on(sv);
} while(0) /*@SWIG@*/;
ST(0) = &PL_sv_yes;
XSRETURN(1);
}

View File

@ -165,6 +165,23 @@ class StackEvent(SipEvent):
StackEvent_swigregister = _tinyWRAP.StackEvent_swigregister
StackEvent_swigregister(StackEvent)
class CallEvent(SipEvent):
__swig_setmethods__ = {}
for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
__setattr__ = lambda self, name, value: _swig_setattr(self, CallEvent, name, value)
__swig_getmethods__ = {}
for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
__getattr__ = lambda self, name: _swig_getattr(self, CallEvent, name)
def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
__repr__ = _swig_repr
__swig_destroy__ = _tinyWRAP.delete_CallEvent
__del__ = lambda self : None;
def getType(self): return _tinyWRAP.CallEvent_getType(self)
def getSession(self): return _tinyWRAP.CallEvent_getSession(self)
def takeSessionOwnership(self): return _tinyWRAP.CallEvent_takeSessionOwnership(self)
CallEvent_swigregister = _tinyWRAP.CallEvent_swigregister
CallEvent_swigregister(CallEvent)
class MessagingEvent(SipEvent):
__swig_setmethods__ = {}
for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
@ -288,6 +305,9 @@ class CallSession(SipSession):
def CallAudio(self, *args): return _tinyWRAP.CallSession_CallAudio(self, *args)
def CallAudioVideo(self, *args): return _tinyWRAP.CallSession_CallAudioVideo(self, *args)
def CallVideo(self, *args): return _tinyWRAP.CallSession_CallVideo(self, *args)
def Accept(self): return _tinyWRAP.CallSession_Accept(self)
def Hold(self): return _tinyWRAP.CallSession_Hold(self)
def Resume(self): return _tinyWRAP.CallSession_Resume(self)
def Hangup(self): return _tinyWRAP.CallSession_Hangup(self)
CallSession_swigregister = _tinyWRAP.CallSession_swigregister
CallSession_swigregister(CallSession)
@ -407,7 +427,7 @@ class ProxyAudioConsumer(_object):
def start(self): return _tinyWRAP.ProxyAudioConsumer_start(self)
def pause(self): return _tinyWRAP.ProxyAudioConsumer_pause(self)
def stop(self): return _tinyWRAP.ProxyAudioConsumer_stop(self)
def setActivate(self): return _tinyWRAP.ProxyAudioConsumer_setActivate(self)
def setActivate(self, *args): return _tinyWRAP.ProxyAudioConsumer_setActivate(self, *args)
def pull(self, *args): return _tinyWRAP.ProxyAudioConsumer_pull(self, *args)
__swig_getmethods__["registerPlugin"] = lambda x: _tinyWRAP.ProxyAudioConsumer_registerPlugin
if _newclass:registerPlugin = staticmethod(_tinyWRAP.ProxyAudioConsumer_registerPlugin)
@ -442,7 +462,7 @@ class ProxyAudioProducer(_object):
def start(self): return _tinyWRAP.ProxyAudioProducer_start(self)
def pause(self): return _tinyWRAP.ProxyAudioProducer_pause(self)
def stop(self): return _tinyWRAP.ProxyAudioProducer_stop(self)
def setActivate(self): return _tinyWRAP.ProxyAudioProducer_setActivate(self)
def setActivate(self, *args): return _tinyWRAP.ProxyAudioProducer_setActivate(self, *args)
def push(self, *args): return _tinyWRAP.ProxyAudioProducer_push(self, *args)
__swig_getmethods__["registerPlugin"] = lambda x: _tinyWRAP.ProxyAudioProducer_registerPlugin
if _newclass:registerPlugin = staticmethod(_tinyWRAP.ProxyAudioProducer_registerPlugin)
@ -475,6 +495,7 @@ class SipCallback(_object):
__del__ = lambda self : None;
def OnDialogEvent(self, *args): return _tinyWRAP.SipCallback_OnDialogEvent(self, *args)
def OnStackEvent(self, *args): return _tinyWRAP.SipCallback_OnStackEvent(self, *args)
def OnCallEvent(self, *args): return _tinyWRAP.SipCallback_OnCallEvent(self, *args)
def OnMessagingEvent(self, *args): return _tinyWRAP.SipCallback_OnMessagingEvent(self, *args)
def OnOptionsEvent(self, *args): return _tinyWRAP.SipCallback_OnOptionsEvent(self, *args)
def OnPublicationEvent(self, *args): return _tinyWRAP.SipCallback_OnPublicationEvent(self, *args)
@ -576,5 +597,17 @@ tsip_i_message = _tinyWRAP.tsip_i_message
tsip_ao_message = _tinyWRAP.tsip_ao_message
tsip_i_options = _tinyWRAP.tsip_i_options
tsip_ao_options = _tinyWRAP.tsip_ao_options
tsip_i_newcall = _tinyWRAP.tsip_i_newcall
tsip_i_request = _tinyWRAP.tsip_i_request
tsip_ao_request = _tinyWRAP.tsip_ao_request
tsip_o_ect_ok = _tinyWRAP.tsip_o_ect_ok
tsip_o_ect_nok = _tinyWRAP.tsip_o_ect_nok
tsip_i_ect = _tinyWRAP.tsip_i_ect
tsip_m_local_hold_ok = _tinyWRAP.tsip_m_local_hold_ok
tsip_m_local_hold_nok = _tinyWRAP.tsip_m_local_hold_nok
tsip_m_local_resume_ok = _tinyWRAP.tsip_m_local_resume_ok
tsip_m_local_resume_nok = _tinyWRAP.tsip_m_local_resume_nok
tsip_m_remote_hold = _tinyWRAP.tsip_m_remote_hold
tsip_m_remote_resume = _tinyWRAP.tsip_m_remote_resume

View File

@ -3121,38 +3121,40 @@ namespace Swig {
/* -------- TYPES TABLE (BEGIN) -------- */
#define SWIGTYPE_p_CallSession swig_types[0]
#define SWIGTYPE_p_DDebugCallback swig_types[1]
#define SWIGTYPE_p_DialogEvent swig_types[2]
#define SWIGTYPE_p_MessagingEvent swig_types[3]
#define SWIGTYPE_p_MessagingSession swig_types[4]
#define SWIGTYPE_p_OptionsEvent swig_types[5]
#define SWIGTYPE_p_OptionsSession swig_types[6]
#define SWIGTYPE_p_ProxyAudioConsumer swig_types[7]
#define SWIGTYPE_p_ProxyAudioProducer swig_types[8]
#define SWIGTYPE_p_PublicationEvent swig_types[9]
#define SWIGTYPE_p_PublicationSession swig_types[10]
#define SWIGTYPE_p_RegistrationEvent swig_types[11]
#define SWIGTYPE_p_RegistrationSession swig_types[12]
#define SWIGTYPE_p_SafeObject swig_types[13]
#define SWIGTYPE_p_SipCallback swig_types[14]
#define SWIGTYPE_p_SipEvent swig_types[15]
#define SWIGTYPE_p_SipMessage swig_types[16]
#define SWIGTYPE_p_SipSession swig_types[17]
#define SWIGTYPE_p_SipStack swig_types[18]
#define SWIGTYPE_p_SipUri swig_types[19]
#define SWIGTYPE_p_StackEvent swig_types[20]
#define SWIGTYPE_p_SubscriptionEvent swig_types[21]
#define SWIGTYPE_p_SubscriptionSession swig_types[22]
#define SWIGTYPE_p_char swig_types[23]
#define SWIGTYPE_p_tsip_event_type_e swig_types[24]
#define SWIGTYPE_p_tsip_message_event_type_e swig_types[25]
#define SWIGTYPE_p_tsip_options_event_type_e swig_types[26]
#define SWIGTYPE_p_tsip_publish_event_type_e swig_types[27]
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[28]
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[29]
static swig_type_info *swig_types[31];
static swig_module_info swig_module = {swig_types, 30, 0, 0, 0, 0};
#define SWIGTYPE_p_CallEvent swig_types[0]
#define SWIGTYPE_p_CallSession swig_types[1]
#define SWIGTYPE_p_DDebugCallback swig_types[2]
#define SWIGTYPE_p_DialogEvent swig_types[3]
#define SWIGTYPE_p_MessagingEvent swig_types[4]
#define SWIGTYPE_p_MessagingSession swig_types[5]
#define SWIGTYPE_p_OptionsEvent swig_types[6]
#define SWIGTYPE_p_OptionsSession swig_types[7]
#define SWIGTYPE_p_ProxyAudioConsumer swig_types[8]
#define SWIGTYPE_p_ProxyAudioProducer swig_types[9]
#define SWIGTYPE_p_PublicationEvent swig_types[10]
#define SWIGTYPE_p_PublicationSession swig_types[11]
#define SWIGTYPE_p_RegistrationEvent swig_types[12]
#define SWIGTYPE_p_RegistrationSession swig_types[13]
#define SWIGTYPE_p_SafeObject swig_types[14]
#define SWIGTYPE_p_SipCallback swig_types[15]
#define SWIGTYPE_p_SipEvent swig_types[16]
#define SWIGTYPE_p_SipMessage swig_types[17]
#define SWIGTYPE_p_SipSession swig_types[18]
#define SWIGTYPE_p_SipStack swig_types[19]
#define SWIGTYPE_p_SipUri swig_types[20]
#define SWIGTYPE_p_StackEvent swig_types[21]
#define SWIGTYPE_p_SubscriptionEvent swig_types[22]
#define SWIGTYPE_p_SubscriptionSession swig_types[23]
#define SWIGTYPE_p_char swig_types[24]
#define SWIGTYPE_p_tsip_event_type_e swig_types[25]
#define SWIGTYPE_p_tsip_invite_event_type_e swig_types[26]
#define SWIGTYPE_p_tsip_message_event_type_e swig_types[27]
#define SWIGTYPE_p_tsip_options_event_type_e swig_types[28]
#define SWIGTYPE_p_tsip_publish_event_type_e swig_types[29]
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[30]
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[31]
static swig_type_info *swig_types[33];
static swig_module_info swig_module = {swig_types, 32, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
@ -3969,6 +3971,37 @@ int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) {
}
int SwigDirector_SipCallback::OnCallEvent(CallEvent const *e) {
int c_result;
swig::SwigVar_PyObject obj0;
obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_CallEvent, 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 = "OnCallEvent";
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 *)"OnCallEvent", (char *)"(O)" ,(PyObject *)obj0);
#endif
if (result == NULL) {
PyObject *error = PyErr_Occurred();
if (error != NULL) {
Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnCallEvent'");
}
}
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;
}
int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) {
int c_result;
swig::SwigVar_PyObject obj0;
@ -3977,7 +4010,7 @@ int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) {
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 size_t swig_method_index = 3;
const char * const swig_method_name = "OnMessagingEvent";
PyObject* method = swig_get_method(swig_method_index, swig_method_name);
swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0);
@ -4008,7 +4041,7 @@ int SwigDirector_SipCallback::OnOptionsEvent(OptionsEvent const *e) {
Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__.");
}
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
const size_t swig_method_index = 3;
const size_t swig_method_index = 4;
const char * const swig_method_name = "OnOptionsEvent";
PyObject* method = swig_get_method(swig_method_index, swig_method_name);
swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0);
@ -4039,7 +4072,7 @@ int SwigDirector_SipCallback::OnPublicationEvent(PublicationEvent const *e) {
Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__.");
}
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
const size_t swig_method_index = 4;
const size_t swig_method_index = 5;
const char * const swig_method_name = "OnPublicationEvent";
PyObject* method = swig_get_method(swig_method_index, swig_method_name);
swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0);
@ -4070,7 +4103,7 @@ int SwigDirector_SipCallback::OnRegistrationEvent(RegistrationEvent const *e) {
Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__.");
}
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
const size_t swig_method_index = 5;
const size_t swig_method_index = 6;
const char * const swig_method_name = "OnRegistrationEvent";
PyObject* method = swig_get_method(swig_method_index, swig_method_name);
swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0);
@ -4101,7 +4134,7 @@ int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) {
Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__.");
}
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
const size_t swig_method_index = 6;
const size_t swig_method_index = 7;
const char * const swig_method_name = "OnSubscriptionEvent";
PyObject* method = swig_get_method(swig_method_index, swig_method_name);
swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0);
@ -5008,6 +5041,100 @@ SWIGINTERN PyObject *StackEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyO
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_delete_CallEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CallEvent *arg1 = (CallEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:delete_CallEvent",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallEvent, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CallEvent" "', argument " "1"" of type '" "CallEvent *""'");
}
arg1 = reinterpret_cast< CallEvent * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_CallEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CallEvent *arg1 = (CallEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
tsip_invite_event_type_t result;
if (!PyArg_ParseTuple(args,(char *)"O:CallEvent_getType",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallEvent_getType" "', argument " "1"" of type '" "CallEvent const *""'");
}
arg1 = reinterpret_cast< CallEvent * >(argp1);
result = (tsip_invite_event_type_t)((CallEvent const *)arg1)->getType();
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_CallEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CallEvent *arg1 = (CallEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
CallSession *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CallEvent_getSession",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallEvent_getSession" "', argument " "1"" of type '" "CallEvent const *""'");
}
arg1 = reinterpret_cast< CallEvent * >(argp1);
result = (CallSession *)((CallEvent const *)arg1)->getSession();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallSession, 0 | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_CallEvent_takeSessionOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CallEvent *arg1 = (CallEvent *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
CallSession *result = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:CallEvent_takeSessionOwnership",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallEvent, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallEvent_takeSessionOwnership" "', argument " "1"" of type '" "CallEvent const *""'");
}
arg1 = reinterpret_cast< CallEvent * >(argp1);
result = (CallSession *)((CallEvent const *)arg1)->takeSessionOwnership();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallSession, SWIG_POINTER_OWN | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *CallEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_CallEvent, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *_wrap_delete_MessagingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
MessagingEvent *arg1 = (MessagingEvent *) 0 ;
@ -6003,6 +6130,72 @@ fail:
}
SWIGINTERN PyObject *_wrap_CallSession_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CallSession *arg1 = (CallSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
bool result;
if (!PyArg_ParseTuple(args,(char *)"O:CallSession_Accept",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_Accept" "', argument " "1"" of type '" "CallSession *""'");
}
arg1 = reinterpret_cast< CallSession * >(argp1);
result = (bool)(arg1)->Accept();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_CallSession_Hold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CallSession *arg1 = (CallSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
bool result;
if (!PyArg_ParseTuple(args,(char *)"O:CallSession_Hold",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_Hold" "', argument " "1"" of type '" "CallSession *""'");
}
arg1 = reinterpret_cast< CallSession * >(argp1);
result = (bool)(arg1)->Hold();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_CallSession_Resume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CallSession *arg1 = (CallSession *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
bool result;
if (!PyArg_ParseTuple(args,(char *)"O:CallSession_Resume",&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_Resume" "', argument " "1"" of type '" "CallSession *""'");
}
arg1 = reinterpret_cast< CallSession * >(argp1);
result = (bool)(arg1)->Resume();
resultobj = SWIG_From_bool(static_cast< bool >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_CallSession_Hangup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CallSession *arg1 = (CallSession *) 0 ;
@ -6743,17 +6936,26 @@ fail:
SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_setActivate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioConsumer_setActivate",&obj0)) SWIG_fail;
if (!PyArg_ParseTuple(args,(char *)"OO:ProxyAudioConsumer_setActivate",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setActivate" "', argument " "1"" of type '" "ProxyAudioConsumer *""'");
}
arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1);
(arg1)->setActivate();
ecode2 = SWIG_AsVal_bool(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumer_setActivate" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
(arg1)->setActivate(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@ -7053,17 +7255,26 @@ fail:
SWIGINTERN PyObject *_wrap_ProxyAudioProducer_setActivate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioProducer_setActivate",&obj0)) SWIG_fail;
if (!PyArg_ParseTuple(args,(char *)"OO:ProxyAudioProducer_setActivate",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setActivate" "', argument " "1"" of type '" "ProxyAudioProducer *""'");
}
arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1);
(arg1)->setActivate();
ecode2 = SWIG_AsVal_bool(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioProducer_setActivate" "', argument " "2"" of type '" "bool""'");
}
arg2 = static_cast< bool >(val2);
(arg1)->setActivate(arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@ -7283,6 +7494,49 @@ fail:
}
SWIGINTERN PyObject *_wrap_SipCallback_OnCallEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
SipCallback *arg1 = (SipCallback *) 0 ;
CallEvent *arg2 = (CallEvent *) 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_OnCallEvent",&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_OnCallEvent" "', argument " "1"" of type '" "SipCallback *""'");
}
arg1 = reinterpret_cast< SipCallback * >(argp1);
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CallEvent, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnCallEvent" "', argument " "2"" of type '" "CallEvent const *""'");
}
arg2 = reinterpret_cast< CallEvent * >(argp2);
director = SWIG_DIRECTOR_CAST(arg1);
upcall = (director && (director->swig_get_self()==obj0));
try {
if (upcall) {
result = (int)(arg1)->SipCallback::OnCallEvent((CallEvent const *)arg2);
} else {
result = (int)(arg1)->OnCallEvent((CallEvent const *)arg2);
}
} catch (Swig::DirectorException&) {
SWIG_fail;
}
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_SipCallback_OnMessagingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
SipCallback *arg1 = (SipCallback *) 0 ;
@ -8284,6 +8538,11 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"DialogEvent_swigregister", DialogEvent_swigregister, METH_VARARGS, NULL},
{ (char *)"delete_StackEvent", _wrap_delete_StackEvent, METH_VARARGS, NULL},
{ (char *)"StackEvent_swigregister", StackEvent_swigregister, METH_VARARGS, NULL},
{ (char *)"delete_CallEvent", _wrap_delete_CallEvent, METH_VARARGS, NULL},
{ (char *)"CallEvent_getType", _wrap_CallEvent_getType, METH_VARARGS, NULL},
{ (char *)"CallEvent_getSession", _wrap_CallEvent_getSession, METH_VARARGS, NULL},
{ (char *)"CallEvent_takeSessionOwnership", _wrap_CallEvent_takeSessionOwnership, METH_VARARGS, NULL},
{ (char *)"CallEvent_swigregister", CallEvent_swigregister, METH_VARARGS, NULL},
{ (char *)"delete_MessagingEvent", _wrap_delete_MessagingEvent, METH_VARARGS, NULL},
{ (char *)"MessagingEvent_getType", _wrap_MessagingEvent_getType, METH_VARARGS, NULL},
{ (char *)"MessagingEvent_getSession", _wrap_MessagingEvent_getSession, METH_VARARGS, NULL},
@ -8323,6 +8582,9 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"CallSession_CallAudio", _wrap_CallSession_CallAudio, METH_VARARGS, NULL},
{ (char *)"CallSession_CallAudioVideo", _wrap_CallSession_CallAudioVideo, METH_VARARGS, NULL},
{ (char *)"CallSession_CallVideo", _wrap_CallSession_CallVideo, METH_VARARGS, NULL},
{ (char *)"CallSession_Accept", _wrap_CallSession_Accept, METH_VARARGS, NULL},
{ (char *)"CallSession_Hold", _wrap_CallSession_Hold, METH_VARARGS, NULL},
{ (char *)"CallSession_Resume", _wrap_CallSession_Resume, METH_VARARGS, NULL},
{ (char *)"CallSession_Hangup", _wrap_CallSession_Hangup, METH_VARARGS, NULL},
{ (char *)"CallSession_swigregister", CallSession_swigregister, METH_VARARGS, NULL},
{ (char *)"new_MessagingSession", _wrap_new_MessagingSession, METH_VARARGS, NULL},
@ -8376,6 +8638,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"delete_SipCallback", _wrap_delete_SipCallback, METH_VARARGS, NULL},
{ (char *)"SipCallback_OnDialogEvent", _wrap_SipCallback_OnDialogEvent, METH_VARARGS, NULL},
{ (char *)"SipCallback_OnStackEvent", _wrap_SipCallback_OnStackEvent, METH_VARARGS, NULL},
{ (char *)"SipCallback_OnCallEvent", _wrap_SipCallback_OnCallEvent, METH_VARARGS, NULL},
{ (char *)"SipCallback_OnMessagingEvent", _wrap_SipCallback_OnMessagingEvent, METH_VARARGS, NULL},
{ (char *)"SipCallback_OnOptionsEvent", _wrap_SipCallback_OnOptionsEvent, METH_VARARGS, NULL},
{ (char *)"SipCallback_OnPublicationEvent", _wrap_SipCallback_OnPublicationEvent, METH_VARARGS, NULL},
@ -8434,6 +8697,9 @@ static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(
static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SafeObject *) ((SipStack *) x));
}
static void *_p_CallEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((CallEvent *) x));
}
static void *_p_OptionsEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((OptionsEvent *) x));
}
@ -8455,6 +8721,7 @@ static void *_p_StackEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory))
static void *_p_MessagingEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
return (void *)((SipEvent *) ((MessagingEvent *) x));
}
static swig_type_info _swigt__p_CallEvent = {"_p_CallEvent", "CallEvent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_CallSession = {"_p_CallSession", "CallSession *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DDebugCallback = {"_p_DDebugCallback", "DDebugCallback *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_DialogEvent = {"_p_DialogEvent", "DialogEvent *", 0, 0, (void*)0, 0};
@ -8480,6 +8747,7 @@ 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_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_invite_event_type_e = {"_p_tsip_invite_event_type_e", "enum tsip_invite_event_type_e *|tsip_invite_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_message_event_type_e = {"_p_tsip_message_event_type_e", "enum tsip_message_event_type_e *|tsip_message_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_tsip_options_event_type_e = {"_p_tsip_options_event_type_e", "enum tsip_options_event_type_e *|tsip_options_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};
@ -8487,6 +8755,7 @@ static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_
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 *swig_type_initial[] = {
&_swigt__p_CallEvent,
&_swigt__p_CallSession,
&_swigt__p_DDebugCallback,
&_swigt__p_DialogEvent,
@ -8512,6 +8781,7 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_SubscriptionSession,
&_swigt__p_char,
&_swigt__p_tsip_event_type_e,
&_swigt__p_tsip_invite_event_type_e,
&_swigt__p_tsip_message_event_type_e,
&_swigt__p_tsip_options_event_type_e,
&_swigt__p_tsip_publish_event_type_e,
@ -8519,6 +8789,7 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_tsip_subscribe_event_type_e,
};
static swig_cast_info _swigc__p_CallEvent[] = { {&_swigt__p_CallEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_CallSession[] = { {&_swigt__p_CallSession, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DDebugCallback[] = { {&_swigt__p_DDebugCallback, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_DialogEvent[] = { {&_swigt__p_DialogEvent, 0, 0, 0},{0, 0, 0, 0}};
@ -8534,7 +8805,7 @@ static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_Registratio
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_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_OptionsEvent, _p_OptionsEventTo_p_SipEvent, 0, 0}, {&_swigt__p_DialogEvent, _p_DialogEventTo_p_SipEvent, 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}, {&_swigt__p_StackEvent, _p_StackEventTo_p_SipEvent, 0, 0}, {&_swigt__p_MessagingEvent, _p_MessagingEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_CallEvent, _p_CallEventTo_p_SipEvent, 0, 0}, {&_swigt__p_OptionsEvent, _p_OptionsEventTo_p_SipEvent, 0, 0}, {&_swigt__p_DialogEvent, _p_DialogEventTo_p_SipEvent, 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}, {&_swigt__p_StackEvent, _p_StackEventTo_p_SipEvent, 0, 0}, {&_swigt__p_MessagingEvent, _p_MessagingEventTo_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_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_CallSession, _p_CallSessionTo_p_SipSession, 0, 0}, {&_swigt__p_MessagingSession, _p_MessagingSessionTo_p_SipSession, 0, 0}, {&_swigt__p_OptionsSession, _p_OptionsSessionTo_p_SipSession, 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}};
@ -8544,6 +8815,7 @@ static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_Subscriptio
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_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_invite_event_type_e[] = { {&_swigt__p_tsip_invite_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_message_event_type_e[] = { {&_swigt__p_tsip_message_event_type_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_tsip_options_event_type_e[] = { {&_swigt__p_tsip_options_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}};
@ -8551,6 +8823,7 @@ static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_ts
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 *swig_cast_initial[] = {
_swigc__p_CallEvent,
_swigc__p_CallSession,
_swigc__p_DDebugCallback,
_swigc__p_DialogEvent,
@ -8576,6 +8849,7 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_SubscriptionSession,
_swigc__p_char,
_swigc__p_tsip_event_type_e,
_swigc__p_tsip_invite_event_type_e,
_swigc__p_tsip_message_event_type_e,
_swigc__p_tsip_options_event_type_e,
_swigc__p_tsip_publish_event_type_e,
@ -9209,6 +9483,18 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, "tsip_ao_message",SWIG_From_int(static_cast< int >(tsip_ao_message)));
SWIG_Python_SetConstant(d, "tsip_i_options",SWIG_From_int(static_cast< int >(tsip_i_options)));
SWIG_Python_SetConstant(d, "tsip_ao_options",SWIG_From_int(static_cast< int >(tsip_ao_options)));
SWIG_Python_SetConstant(d, "tsip_i_newcall",SWIG_From_int(static_cast< int >(tsip_i_newcall)));
SWIG_Python_SetConstant(d, "tsip_i_request",SWIG_From_int(static_cast< int >(tsip_i_request)));
SWIG_Python_SetConstant(d, "tsip_ao_request",SWIG_From_int(static_cast< int >(tsip_ao_request)));
SWIG_Python_SetConstant(d, "tsip_o_ect_ok",SWIG_From_int(static_cast< int >(tsip_o_ect_ok)));
SWIG_Python_SetConstant(d, "tsip_o_ect_nok",SWIG_From_int(static_cast< int >(tsip_o_ect_nok)));
SWIG_Python_SetConstant(d, "tsip_i_ect",SWIG_From_int(static_cast< int >(tsip_i_ect)));
SWIG_Python_SetConstant(d, "tsip_m_local_hold_ok",SWIG_From_int(static_cast< int >(tsip_m_local_hold_ok)));
SWIG_Python_SetConstant(d, "tsip_m_local_hold_nok",SWIG_From_int(static_cast< int >(tsip_m_local_hold_nok)));
SWIG_Python_SetConstant(d, "tsip_m_local_resume_ok",SWIG_From_int(static_cast< int >(tsip_m_local_resume_ok)));
SWIG_Python_SetConstant(d, "tsip_m_local_resume_nok",SWIG_From_int(static_cast< int >(tsip_m_local_resume_nok)));
SWIG_Python_SetConstant(d, "tsip_m_remote_hold",SWIG_From_int(static_cast< int >(tsip_m_remote_hold)));
SWIG_Python_SetConstant(d, "tsip_m_remote_resume",SWIG_From_int(static_cast< int >(tsip_m_remote_resume)));
#if PY_VERSION_HEX >= 0x03000000
return m;
#else

View File

@ -118,6 +118,7 @@ public:
virtual ~SwigDirector_SipCallback();
virtual int OnDialogEvent(DialogEvent const *e);
virtual int OnStackEvent(StackEvent const *e);
virtual int OnCallEvent(CallEvent const *e);
virtual int OnMessagingEvent(MessagingEvent const *e);
virtual int OnOptionsEvent(OptionsEvent const *e);
virtual int OnPublicationEvent(PublicationEvent const *e);
@ -156,7 +157,7 @@ private:
return method;
}
private:
mutable swig::SwigVar_PyObject vtable[7];
mutable swig::SwigVar_PyObject vtable[8];
#endif
};

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -16,11 +16,26 @@ OBJS += src/audio/tdav_consumer_audio.o \
src/audio/tdav_jitterbuffer.o \
src/audio/tdav_producer_audio.o \
src/audio/tdav_session_audio.o
### video
OBJS += src/video/tdav_session_video.o
### msrp
OBJS += src/msrp/tdav_consumer_msrp.o \
src/msrp/tdav_producer_msrp.o \
src/msrp/tdav_session_msrp.o
### codecs (G.711)
OBJS += src/codecs/g711/g711.o \
src/codecs/g711/tdav_codec_g711.o
### codecs (H.263)
OBJS += src/codecs/h263/tdav_codec_h263.o
### codecs (MSRP)
OBJS += src/codecs/msrp/tdav_codec_msrp.o
$(APP): $(OBJS)
ifeq ($(EXT), a)

View File

@ -0,0 +1,42 @@
/*
* Copyright (C) 2009 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)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.
*
*/
/**@file tdav_dshow_utils.h
* @brief DiretShow Utilities functions.
*
* @author Mamadou Diop <diopmamadou(at)doubango.org>
*
* @date Created: Sat Nov 8 16:54:58 2009 mdiop
*/
#ifndef TINYDAV_DSHOW_UTILS_H
#define TINYDAV_DSHOW_UTILS_H
#include "tinydav_config.h"
TDAV_BEGIN_DECLS
TDAV_END_DECLS
#endif /* TINYDAV_DSHOW_UTILS_H */

View File

@ -36,12 +36,12 @@
//
// H.263-1996 object definition
//
tsk_size_t tdav_codec_h263_open(tmedia_codec_t* self)
int tdav_codec_h263_open(tmedia_codec_t* self)
{
return 0;
}
tsk_size_t tdav_codec_h263_close(tmedia_codec_t* self)
int tdav_codec_h263_close(tmedia_codec_t* self)
{
return 0;
}
@ -160,12 +160,12 @@ const tmedia_codec_plugin_def_t *tdav_codec_h263_plugin_def_t = &tdav_codec_h263
// H.263-1998 object definition
//
tsk_size_t tdav_codec_h263p_open(tmedia_codec_t* self)
int tdav_codec_h263p_open(tmedia_codec_t* self)
{
return 0;
}
tsk_size_t tdav_codec_h263p_close(tmedia_codec_t* self)
int tdav_codec_h263p_close(tmedia_codec_t* self)
{
return 0;
}
@ -275,12 +275,12 @@ const tmedia_codec_plugin_def_t *tdav_codec_h263p_plugin_def_t = &tdav_codec_h26
// H.263-2000 object definition
//
tsk_size_t tdav_codec_h263pp_open(tmedia_codec_t* self)
int tdav_codec_h263pp_open(tmedia_codec_t* self)
{
return 0;
}
tsk_size_t tdav_codec_h263pp_close(tmedia_codec_t* self)
int tdav_codec_h263pp_close(tmedia_codec_t* self)
{
return 0;
}

View File

@ -41,7 +41,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="&quot;$(DXSDK_DIR)include&quot;;..\thirdparties\win32\include;include;..\tinyRTP\include;..\tinyMEDIA\include;..\tinySDP\include;..\tinyNET\src;..\tinySAK\src"
AdditionalIncludeDirectories="&quot;$(PSDK_DIR)include&quot;;&quot;$(DXSDK_DIR)include&quot;;..\thirdparties\win32\include;include;..\tinyRTP\include;..\tinyMEDIA\include;..\tinySDP\include;..\tinyNET\src;..\tinySAK\src"
PreprocessorDefinitions="DEBUG_LEVEL=DEBUG_LEVEL_INFO;HAVE_DSOUND_H=1;WIN32;_DEBUG;_WINDOWS;_USRDLL;_WIN32_WINNT=0x0501;TINYDAV_EXPORTS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@ -227,6 +227,10 @@
<Filter
Name="h263"
>
<File
RelativePath=".\include\tinydav\codecs\h263\tdav_codec_h263.h"
>
</File>
</Filter>
<Filter
Name="h264"
@ -248,6 +252,14 @@
Name="silk"
>
</Filter>
<Filter
Name="msrp"
>
<File
RelativePath=".\include\tinydav\codecs\msrp\tdav_codec_msrp.h"
>
</File>
</Filter>
</Filter>
<Filter
Name="audio"
@ -312,19 +324,59 @@
<Filter
Name="video"
>
<File
RelativePath=".\include\tinydav\video\tdav_session_video.h"
>
</File>
<Filter
Name="android"
>
</Filter>
<Filter
Name="directsound"
Name="directshow"
>
<File
RelativePath=".\include\tinydav\video\directshow\tdav_consumer_dshow.h"
>
</File>
<File
RelativePath=".\include\tinydav\video\directshow\tdav_producer_dshow.h"
>
</File>
<Filter
Name="common"
>
<File
RelativePath=".\include\tinydav\video\directshow\common\tdav_dshow_filters.h"
>
</File>
<File
RelativePath=".\include\tinydav\video\directshow\common\tdav_dshow_utils.h"
>
</File>
</Filter>
</Filter>
<Filter
Name="v4linux"
>
</Filter>
</Filter>
<Filter
Name="msrp"
>
<File
RelativePath=".\include\tinydav\msrp\tdav_consumer_msrp.h"
>
</File>
<File
RelativePath=".\include\tinydav\msrp\tdav_producer_msrp.h"
>
</File>
<File
RelativePath=".\include\tinydav\msrp\tdav_session_msrp.h"
>
</File>
</Filter>
</Filter>
<Filter
Name="source(*.c)"
@ -371,6 +423,10 @@
<Filter
Name="h263"
>
<File
RelativePath=".\src\codecs\h263\tdav_codec_h263.c"
>
</File>
</Filter>
<Filter
Name="h264"
@ -392,6 +448,14 @@
Name="theora"
>
</Filter>
<Filter
Name="msrp"
>
<File
RelativePath=".\src\codecs\msrp\tdav_codec_msrp.c"
>
</File>
</Filter>
</Filter>
<Filter
Name="audio"
@ -456,6 +520,10 @@
<Filter
Name="video"
>
<File
RelativePath=".\src\video\tdav_session_video.c"
>
</File>
<Filter
Name="android"
>
@ -463,12 +531,48 @@
<Filter
Name="directshow"
>
<File
RelativePath=".\src\video\directshow\tdav_consumer_dshow.c"
>
</File>
<File
RelativePath=".\src\video\directshow\tdav_producer_dshow.c"
>
</File>
<Filter
Name="common"
>
<File
RelativePath=".\src\video\directshow\common\tdav_dshow_filters.c"
>
</File>
<File
RelativePath=".\src\video\directshow\common\tdav_dshow_utils.c"
>
</File>
</Filter>
</Filter>
<Filter
Name="v4linux"
>
</Filter>
</Filter>
<Filter
Name="msrp"
>
<File
RelativePath=".\src\msrp\tdav_consumer_msrp.c"
>
</File>
<File
RelativePath=".\src\msrp\tdav_producer_msrp.c"
>
</File>
<File
RelativePath=".\src\msrp\tdav_session_msrp.c"
>
</File>
</Filter>
</Filter>
</Files>
<Globals>