Update bindings
This commit is contained in:
parent
beff8a35e1
commit
203fe0e859
|
@ -21,21 +21,31 @@
|
|||
*/
|
||||
#include "SipEvent.h"
|
||||
#include "SipSession.h"
|
||||
#include "SipMessage.h"
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
SipEvent::SipEvent()
|
||||
: sipevent(tsk_null)
|
||||
{
|
||||
::SipEvent(tsk_null);
|
||||
}
|
||||
|
||||
SipEvent::SipEvent(const tsip_event_t *_sipevent)
|
||||
{
|
||||
this->sipevent = _sipevent;
|
||||
if(_sipevent){
|
||||
this->sipmessage = new SipMessage(_sipevent->sipmessage);
|
||||
}
|
||||
else{
|
||||
this->sipmessage = tsk_null;
|
||||
}
|
||||
}
|
||||
|
||||
SipEvent::~SipEvent()
|
||||
{
|
||||
if(this->sipmessage){
|
||||
delete this->sipmessage;
|
||||
}
|
||||
}
|
||||
|
||||
short SipEvent::getCode() const
|
||||
|
@ -53,3 +63,7 @@ const SipSession* SipEvent::getBaseSession() const
|
|||
return dyn_cast<SipSession*>((SipSession*)tsip_ssession_get_userdata(this->sipevent->ss));
|
||||
}
|
||||
|
||||
const SipMessage* SipEvent::getSipMessage() const
|
||||
{
|
||||
return this->sipmessage;
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "tinysip.h"
|
||||
|
||||
class SipSession;
|
||||
class SipMessage;
|
||||
|
||||
class SipEvent
|
||||
{
|
||||
|
@ -39,9 +40,11 @@ public:
|
|||
short getCode() const;
|
||||
const char* getPhrase() const;
|
||||
const SipSession* getBaseSession() const;
|
||||
const SipMessage* getSipMessage() const;
|
||||
|
||||
protected:
|
||||
const tsip_event_t *sipevent;
|
||||
const SipMessage* sipmessage;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,146 @@
|
|||
/*
|
||||
* Copyright (C) 2009 Mamadou Diop.
|
||||
*
|
||||
* Contact: Mamadou Diop <diopmamadou@doubango.org>
|
||||
*
|
||||
* This file is part of Open Source Doubango Framework.
|
||||
*
|
||||
* DOUBANGO is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* DOUBANGO is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with DOUBANGO.
|
||||
*
|
||||
*/
|
||||
#include "SipMessage.h"
|
||||
|
||||
SipMessage::SipMessage()
|
||||
:sipmessage(tsk_null)
|
||||
{
|
||||
}
|
||||
|
||||
SipMessage::SipMessage(const tsip_message_t *_sipmessage)
|
||||
{
|
||||
this->sipmessage = _sipmessage;
|
||||
}
|
||||
|
||||
SipMessage::~SipMessage()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const void* SipMessage::getSipContent() const
|
||||
{
|
||||
if(this->sipmessage){
|
||||
return TSIP_MESSAGE_CONTENT_DATA(this->sipmessage);
|
||||
}
|
||||
else{
|
||||
return tsk_null;
|
||||
}
|
||||
}
|
||||
|
||||
const tsip_header_t* SipMessage::getSipHeader(const char* name, unsigned index /* =0 */)
|
||||
{
|
||||
/* Do not worry about calling tsk_striequals() several times because the function
|
||||
* is fully optimized.
|
||||
*/
|
||||
/* Code below comes from tsip_message_get_headerAt() */
|
||||
tsk_size_t pos = 0;
|
||||
const tsk_list_item_t *item;
|
||||
const tsip_header_t* hdr = tsk_null;
|
||||
if(!this->sipmessage || !name){
|
||||
return tsk_null;
|
||||
}
|
||||
|
||||
if(tsk_striequals(name, "v") || tsk_striequals(name, "via")){
|
||||
if(index == 0){
|
||||
hdr = (const tsip_header_t*)this->sipmessage->firstVia;
|
||||
goto bail;
|
||||
}else pos++; }
|
||||
if(tsk_striequals(name, "f") || tsk_striequals(name, "from")){
|
||||
if(index == 0){
|
||||
hdr = (const tsip_header_t*)this->sipmessage->From;
|
||||
goto bail;
|
||||
}else pos++; }
|
||||
if(tsk_striequals(name, "t") || tsk_striequals(name, "to")){
|
||||
if(index == 0){
|
||||
hdr = (const tsip_header_t*)this->sipmessage->To;
|
||||
goto bail;
|
||||
}else pos++; }
|
||||
if(tsk_striequals(name, "m") || tsk_striequals(name, "contact")){
|
||||
if(index == 0){
|
||||
hdr = (const tsip_header_t*)this->sipmessage->Contact;
|
||||
goto bail;
|
||||
}else pos++; }
|
||||
if(tsk_striequals(name, "i") || tsk_striequals(name, "call-id")){
|
||||
if(index == 0){
|
||||
hdr = (const tsip_header_t*)this->sipmessage->Call_ID;
|
||||
goto bail;
|
||||
}else pos++; }
|
||||
if(tsk_striequals(name, "cseq")){
|
||||
if(index == 0){
|
||||
hdr = (const tsip_header_t*)this->sipmessage->CSeq;
|
||||
goto bail;
|
||||
}else pos++; }
|
||||
if(tsk_striequals(name, "expires")){
|
||||
if(index == 0){
|
||||
hdr = (const tsip_header_t*)this->sipmessage->Expires;
|
||||
goto bail;
|
||||
}else pos++; }
|
||||
if(tsk_striequals(name, "c") || tsk_striequals(name, "content-type")){
|
||||
if(index == 0){
|
||||
hdr = (const tsip_header_t*)this->sipmessage->Content_Type;
|
||||
goto bail;
|
||||
}else pos++; }
|
||||
if(tsk_striequals(name, "l") || tsk_striequals(name, "content-length")){
|
||||
if(index == 0){
|
||||
hdr = (const tsip_header_t*)this->sipmessage->Content_Length;
|
||||
goto bail;
|
||||
}else pos++; }
|
||||
|
||||
|
||||
tsk_list_foreach(item, this->sipmessage->headers){
|
||||
if(tsk_striequals(tsip_header_get_name_2(TSIP_HEADER(item)), name)){
|
||||
if(pos++ >= index){
|
||||
hdr = (const tsip_header_t*)item->data;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bail:
|
||||
return hdr;
|
||||
}
|
||||
|
||||
// e.g. getHeaderParamValue("content-type");
|
||||
char* SipMessage::getSipHeaderValue(const char* name, unsigned index /* = 0*/)
|
||||
{
|
||||
const tsip_header_t* header;
|
||||
if((header = this->getSipHeader(name, index))){
|
||||
// SWIG: %newobject getHeaderValueAt;
|
||||
return tsip_header_value_tostring(header);
|
||||
}
|
||||
return tsk_null;
|
||||
}
|
||||
|
||||
// e.g. getHeaderParamValue("content-type", "charset");
|
||||
const char* SipMessage::getSipHeaderParamValue(const char* name, const char* param, unsigned index /*=0*/)
|
||||
{
|
||||
const tsk_param_t* _param;
|
||||
const tsip_header_t* header;
|
||||
|
||||
if((header = this->getSipHeader(name, index)) && header->params){
|
||||
if((_param = tsk_params_get_param_by_name(header->params, param))){
|
||||
return _param->value;
|
||||
}
|
||||
}
|
||||
return tsk_null;
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright (C) 2009 Mamadou Diop.
|
||||
*
|
||||
* Contact: Mamadou Diop <diopmamadou@doubango.org>
|
||||
*
|
||||
* This file is part of Open Source Doubango Framework.
|
||||
*
|
||||
* DOUBANGO is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* DOUBANGO is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with DOUBANGO.
|
||||
*
|
||||
*/
|
||||
#ifndef TINYWRAP_SIPMESSAGE_H
|
||||
#define TINYWRAP_SIPMESSAGE_H
|
||||
|
||||
#include "tinysip.h"
|
||||
|
||||
class SipMessage
|
||||
{
|
||||
public:
|
||||
SipMessage();
|
||||
#if !defined(SWIG)
|
||||
SipMessage(const tsip_message_t *sipmessage);
|
||||
#endif
|
||||
virtual ~SipMessage();
|
||||
|
||||
const void* getSipContent() const;
|
||||
|
||||
//%newobject getHeaderValueAt;
|
||||
char* getSipHeaderValue(const char* name, unsigned index = 0);
|
||||
const char* getSipHeaderParamValue(const char* name, const char* param, unsigned index = 0);
|
||||
|
||||
private:
|
||||
const tsip_header_t* getSipHeader(const char* name, unsigned index = 0);
|
||||
|
||||
private:
|
||||
const tsip_message_t *sipmessage;
|
||||
};
|
||||
|
||||
#endif /* TINYWRAP_SIPMESSAGE_H */
|
|
@ -103,12 +103,6 @@ bool SipSession::setToUri(const char* toUri)
|
|||
return (ret == 0);
|
||||
}
|
||||
|
||||
bool SipSession::setPayload(const char* payload, unsigned size)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
const SipStack* SipSession::getStack()const
|
||||
{
|
||||
return this->stack;
|
||||
|
|
|
@ -42,15 +42,6 @@ public:
|
|||
bool setFromUri(const char* fromUri);
|
||||
bool setToUri(const char* toUri);
|
||||
|
||||
#if defined(SWIG)
|
||||
/* http://www.swig.org/Doc1.3/Library.html#Library_carrays
|
||||
* 8.3.2 Passing binary data
|
||||
*/
|
||||
|
||||
%apply (const char *str, unsigned len) { (const char *str, unsigned len) };
|
||||
#endif
|
||||
bool setPayload(const char *str, unsigned len);
|
||||
|
||||
#if !defined(SWIG)
|
||||
const SipStack* getStack() const;
|
||||
#endif
|
||||
|
|
|
@ -61,7 +61,7 @@ SipStack::SipStack(SipCallback* callback_, const char* realm_uri, const char* im
|
|||
/* Creates stack handle */
|
||||
this->handle = tsip_stack_create(stack_callback, realm_uri, impi_uri, impu_uri,
|
||||
TSIP_STACK_SET_LOCAL_IP(DEFAULT_LOCAL_IP),
|
||||
/* TSIP_STACK_SET_USERDATA(this), */ /* used as context */
|
||||
TSIP_STACK_SET_USERDATA(this), /* used as context (useful for server-initiated requests) */
|
||||
TSIP_STACK_SET_NULL());
|
||||
|
||||
SipStack::count++;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
%{
|
||||
#include "SipUri.h"
|
||||
#include "SipMessage.h"
|
||||
#include "SipEvent.h"
|
||||
#include "SipSession.h"
|
||||
#include "RegistrationEvent.h"
|
||||
|
@ -20,6 +21,7 @@
|
|||
|
||||
%nodefaultctor;
|
||||
%include "SipUri.h"
|
||||
%include "SipMessage.h"
|
||||
%include "SipEvent.h"
|
||||
%include "SipSession.h"
|
||||
%include "RegistrationEvent.h"
|
||||
|
@ -32,6 +34,10 @@
|
|||
%include "SipStack.h"
|
||||
%clearnodefaultctor;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* ====== From "tinySIP\include\tinysip\tsip_event.h" ====== */
|
||||
typedef enum tsip_event_type_e
|
||||
{
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
#include "Common.h"
|
||||
|
||||
SubscriptionEvent::SubscriptionEvent()
|
||||
:SipEvent(tsk_null)
|
||||
{
|
||||
::SubscriptionEvent(tsk_null);
|
||||
}
|
||||
|
||||
SubscriptionEvent::SubscriptionEvent(const tsip_event_t *sipevent)
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
/* File : tinyWRAP.i */
|
||||
%module(directors="1") tinyWRAP
|
||||
|
||||
//%apply int *OUTPUT { int *len };
|
||||
|
||||
%newobject getSipHeaderValue;
|
||||
|
||||
/* Sip Stack */
|
||||
%include SipStack.i
|
||||
|
||||
|
|
|
@ -1,54 +1,54 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationEvent : SipEvent {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal RegistrationEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationEventUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RegistrationEvent obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RegistrationEvent() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public RegistrationEvent() : this(tinyWRAPPINVOKE.new_RegistrationEvent(), true) {
|
||||
}
|
||||
|
||||
public tsip_register_event_type_t getType() {
|
||||
tsip_register_event_type_t ret = (tsip_register_event_type_t)tinyWRAPPINVOKE.RegistrationEvent_getType(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RegistrationSession getSession() {
|
||||
IntPtr cPtr = tinyWRAPPINVOKE.RegistrationEvent_getSession(swigCPtr);
|
||||
RegistrationSession ret = (cPtr == IntPtr.Zero) ? null : new RegistrationSession(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationEvent : SipEvent {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal RegistrationEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationEventUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RegistrationEvent obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RegistrationEvent() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public RegistrationEvent() : this(tinyWRAPPINVOKE.new_RegistrationEvent(), true) {
|
||||
}
|
||||
|
||||
public tsip_register_event_type_t getType() {
|
||||
tsip_register_event_type_t ret = (tsip_register_event_type_t)tinyWRAPPINVOKE.RegistrationEvent_getType(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public RegistrationSession getSession() {
|
||||
IntPtr cPtr = tinyWRAPPINVOKE.RegistrationEvent_getSession(swigCPtr);
|
||||
RegistrationSession ret = (cPtr == IntPtr.Zero) ? null : new RegistrationSession(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,53 +1,53 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationSession : SipSession {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal RegistrationSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationSessionUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RegistrationSession obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RegistrationSession() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public RegistrationSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_RegistrationSession(SipStack.getCPtr(Stack)), true) {
|
||||
}
|
||||
|
||||
public bool Register() {
|
||||
bool ret = tinyWRAPPINVOKE.RegistrationSession_Register(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool UnRegister() {
|
||||
bool ret = tinyWRAPPINVOKE.RegistrationSession_UnRegister(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationSession : SipSession {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal RegistrationSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationSessionUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(RegistrationSession obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~RegistrationSession() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public RegistrationSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_RegistrationSession(SipStack.getCPtr(Stack)), true) {
|
||||
}
|
||||
|
||||
public bool Register() {
|
||||
bool ret = tinyWRAPPINVOKE.RegistrationSession_Register(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool UnRegister() {
|
||||
bool ret = tinyWRAPPINVOKE.RegistrationSession_UnRegister(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,54 +1,54 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SafeObject : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SafeObject(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SafeObject obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SafeObject() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SafeObject() : this(tinyWRAPPINVOKE.new_SafeObject(), true) {
|
||||
}
|
||||
|
||||
public int Lock() {
|
||||
int ret = tinyWRAPPINVOKE.SafeObject_Lock(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int UnLock() {
|
||||
int ret = tinyWRAPPINVOKE.SafeObject_UnLock(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SafeObject : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SafeObject(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SafeObject obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SafeObject() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SafeObject() : this(tinyWRAPPINVOKE.new_SafeObject(), true) {
|
||||
}
|
||||
|
||||
public int Lock() {
|
||||
int ret = tinyWRAPPINVOKE.SafeObject_Lock(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int UnLock() {
|
||||
int ret = tinyWRAPPINVOKE.SafeObject_UnLock(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,85 +1,85 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipCallback : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipCallback(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipCallback obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipCallback() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipCallback() : this(tinyWRAPPINVOKE.new_SipCallback(), true) {
|
||||
SwigDirectorConnect();
|
||||
}
|
||||
|
||||
public virtual int OnRegistrationChanged(RegistrationEvent e) {
|
||||
int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnRegistrationChanged(swigCPtr, RegistrationEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, RegistrationEvent.getCPtr(e)));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int OnSubscriptionChanged(SubscriptionEvent e) {
|
||||
int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnSubscriptionChanged(swigCPtr, SubscriptionEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, SubscriptionEvent.getCPtr(e)));
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void SwigDirectorConnect() {
|
||||
if (SwigDerivedClassHasMethod("OnRegistrationChanged", swigMethodTypes0))
|
||||
swigDelegate0 = new SwigDelegateSipCallback_0(SwigDirectorOnRegistrationChanged);
|
||||
if (SwigDerivedClassHasMethod("OnSubscriptionChanged", swigMethodTypes1))
|
||||
swigDelegate1 = new SwigDelegateSipCallback_1(SwigDirectorOnSubscriptionChanged);
|
||||
tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1);
|
||||
}
|
||||
|
||||
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
|
||||
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
|
||||
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SipCallback));
|
||||
return hasDerivedMethod;
|
||||
}
|
||||
|
||||
private int SwigDirectorOnRegistrationChanged(IntPtr e) {
|
||||
return OnRegistrationChanged((e == IntPtr.Zero) ? null : new RegistrationEvent(e, false));
|
||||
}
|
||||
|
||||
private int SwigDirectorOnSubscriptionChanged(IntPtr e) {
|
||||
return OnSubscriptionChanged((e == IntPtr.Zero) ? null : new SubscriptionEvent(e, false));
|
||||
}
|
||||
|
||||
public delegate int SwigDelegateSipCallback_0(IntPtr e);
|
||||
public delegate int SwigDelegateSipCallback_1(IntPtr e);
|
||||
|
||||
private SwigDelegateSipCallback_0 swigDelegate0;
|
||||
private SwigDelegateSipCallback_1 swigDelegate1;
|
||||
|
||||
private static Type[] swigMethodTypes0 = new Type[] { typeof(RegistrationEvent) };
|
||||
private static Type[] swigMethodTypes1 = new Type[] { typeof(SubscriptionEvent) };
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipCallback : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipCallback(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipCallback obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipCallback() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipCallback() : this(tinyWRAPPINVOKE.new_SipCallback(), true) {
|
||||
SwigDirectorConnect();
|
||||
}
|
||||
|
||||
public virtual int OnRegistrationChanged(RegistrationEvent e) {
|
||||
int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnRegistrationChanged(swigCPtr, RegistrationEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, RegistrationEvent.getCPtr(e)));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int OnSubscriptionChanged(SubscriptionEvent e) {
|
||||
int ret = ((this.GetType() == typeof(SipCallback)) ? tinyWRAPPINVOKE.SipCallback_OnSubscriptionChanged(swigCPtr, SubscriptionEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, SubscriptionEvent.getCPtr(e)));
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void SwigDirectorConnect() {
|
||||
if (SwigDerivedClassHasMethod("OnRegistrationChanged", swigMethodTypes0))
|
||||
swigDelegate0 = new SwigDelegateSipCallback_0(SwigDirectorOnRegistrationChanged);
|
||||
if (SwigDerivedClassHasMethod("OnSubscriptionChanged", swigMethodTypes1))
|
||||
swigDelegate1 = new SwigDelegateSipCallback_1(SwigDirectorOnSubscriptionChanged);
|
||||
tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1);
|
||||
}
|
||||
|
||||
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
|
||||
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
|
||||
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SipCallback));
|
||||
return hasDerivedMethod;
|
||||
}
|
||||
|
||||
private int SwigDirectorOnRegistrationChanged(IntPtr e) {
|
||||
return OnRegistrationChanged((e == IntPtr.Zero) ? null : new RegistrationEvent(e, false));
|
||||
}
|
||||
|
||||
private int SwigDirectorOnSubscriptionChanged(IntPtr e) {
|
||||
return OnSubscriptionChanged((e == IntPtr.Zero) ? null : new SubscriptionEvent(e, false));
|
||||
}
|
||||
|
||||
public delegate int SwigDelegateSipCallback_0(IntPtr e);
|
||||
public delegate int SwigDelegateSipCallback_1(IntPtr e);
|
||||
|
||||
private SwigDelegateSipCallback_0 swigDelegate0;
|
||||
private SwigDelegateSipCallback_1 swigDelegate1;
|
||||
|
||||
private static Type[] swigMethodTypes0 = new Type[] { typeof(RegistrationEvent) };
|
||||
private static Type[] swigMethodTypes1 = new Type[] { typeof(SubscriptionEvent) };
|
||||
}
|
||||
|
|
|
@ -1,113 +1,113 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipDebugCallback : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipDebugCallback(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipDebugCallback obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipDebugCallback() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipDebugCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipDebugCallback() : this(tinyWRAPPINVOKE.new_SipDebugCallback(), true) {
|
||||
SwigDirectorConnect();
|
||||
}
|
||||
|
||||
public virtual int OnDebugInfo(string message) {
|
||||
int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugInfo(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, message));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int OnDebugWarn(string message) {
|
||||
int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugWarn(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, message));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int OnDebugError(string message) {
|
||||
int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugError(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, message));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int OnDebugFatal(string message) {
|
||||
int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugFatal(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, message));
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void SwigDirectorConnect() {
|
||||
if (SwigDerivedClassHasMethod("OnDebugInfo", swigMethodTypes0))
|
||||
swigDelegate0 = new SwigDelegateSipDebugCallback_0(SwigDirectorOnDebugInfo);
|
||||
if (SwigDerivedClassHasMethod("OnDebugWarn", swigMethodTypes1))
|
||||
swigDelegate1 = new SwigDelegateSipDebugCallback_1(SwigDirectorOnDebugWarn);
|
||||
if (SwigDerivedClassHasMethod("OnDebugError", swigMethodTypes2))
|
||||
swigDelegate2 = new SwigDelegateSipDebugCallback_2(SwigDirectorOnDebugError);
|
||||
if (SwigDerivedClassHasMethod("OnDebugFatal", swigMethodTypes3))
|
||||
swigDelegate3 = new SwigDelegateSipDebugCallback_3(SwigDirectorOnDebugFatal);
|
||||
tinyWRAPPINVOKE.SipDebugCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3);
|
||||
}
|
||||
|
||||
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
|
||||
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
|
||||
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SipDebugCallback));
|
||||
return hasDerivedMethod;
|
||||
}
|
||||
|
||||
private int SwigDirectorOnDebugInfo(string message) {
|
||||
return OnDebugInfo(message);
|
||||
}
|
||||
|
||||
private int SwigDirectorOnDebugWarn(string message) {
|
||||
return OnDebugWarn(message);
|
||||
}
|
||||
|
||||
private int SwigDirectorOnDebugError(string message) {
|
||||
return OnDebugError(message);
|
||||
}
|
||||
|
||||
private int SwigDirectorOnDebugFatal(string message) {
|
||||
return OnDebugFatal(message);
|
||||
}
|
||||
|
||||
public delegate int SwigDelegateSipDebugCallback_0(string message);
|
||||
public delegate int SwigDelegateSipDebugCallback_1(string message);
|
||||
public delegate int SwigDelegateSipDebugCallback_2(string message);
|
||||
public delegate int SwigDelegateSipDebugCallback_3(string message);
|
||||
|
||||
private SwigDelegateSipDebugCallback_0 swigDelegate0;
|
||||
private SwigDelegateSipDebugCallback_1 swigDelegate1;
|
||||
private SwigDelegateSipDebugCallback_2 swigDelegate2;
|
||||
private SwigDelegateSipDebugCallback_3 swigDelegate3;
|
||||
|
||||
private static Type[] swigMethodTypes0 = new Type[] { typeof(string) };
|
||||
private static Type[] swigMethodTypes1 = new Type[] { typeof(string) };
|
||||
private static Type[] swigMethodTypes2 = new Type[] { typeof(string) };
|
||||
private static Type[] swigMethodTypes3 = new Type[] { typeof(string) };
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipDebugCallback : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipDebugCallback(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipDebugCallback obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipDebugCallback() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipDebugCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipDebugCallback() : this(tinyWRAPPINVOKE.new_SipDebugCallback(), true) {
|
||||
SwigDirectorConnect();
|
||||
}
|
||||
|
||||
public virtual int OnDebugInfo(string message) {
|
||||
int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugInfo(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, message));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int OnDebugWarn(string message) {
|
||||
int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugWarn(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, message));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int OnDebugError(string message) {
|
||||
int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugError(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, message));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public virtual int OnDebugFatal(string message) {
|
||||
int ret = ((this.GetType() == typeof(SipDebugCallback)) ? tinyWRAPPINVOKE.SipDebugCallback_OnDebugFatal(swigCPtr, message) : tinyWRAPPINVOKE.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, message));
|
||||
return ret;
|
||||
}
|
||||
|
||||
private void SwigDirectorConnect() {
|
||||
if (SwigDerivedClassHasMethod("OnDebugInfo", swigMethodTypes0))
|
||||
swigDelegate0 = new SwigDelegateSipDebugCallback_0(SwigDirectorOnDebugInfo);
|
||||
if (SwigDerivedClassHasMethod("OnDebugWarn", swigMethodTypes1))
|
||||
swigDelegate1 = new SwigDelegateSipDebugCallback_1(SwigDirectorOnDebugWarn);
|
||||
if (SwigDerivedClassHasMethod("OnDebugError", swigMethodTypes2))
|
||||
swigDelegate2 = new SwigDelegateSipDebugCallback_2(SwigDirectorOnDebugError);
|
||||
if (SwigDerivedClassHasMethod("OnDebugFatal", swigMethodTypes3))
|
||||
swigDelegate3 = new SwigDelegateSipDebugCallback_3(SwigDirectorOnDebugFatal);
|
||||
tinyWRAPPINVOKE.SipDebugCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3);
|
||||
}
|
||||
|
||||
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
|
||||
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
|
||||
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(SipDebugCallback));
|
||||
return hasDerivedMethod;
|
||||
}
|
||||
|
||||
private int SwigDirectorOnDebugInfo(string message) {
|
||||
return OnDebugInfo(message);
|
||||
}
|
||||
|
||||
private int SwigDirectorOnDebugWarn(string message) {
|
||||
return OnDebugWarn(message);
|
||||
}
|
||||
|
||||
private int SwigDirectorOnDebugError(string message) {
|
||||
return OnDebugError(message);
|
||||
}
|
||||
|
||||
private int SwigDirectorOnDebugFatal(string message) {
|
||||
return OnDebugFatal(message);
|
||||
}
|
||||
|
||||
public delegate int SwigDelegateSipDebugCallback_0(string message);
|
||||
public delegate int SwigDelegateSipDebugCallback_1(string message);
|
||||
public delegate int SwigDelegateSipDebugCallback_2(string message);
|
||||
public delegate int SwigDelegateSipDebugCallback_3(string message);
|
||||
|
||||
private SwigDelegateSipDebugCallback_0 swigDelegate0;
|
||||
private SwigDelegateSipDebugCallback_1 swigDelegate1;
|
||||
private SwigDelegateSipDebugCallback_2 swigDelegate2;
|
||||
private SwigDelegateSipDebugCallback_3 swigDelegate3;
|
||||
|
||||
private static Type[] swigMethodTypes0 = new Type[] { typeof(string) };
|
||||
private static Type[] swigMethodTypes1 = new Type[] { typeof(string) };
|
||||
private static Type[] swigMethodTypes2 = new Type[] { typeof(string) };
|
||||
private static Type[] swigMethodTypes3 = new Type[] { typeof(string) };
|
||||
}
|
||||
|
|
|
@ -1,60 +1,66 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipEvent : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipEvent(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipEvent obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipEvent() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipEvent() : this(tinyWRAPPINVOKE.new_SipEvent(), true) {
|
||||
}
|
||||
|
||||
public short getCode() {
|
||||
short ret = tinyWRAPPINVOKE.SipEvent_getCode(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string getPhrase() {
|
||||
string ret = tinyWRAPPINVOKE.SipEvent_getPhrase(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public SipSession getBaseSession() {
|
||||
IntPtr cPtr = tinyWRAPPINVOKE.SipEvent_getBaseSession(swigCPtr);
|
||||
SipSession ret = (cPtr == IntPtr.Zero) ? null : new SipSession(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipEvent : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipEvent(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipEvent obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipEvent() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipEvent() : this(tinyWRAPPINVOKE.new_SipEvent(), true) {
|
||||
}
|
||||
|
||||
public short getCode() {
|
||||
short ret = tinyWRAPPINVOKE.SipEvent_getCode(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string getPhrase() {
|
||||
string ret = tinyWRAPPINVOKE.SipEvent_getPhrase(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public SipSession getBaseSession() {
|
||||
IntPtr cPtr = tinyWRAPPINVOKE.SipEvent_getBaseSession(swigCPtr);
|
||||
SipSession ret = (cPtr == IntPtr.Zero) ? null : new SipSession(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public SipMessage getSipMessage() {
|
||||
IntPtr cPtr = tinyWRAPPINVOKE.SipEvent_getSipMessage(swigCPtr);
|
||||
SipMessage ret = (cPtr == IntPtr.Zero) ? null : new SipMessage(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipMessage : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipMessage(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipMessage obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipMessage() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipMessage(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipMessage() : this(tinyWRAPPINVOKE.new_SipMessage(), true) {
|
||||
}
|
||||
|
||||
public byte[] getSipContent() { return tinyWRAPPINVOKE.SipMessage_getSipContent(swigCPtr); }
|
||||
|
||||
public string getSipHeaderValue(string name, uint index) {
|
||||
string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, name, index);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string getSipHeaderValue(string name) {
|
||||
string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderValue__SWIG_1(swigCPtr, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string getSipHeaderParamValue(string name, string param, uint index) {
|
||||
string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderParamValue__SWIG_0(swigCPtr, name, param, index);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public string getSipHeaderParamValue(string name, string param) {
|
||||
string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderParamValue__SWIG_1(swigCPtr, name, param);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,89 +1,84 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipSession : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipSession(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipSession obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipSession() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipSession(SipStack stack) : this(tinyWRAPPINVOKE.new_SipSession(SipStack.getCPtr(stack)), true) {
|
||||
}
|
||||
|
||||
public bool addHeader(string name, string value) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_addHeader(swigCPtr, name, value);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool removeHeader(string name) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_removeHeader(swigCPtr, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool addCaps(string name, string value) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_0(swigCPtr, name, value);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool addCaps(string name) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_1(swigCPtr, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool removeCaps(string name) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_removeCaps(swigCPtr, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setExpires(uint expires) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_setExpires(swigCPtr, expires);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setFromUri(string fromUri) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_setFromUri(swigCPtr, fromUri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setToUri(string toUri) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_setToUri(swigCPtr, toUri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setPayload(string str, uint len) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_setPayload(swigCPtr, str, len);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipSession : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipSession(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipSession obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipSession() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipSession(SipStack stack) : this(tinyWRAPPINVOKE.new_SipSession(SipStack.getCPtr(stack)), true) {
|
||||
}
|
||||
|
||||
public bool addHeader(string name, string value) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_addHeader(swigCPtr, name, value);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool removeHeader(string name) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_removeHeader(swigCPtr, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool addCaps(string name, string value) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_0(swigCPtr, name, value);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool addCaps(string name) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_1(swigCPtr, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool removeCaps(string name) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_removeCaps(swigCPtr, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setExpires(uint expires) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_setExpires(swigCPtr, expires);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setFromUri(string fromUri) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_setFromUri(swigCPtr, fromUri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setToUri(string toUri) {
|
||||
bool ret = tinyWRAPPINVOKE.SipSession_setToUri(swigCPtr, toUri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,118 +1,118 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipStack : SafeObject {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SipStack(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SipStackUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipStack obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipStack() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public SipStack(SipCallback callback, string realm_uri, string impi_uri, string impu_uri) : this(tinyWRAPPINVOKE.new_SipStack(SipCallback.getCPtr(callback), realm_uri, impi_uri, impu_uri), true) {
|
||||
}
|
||||
|
||||
public bool start() {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_start(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setDebugCallback(SipDebugCallback callback) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setDebugCallback(swigCPtr, SipDebugCallback.getCPtr(callback));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setRealm(string realm_uri) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setRealm(swigCPtr, realm_uri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setIMPI(string impi) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setIMPI(swigCPtr, impi);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setIMPU(string impu_uri) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setIMPU(swigCPtr, impu_uri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setPassword(string password) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setPassword(swigCPtr, password);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setProxyCSCF(string fqdn, uint port, string transport, string ipversion) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setProxyCSCF(swigCPtr, fqdn, port, transport, ipversion);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setLocalIP(string ip) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setLocalIP(swigCPtr, ip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setLocalPort(uint port) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setLocalPort(swigCPtr, port);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setEarlyIMS(bool enabled) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setEarlyIMS(swigCPtr, enabled);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool addHeader(string name, string value) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_addHeader(swigCPtr, name, value);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool removeHeader(string name) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_removeHeader(swigCPtr, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool addDnsServer(string ip) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_addDnsServer(swigCPtr, ip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool isValid() {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_isValid(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool stop() {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_stop(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipStack : SafeObject {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SipStack(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SipStackUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipStack obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipStack() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public SipStack(SipCallback callback, string realm_uri, string impi_uri, string impu_uri) : this(tinyWRAPPINVOKE.new_SipStack(SipCallback.getCPtr(callback), realm_uri, impi_uri, impu_uri), true) {
|
||||
}
|
||||
|
||||
public bool start() {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_start(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setDebugCallback(SipDebugCallback callback) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setDebugCallback(swigCPtr, SipDebugCallback.getCPtr(callback));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setRealm(string realm_uri) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setRealm(swigCPtr, realm_uri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setIMPI(string impi) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setIMPI(swigCPtr, impi);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setIMPU(string impu_uri) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setIMPU(swigCPtr, impu_uri);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setPassword(string password) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setPassword(swigCPtr, password);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setProxyCSCF(string fqdn, uint port, string transport, string ipversion) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setProxyCSCF(swigCPtr, fqdn, port, transport, ipversion);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setLocalIP(string ip) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setLocalIP(swigCPtr, ip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setLocalPort(uint port) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setLocalPort(swigCPtr, port);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool setEarlyIMS(bool enabled) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_setEarlyIMS(swigCPtr, enabled);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool addHeader(string name, string value) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_addHeader(swigCPtr, name, value);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool removeHeader(string name) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_removeHeader(swigCPtr, name);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool addDnsServer(string ip) {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_addDnsServer(swigCPtr, ip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool isValid() {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_isValid(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool stop() {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_stop(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,54 +1,54 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipUri : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipUri(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipUri obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipUri() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipUri(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipUri(string arg0) : this(tinyWRAPPINVOKE.new_SipUri(arg0), true) {
|
||||
}
|
||||
|
||||
public static bool isValid(string arg0) {
|
||||
bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_0(arg0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool isValid() {
|
||||
bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_1(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipUri : IDisposable {
|
||||
private HandleRef swigCPtr;
|
||||
protected bool swigCMemOwn;
|
||||
|
||||
internal SipUri(IntPtr cPtr, bool cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SipUri obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SipUri() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipUri(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
||||
public SipUri(string arg0) : this(tinyWRAPPINVOKE.new_SipUri(arg0), true) {
|
||||
}
|
||||
|
||||
public static bool isValid(string arg0) {
|
||||
bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_0(arg0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool isValid() {
|
||||
bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_1(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,54 +1,54 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionEvent : SipEvent {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SubscriptionEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionEventUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SubscriptionEvent obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SubscriptionEvent() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public SubscriptionEvent() : this(tinyWRAPPINVOKE.new_SubscriptionEvent(), true) {
|
||||
}
|
||||
|
||||
public tsip_subscribe_event_type_t getType() {
|
||||
tsip_subscribe_event_type_t ret = (tsip_subscribe_event_type_t)tinyWRAPPINVOKE.SubscriptionEvent_getType(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public SubscriptionSession getSession() {
|
||||
IntPtr cPtr = tinyWRAPPINVOKE.SubscriptionEvent_getSession(swigCPtr);
|
||||
SubscriptionSession ret = (cPtr == IntPtr.Zero) ? null : new SubscriptionSession(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionEvent : SipEvent {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SubscriptionEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionEventUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SubscriptionEvent obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SubscriptionEvent() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public SubscriptionEvent() : this(tinyWRAPPINVOKE.new_SubscriptionEvent(), true) {
|
||||
}
|
||||
|
||||
public tsip_subscribe_event_type_t getType() {
|
||||
tsip_subscribe_event_type_t ret = (tsip_subscribe_event_type_t)tinyWRAPPINVOKE.SubscriptionEvent_getType(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public SubscriptionSession getSession() {
|
||||
IntPtr cPtr = tinyWRAPPINVOKE.SubscriptionEvent_getSession(swigCPtr);
|
||||
SubscriptionSession ret = (cPtr == IntPtr.Zero) ? null : new SubscriptionSession(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,53 +1,53 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionSession : SipSession {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SubscriptionSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionSessionUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SubscriptionSession obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SubscriptionSession() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public SubscriptionSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_SubscriptionSession(SipStack.getCPtr(Stack)), true) {
|
||||
}
|
||||
|
||||
public bool Subscribe() {
|
||||
bool ret = tinyWRAPPINVOKE.SubscriptionSession_Subscribe(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool UnSubscribe() {
|
||||
bool ret = tinyWRAPPINVOKE.SubscriptionSession_UnSubscribe(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionSession : SipSession {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SubscriptionSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionSessionUpcast(cPtr), cMemoryOwn) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SubscriptionSession obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
|
||||
~SubscriptionSession() {
|
||||
Dispose();
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public SubscriptionSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_SubscriptionSession(SipStack.getCPtr(Stack)), true) {
|
||||
}
|
||||
|
||||
public bool Subscribe() {
|
||||
bool ret = tinyWRAPPINVOKE.SubscriptionSession_Subscribe(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool UnSubscribe() {
|
||||
bool ret = tinyWRAPPINVOKE.SubscriptionSession_UnSubscribe(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,3 +1,16 @@
|
|||
/* File : csharp.i */
|
||||
/* File : csharp.i
|
||||
* http://www.swig.org/Doc1.3/CSharp.html
|
||||
*/
|
||||
|
||||
|
||||
// Mapping void* as byte[]
|
||||
%typemap(ctype) void * "void *"
|
||||
%typemap(imtype) void * "byte[]"
|
||||
%typemap(cstype) void * "byte[]"
|
||||
%typemap(csin) void * "$csinput"
|
||||
%typemap(csout) void * { return $imcall; }
|
||||
%typemap(in) void * %{ $1 = $input; %}
|
||||
%typemap(out) void * %{ $result = $1; %}
|
||||
%typemap(csdirectorin) void * "$iminput"
|
||||
|
||||
%include ../_common/tinyWRAP.i
|
||||
|
|
|
@ -54,15 +54,19 @@ namespace test
|
|||
regSession.Register();
|
||||
|
||||
/* Send SUBSCRIBE(reg) */
|
||||
/*subSession = new SubscriptionSession(stack);
|
||||
subSession = new SubscriptionSession(sipStack);
|
||||
subSession.addHeader("Event", "reg");
|
||||
subSession.addHeader("Accept", "application/reginfo+xml");
|
||||
subSession.addHeader("Allow-Events", "refer, presence, presence.winfo, xcap-diff, conference");
|
||||
subSession.setExpires(35);
|
||||
|
||||
//String s = "H\x00\x15eg\x09\x20mamadou";
|
||||
//subSession.setPayload(s, (uint)s.Length);
|
||||
subSession.Subscribe();*/
|
||||
//while (true){
|
||||
// byte[] bytes = Encoding.UTF8.GetBytes("Salut comment tu vas?");
|
||||
//subSession.setPayload(bytes, (uint)bytes.Length);
|
||||
//}
|
||||
|
||||
|
||||
//subSession.Subscribe();
|
||||
|
||||
Console.Read();
|
||||
|
||||
|
@ -130,6 +134,13 @@ namespace test
|
|||
short code = e.getCode();
|
||||
tsip_register_event_type_t type = e.getType();
|
||||
RegistrationSession session = e.getSession();
|
||||
SipMessage message = e.getSipMessage();
|
||||
|
||||
if (message != null)
|
||||
{
|
||||
Console.WriteLine("call-id={0}", message.getSipHeaderValue("call-id"));
|
||||
//byte[] bytes = message.getContent();
|
||||
}
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
@ -148,6 +159,7 @@ namespace test
|
|||
short code = e.getCode();
|
||||
tsip_subscribe_event_type_t type = e.getType();
|
||||
SubscriptionSession session = e.getSession();
|
||||
SipMessage message = e.getSipMessage();
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
|
|
@ -63,6 +63,9 @@
|
|||
<Compile Include="..\SipEvent.cs">
|
||||
<Link>SipEvent.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\SipMessage.cs">
|
||||
<Link>SipMessage.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\SipSession.cs">
|
||||
<Link>SipSession.cs</Link>
|
||||
</Compile>
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 tinyWRAP {
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 tinyWRAP {
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -201,6 +201,10 @@
|
|||
RelativePath="..\_common\SipEvent.cxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\_common\SipMessage.cxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\_common\SipSession.cxx"
|
||||
>
|
||||
|
@ -267,6 +271,10 @@
|
|||
RelativePath="..\_common\SipEvent.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\_common\SipMessage.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\_common\SipSession.h"
|
||||
>
|
||||
|
@ -312,10 +320,6 @@
|
|||
RelativePath="..\_common\tinyWRAP.i"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\_common\XcapStack.i"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="languages"
|
||||
|
@ -340,6 +344,10 @@
|
|||
RelativePath="..\ruby\ruby.i"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\_common\XcapStack.i"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
</Files>
|
||||
|
|
|
@ -1,426 +1,447 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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;
|
||||
|
||||
class tinyWRAPPINVOKE {
|
||||
|
||||
protected class SWIGExceptionHelper {
|
||||
|
||||
public delegate void ExceptionDelegate(string message);
|
||||
public delegate void ExceptionArgumentDelegate(string message, string paramName);
|
||||
|
||||
static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException);
|
||||
static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException);
|
||||
static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException);
|
||||
static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException);
|
||||
static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException);
|
||||
static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException);
|
||||
static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException);
|
||||
static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException);
|
||||
static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException);
|
||||
static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException);
|
||||
static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException);
|
||||
|
||||
static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException);
|
||||
static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException);
|
||||
static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionCallbacks_tinyWRAP")]
|
||||
public static extern void SWIGRegisterExceptionCallbacks_tinyWRAP(
|
||||
ExceptionDelegate applicationDelegate,
|
||||
ExceptionDelegate arithmeticDelegate,
|
||||
ExceptionDelegate divideByZeroDelegate,
|
||||
ExceptionDelegate indexOutOfRangeDelegate,
|
||||
ExceptionDelegate invalidCastDelegate,
|
||||
ExceptionDelegate invalidOperationDelegate,
|
||||
ExceptionDelegate ioDelegate,
|
||||
ExceptionDelegate nullReferenceDelegate,
|
||||
ExceptionDelegate outOfMemoryDelegate,
|
||||
ExceptionDelegate overflowDelegate,
|
||||
ExceptionDelegate systemExceptionDelegate);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_tinyWRAP")]
|
||||
public static extern void SWIGRegisterExceptionCallbacksArgument_tinyWRAP(
|
||||
ExceptionArgumentDelegate argumentDelegate,
|
||||
ExceptionArgumentDelegate argumentNullDelegate,
|
||||
ExceptionArgumentDelegate argumentOutOfRangeDelegate);
|
||||
|
||||
static void SetPendingApplicationException(string message) {
|
||||
SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingArithmeticException(string message) {
|
||||
SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingDivideByZeroException(string message) {
|
||||
SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingIndexOutOfRangeException(string message) {
|
||||
SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingInvalidCastException(string message) {
|
||||
SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingInvalidOperationException(string message) {
|
||||
SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingIOException(string message) {
|
||||
SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingNullReferenceException(string message) {
|
||||
SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingOutOfMemoryException(string message) {
|
||||
SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingOverflowException(string message) {
|
||||
SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingSystemException(string message) {
|
||||
SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
|
||||
static void SetPendingArgumentException(string message, string paramName) {
|
||||
SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingArgumentNullException(string message, string paramName) {
|
||||
Exception e = SWIGPendingException.Retrieve();
|
||||
if (e != null) message = message + " Inner Exception: " + e.Message;
|
||||
SWIGPendingException.Set(new System.ArgumentNullException(paramName, message));
|
||||
}
|
||||
static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
|
||||
Exception e = SWIGPendingException.Retrieve();
|
||||
if (e != null) message = message + " Inner Exception: " + e.Message;
|
||||
SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message));
|
||||
}
|
||||
|
||||
static SWIGExceptionHelper() {
|
||||
SWIGRegisterExceptionCallbacks_tinyWRAP(
|
||||
applicationDelegate,
|
||||
arithmeticDelegate,
|
||||
divideByZeroDelegate,
|
||||
indexOutOfRangeDelegate,
|
||||
invalidCastDelegate,
|
||||
invalidOperationDelegate,
|
||||
ioDelegate,
|
||||
nullReferenceDelegate,
|
||||
outOfMemoryDelegate,
|
||||
overflowDelegate,
|
||||
systemDelegate);
|
||||
|
||||
SWIGRegisterExceptionCallbacksArgument_tinyWRAP(
|
||||
argumentDelegate,
|
||||
argumentNullDelegate,
|
||||
argumentOutOfRangeDelegate);
|
||||
}
|
||||
}
|
||||
|
||||
protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
|
||||
|
||||
public class SWIGPendingException {
|
||||
[ThreadStatic]
|
||||
private static Exception pendingException = null;
|
||||
private static int numExceptionsPending = 0;
|
||||
|
||||
public static bool Pending {
|
||||
get {
|
||||
bool pending = false;
|
||||
if (numExceptionsPending > 0)
|
||||
if (pendingException != null)
|
||||
pending = true;
|
||||
return pending;
|
||||
}
|
||||
}
|
||||
|
||||
public static void Set(Exception e) {
|
||||
if (pendingException != null)
|
||||
throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
|
||||
pendingException = e;
|
||||
lock(typeof(tinyWRAPPINVOKE)) {
|
||||
numExceptionsPending++;
|
||||
}
|
||||
}
|
||||
|
||||
public static Exception Retrieve() {
|
||||
Exception e = null;
|
||||
if (numExceptionsPending > 0) {
|
||||
if (pendingException != null) {
|
||||
e = pendingException;
|
||||
pendingException = null;
|
||||
lock(typeof(tinyWRAPPINVOKE)) {
|
||||
numExceptionsPending--;
|
||||
}
|
||||
}
|
||||
}
|
||||
return e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected class SWIGStringHelper {
|
||||
|
||||
public delegate string SWIGStringDelegate(string message);
|
||||
static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="SWIGRegisterStringCallback_tinyWRAP")]
|
||||
public static extern void SWIGRegisterStringCallback_tinyWRAP(SWIGStringDelegate stringDelegate);
|
||||
|
||||
static string CreateString(string cString) {
|
||||
return cString;
|
||||
}
|
||||
|
||||
static SWIGStringHelper() {
|
||||
SWIGRegisterStringCallback_tinyWRAP(stringDelegate);
|
||||
}
|
||||
}
|
||||
|
||||
static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
|
||||
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipUri")]
|
||||
public static extern IntPtr new_SipUri(string jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipUri")]
|
||||
public static extern void delete_SipUri(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_0")]
|
||||
public static extern bool SipUri_isValid__SWIG_0(string jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_1")]
|
||||
public static extern bool SipUri_isValid__SWIG_1(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipEvent")]
|
||||
public static extern IntPtr new_SipEvent();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipEvent")]
|
||||
public static extern void delete_SipEvent(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getCode")]
|
||||
public static extern short SipEvent_getCode(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getPhrase")]
|
||||
public static extern string SipEvent_getPhrase(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getBaseSession")]
|
||||
public static extern IntPtr SipEvent_getBaseSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipSession")]
|
||||
public static extern IntPtr new_SipSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipSession")]
|
||||
public static extern void delete_SipSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addHeader")]
|
||||
public static extern bool SipSession_addHeader(HandleRef jarg1, string jarg2, string jarg3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeHeader")]
|
||||
public static extern bool SipSession_removeHeader(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_0")]
|
||||
public static extern bool SipSession_addCaps__SWIG_0(HandleRef jarg1, string jarg2, string jarg3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_1")]
|
||||
public static extern bool SipSession_addCaps__SWIG_1(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeCaps")]
|
||||
public static extern bool SipSession_removeCaps(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setExpires")]
|
||||
public static extern bool SipSession_setExpires(HandleRef jarg1, uint jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setFromUri")]
|
||||
public static extern bool SipSession_setFromUri(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setToUri")]
|
||||
public static extern bool SipSession_setToUri(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setPayload")]
|
||||
public static extern bool SipSession_setPayload(HandleRef jarg1, string jarg2, uint jarg3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationEvent")]
|
||||
public static extern IntPtr new_RegistrationEvent();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationEvent")]
|
||||
public static extern void delete_RegistrationEvent(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getType")]
|
||||
public static extern int RegistrationEvent_getType(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getSession")]
|
||||
public static extern IntPtr RegistrationEvent_getSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationSession")]
|
||||
public static extern IntPtr new_RegistrationSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationSession")]
|
||||
public static extern void delete_RegistrationSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_Register")]
|
||||
public static extern bool RegistrationSession_Register(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_UnRegister")]
|
||||
public static extern bool RegistrationSession_UnRegister(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SubscriptionEvent")]
|
||||
public static extern IntPtr new_SubscriptionEvent();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionEvent")]
|
||||
public static extern void delete_SubscriptionEvent(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getType")]
|
||||
public static extern int SubscriptionEvent_getType(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getSession")]
|
||||
public static extern IntPtr SubscriptionEvent_getSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SubscriptionSession")]
|
||||
public static extern IntPtr new_SubscriptionSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionSession")]
|
||||
public static extern void delete_SubscriptionSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_Subscribe")]
|
||||
public static extern bool SubscriptionSession_Subscribe(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_UnSubscribe")]
|
||||
public static extern bool SubscriptionSession_UnSubscribe(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipCallback")]
|
||||
public static extern IntPtr new_SipCallback();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipCallback")]
|
||||
public static extern void delete_SipCallback(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationChanged")]
|
||||
public static extern int SipCallback_OnRegistrationChanged(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationChangedSwigExplicitSipCallback")]
|
||||
public static extern int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChanged")]
|
||||
public static extern int SipCallback_OnSubscriptionChanged(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChangedSwigExplicitSipCallback")]
|
||||
public static extern int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(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);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipDebugCallback")]
|
||||
public static extern IntPtr new_SipDebugCallback();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipDebugCallback")]
|
||||
public static extern void delete_SipDebugCallback(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugInfo")]
|
||||
public static extern int SipDebugCallback_OnDebugInfo(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback")]
|
||||
public static extern int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugWarn")]
|
||||
public static extern int SipDebugCallback_OnDebugWarn(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback")]
|
||||
public static extern int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugError")]
|
||||
public static extern int SipDebugCallback_OnDebugError(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback")]
|
||||
public static extern int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugFatal")]
|
||||
public static extern int SipDebugCallback_OnDebugFatal(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback")]
|
||||
public static extern int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_director_connect")]
|
||||
public static extern void SipDebugCallback_director_connect(HandleRef jarg1, SipDebugCallback.SwigDelegateSipDebugCallback_0 delegate0, SipDebugCallback.SwigDelegateSipDebugCallback_1 delegate1, SipDebugCallback.SwigDelegateSipDebugCallback_2 delegate2, SipDebugCallback.SwigDelegateSipDebugCallback_3 delegate3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SafeObject")]
|
||||
public static extern IntPtr new_SafeObject();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SafeObject")]
|
||||
public static extern void delete_SafeObject(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_Lock")]
|
||||
public static extern int SafeObject_Lock(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_UnLock")]
|
||||
public static extern int SafeObject_UnLock(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipStack")]
|
||||
public static extern IntPtr new_SipStack(HandleRef jarg1, string jarg2, string jarg3, string jarg4);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipStack")]
|
||||
public static extern void delete_SipStack(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_start")]
|
||||
public static extern bool SipStack_start(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setDebugCallback")]
|
||||
public static extern bool SipStack_setDebugCallback(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setRealm")]
|
||||
public static extern bool SipStack_setRealm(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPI")]
|
||||
public static extern bool SipStack_setIMPI(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPU")]
|
||||
public static extern bool SipStack_setIMPU(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setPassword")]
|
||||
public static extern bool SipStack_setPassword(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setProxyCSCF")]
|
||||
public static extern bool SipStack_setProxyCSCF(HandleRef jarg1, string jarg2, uint jarg3, string jarg4, string jarg5);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalIP")]
|
||||
public static extern bool SipStack_setLocalIP(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalPort")]
|
||||
public static extern bool SipStack_setLocalPort(HandleRef jarg1, uint jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setEarlyIMS")]
|
||||
public static extern bool SipStack_setEarlyIMS(HandleRef jarg1, bool jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addHeader")]
|
||||
public static extern bool SipStack_addHeader(HandleRef jarg1, string jarg2, string jarg3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_removeHeader")]
|
||||
public static extern bool SipStack_removeHeader(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addDnsServer")]
|
||||
public static extern bool SipStack_addDnsServer(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_isValid")]
|
||||
public static extern bool SipStack_isValid(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_stop")]
|
||||
public static extern bool SipStack_stop(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEventUpcast")]
|
||||
public static extern IntPtr RegistrationEventUpcast(IntPtr objectRef);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSessionUpcast")]
|
||||
public static extern IntPtr RegistrationSessionUpcast(IntPtr objectRef);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEventUpcast")]
|
||||
public static extern IntPtr SubscriptionEventUpcast(IntPtr objectRef);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSessionUpcast")]
|
||||
public static extern IntPtr SubscriptionSessionUpcast(IntPtr objectRef);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStackUpcast")]
|
||||
public static extern IntPtr SipStackUpcast(IntPtr objectRef);
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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;
|
||||
|
||||
class tinyWRAPPINVOKE {
|
||||
|
||||
protected class SWIGExceptionHelper {
|
||||
|
||||
public delegate void ExceptionDelegate(string message);
|
||||
public delegate void ExceptionArgumentDelegate(string message, string paramName);
|
||||
|
||||
static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException);
|
||||
static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException);
|
||||
static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException);
|
||||
static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException);
|
||||
static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException);
|
||||
static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException);
|
||||
static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException);
|
||||
static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException);
|
||||
static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException);
|
||||
static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException);
|
||||
static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException);
|
||||
|
||||
static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException);
|
||||
static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException);
|
||||
static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionCallbacks_tinyWRAP")]
|
||||
public static extern void SWIGRegisterExceptionCallbacks_tinyWRAP(
|
||||
ExceptionDelegate applicationDelegate,
|
||||
ExceptionDelegate arithmeticDelegate,
|
||||
ExceptionDelegate divideByZeroDelegate,
|
||||
ExceptionDelegate indexOutOfRangeDelegate,
|
||||
ExceptionDelegate invalidCastDelegate,
|
||||
ExceptionDelegate invalidOperationDelegate,
|
||||
ExceptionDelegate ioDelegate,
|
||||
ExceptionDelegate nullReferenceDelegate,
|
||||
ExceptionDelegate outOfMemoryDelegate,
|
||||
ExceptionDelegate overflowDelegate,
|
||||
ExceptionDelegate systemExceptionDelegate);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_tinyWRAP")]
|
||||
public static extern void SWIGRegisterExceptionCallbacksArgument_tinyWRAP(
|
||||
ExceptionArgumentDelegate argumentDelegate,
|
||||
ExceptionArgumentDelegate argumentNullDelegate,
|
||||
ExceptionArgumentDelegate argumentOutOfRangeDelegate);
|
||||
|
||||
static void SetPendingApplicationException(string message) {
|
||||
SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingArithmeticException(string message) {
|
||||
SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingDivideByZeroException(string message) {
|
||||
SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingIndexOutOfRangeException(string message) {
|
||||
SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingInvalidCastException(string message) {
|
||||
SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingInvalidOperationException(string message) {
|
||||
SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingIOException(string message) {
|
||||
SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingNullReferenceException(string message) {
|
||||
SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingOutOfMemoryException(string message) {
|
||||
SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingOverflowException(string message) {
|
||||
SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingSystemException(string message) {
|
||||
SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
|
||||
static void SetPendingArgumentException(string message, string paramName) {
|
||||
SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingArgumentNullException(string message, string paramName) {
|
||||
Exception e = SWIGPendingException.Retrieve();
|
||||
if (e != null) message = message + " Inner Exception: " + e.Message;
|
||||
SWIGPendingException.Set(new System.ArgumentNullException(paramName, message));
|
||||
}
|
||||
static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
|
||||
Exception e = SWIGPendingException.Retrieve();
|
||||
if (e != null) message = message + " Inner Exception: " + e.Message;
|
||||
SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message));
|
||||
}
|
||||
|
||||
static SWIGExceptionHelper() {
|
||||
SWIGRegisterExceptionCallbacks_tinyWRAP(
|
||||
applicationDelegate,
|
||||
arithmeticDelegate,
|
||||
divideByZeroDelegate,
|
||||
indexOutOfRangeDelegate,
|
||||
invalidCastDelegate,
|
||||
invalidOperationDelegate,
|
||||
ioDelegate,
|
||||
nullReferenceDelegate,
|
||||
outOfMemoryDelegate,
|
||||
overflowDelegate,
|
||||
systemDelegate);
|
||||
|
||||
SWIGRegisterExceptionCallbacksArgument_tinyWRAP(
|
||||
argumentDelegate,
|
||||
argumentNullDelegate,
|
||||
argumentOutOfRangeDelegate);
|
||||
}
|
||||
}
|
||||
|
||||
protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
|
||||
|
||||
public class SWIGPendingException {
|
||||
[ThreadStatic]
|
||||
private static Exception pendingException = null;
|
||||
private static int numExceptionsPending = 0;
|
||||
|
||||
public static bool Pending {
|
||||
get {
|
||||
bool pending = false;
|
||||
if (numExceptionsPending > 0)
|
||||
if (pendingException != null)
|
||||
pending = true;
|
||||
return pending;
|
||||
}
|
||||
}
|
||||
|
||||
public static void Set(Exception e) {
|
||||
if (pendingException != null)
|
||||
throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
|
||||
pendingException = e;
|
||||
lock(typeof(tinyWRAPPINVOKE)) {
|
||||
numExceptionsPending++;
|
||||
}
|
||||
}
|
||||
|
||||
public static Exception Retrieve() {
|
||||
Exception e = null;
|
||||
if (numExceptionsPending > 0) {
|
||||
if (pendingException != null) {
|
||||
e = pendingException;
|
||||
pendingException = null;
|
||||
lock(typeof(tinyWRAPPINVOKE)) {
|
||||
numExceptionsPending--;
|
||||
}
|
||||
}
|
||||
}
|
||||
return e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected class SWIGStringHelper {
|
||||
|
||||
public delegate string SWIGStringDelegate(string message);
|
||||
static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="SWIGRegisterStringCallback_tinyWRAP")]
|
||||
public static extern void SWIGRegisterStringCallback_tinyWRAP(SWIGStringDelegate stringDelegate);
|
||||
|
||||
static string CreateString(string cString) {
|
||||
return cString;
|
||||
}
|
||||
|
||||
static SWIGStringHelper() {
|
||||
SWIGRegisterStringCallback_tinyWRAP(stringDelegate);
|
||||
}
|
||||
}
|
||||
|
||||
static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
|
||||
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipUri")]
|
||||
public static extern IntPtr new_SipUri(string jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipUri")]
|
||||
public static extern void delete_SipUri(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_0")]
|
||||
public static extern bool SipUri_isValid__SWIG_0(string jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_1")]
|
||||
public static extern bool SipUri_isValid__SWIG_1(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipMessage")]
|
||||
public static extern IntPtr new_SipMessage();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipMessage")]
|
||||
public static extern void delete_SipMessage(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipContent")]
|
||||
public static extern byte[] SipMessage_getSipContent(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderValue__SWIG_0")]
|
||||
public static extern string SipMessage_getSipHeaderValue__SWIG_0(HandleRef jarg1, string jarg2, uint jarg3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderValue__SWIG_1")]
|
||||
public static extern string SipMessage_getSipHeaderValue__SWIG_1(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderParamValue__SWIG_0")]
|
||||
public static extern string SipMessage_getSipHeaderParamValue__SWIG_0(HandleRef jarg1, string jarg2, string jarg3, uint jarg4);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderParamValue__SWIG_1")]
|
||||
public static extern string SipMessage_getSipHeaderParamValue__SWIG_1(HandleRef jarg1, string jarg2, string jarg3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipEvent")]
|
||||
public static extern IntPtr new_SipEvent();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipEvent")]
|
||||
public static extern void delete_SipEvent(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getCode")]
|
||||
public static extern short SipEvent_getCode(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getPhrase")]
|
||||
public static extern string SipEvent_getPhrase(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getBaseSession")]
|
||||
public static extern IntPtr SipEvent_getBaseSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getSipMessage")]
|
||||
public static extern IntPtr SipEvent_getSipMessage(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipSession")]
|
||||
public static extern IntPtr new_SipSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipSession")]
|
||||
public static extern void delete_SipSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addHeader")]
|
||||
public static extern bool SipSession_addHeader(HandleRef jarg1, string jarg2, string jarg3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeHeader")]
|
||||
public static extern bool SipSession_removeHeader(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_0")]
|
||||
public static extern bool SipSession_addCaps__SWIG_0(HandleRef jarg1, string jarg2, string jarg3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_1")]
|
||||
public static extern bool SipSession_addCaps__SWIG_1(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeCaps")]
|
||||
public static extern bool SipSession_removeCaps(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setExpires")]
|
||||
public static extern bool SipSession_setExpires(HandleRef jarg1, uint jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setFromUri")]
|
||||
public static extern bool SipSession_setFromUri(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setToUri")]
|
||||
public static extern bool SipSession_setToUri(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationEvent")]
|
||||
public static extern IntPtr new_RegistrationEvent();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationEvent")]
|
||||
public static extern void delete_RegistrationEvent(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getType")]
|
||||
public static extern int RegistrationEvent_getType(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getSession")]
|
||||
public static extern IntPtr RegistrationEvent_getSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationSession")]
|
||||
public static extern IntPtr new_RegistrationSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationSession")]
|
||||
public static extern void delete_RegistrationSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_Register")]
|
||||
public static extern bool RegistrationSession_Register(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_UnRegister")]
|
||||
public static extern bool RegistrationSession_UnRegister(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SubscriptionEvent")]
|
||||
public static extern IntPtr new_SubscriptionEvent();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionEvent")]
|
||||
public static extern void delete_SubscriptionEvent(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getType")]
|
||||
public static extern int SubscriptionEvent_getType(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getSession")]
|
||||
public static extern IntPtr SubscriptionEvent_getSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SubscriptionSession")]
|
||||
public static extern IntPtr new_SubscriptionSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionSession")]
|
||||
public static extern void delete_SubscriptionSession(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_Subscribe")]
|
||||
public static extern bool SubscriptionSession_Subscribe(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_UnSubscribe")]
|
||||
public static extern bool SubscriptionSession_UnSubscribe(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipCallback")]
|
||||
public static extern IntPtr new_SipCallback();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipCallback")]
|
||||
public static extern void delete_SipCallback(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationChanged")]
|
||||
public static extern int SipCallback_OnRegistrationChanged(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationChangedSwigExplicitSipCallback")]
|
||||
public static extern int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChanged")]
|
||||
public static extern int SipCallback_OnSubscriptionChanged(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionChangedSwigExplicitSipCallback")]
|
||||
public static extern int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(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);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipDebugCallback")]
|
||||
public static extern IntPtr new_SipDebugCallback();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipDebugCallback")]
|
||||
public static extern void delete_SipDebugCallback(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugInfo")]
|
||||
public static extern int SipDebugCallback_OnDebugInfo(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback")]
|
||||
public static extern int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugWarn")]
|
||||
public static extern int SipDebugCallback_OnDebugWarn(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback")]
|
||||
public static extern int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugError")]
|
||||
public static extern int SipDebugCallback_OnDebugError(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback")]
|
||||
public static extern int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugFatal")]
|
||||
public static extern int SipDebugCallback_OnDebugFatal(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback")]
|
||||
public static extern int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipDebugCallback_director_connect")]
|
||||
public static extern void SipDebugCallback_director_connect(HandleRef jarg1, SipDebugCallback.SwigDelegateSipDebugCallback_0 delegate0, SipDebugCallback.SwigDelegateSipDebugCallback_1 delegate1, SipDebugCallback.SwigDelegateSipDebugCallback_2 delegate2, SipDebugCallback.SwigDelegateSipDebugCallback_3 delegate3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SafeObject")]
|
||||
public static extern IntPtr new_SafeObject();
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SafeObject")]
|
||||
public static extern void delete_SafeObject(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_Lock")]
|
||||
public static extern int SafeObject_Lock(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_UnLock")]
|
||||
public static extern int SafeObject_UnLock(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipStack")]
|
||||
public static extern IntPtr new_SipStack(HandleRef jarg1, string jarg2, string jarg3, string jarg4);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipStack")]
|
||||
public static extern void delete_SipStack(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_start")]
|
||||
public static extern bool SipStack_start(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setDebugCallback")]
|
||||
public static extern bool SipStack_setDebugCallback(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setRealm")]
|
||||
public static extern bool SipStack_setRealm(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPI")]
|
||||
public static extern bool SipStack_setIMPI(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPU")]
|
||||
public static extern bool SipStack_setIMPU(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setPassword")]
|
||||
public static extern bool SipStack_setPassword(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setProxyCSCF")]
|
||||
public static extern bool SipStack_setProxyCSCF(HandleRef jarg1, string jarg2, uint jarg3, string jarg4, string jarg5);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalIP")]
|
||||
public static extern bool SipStack_setLocalIP(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalPort")]
|
||||
public static extern bool SipStack_setLocalPort(HandleRef jarg1, uint jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setEarlyIMS")]
|
||||
public static extern bool SipStack_setEarlyIMS(HandleRef jarg1, bool jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addHeader")]
|
||||
public static extern bool SipStack_addHeader(HandleRef jarg1, string jarg2, string jarg3);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_removeHeader")]
|
||||
public static extern bool SipStack_removeHeader(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addDnsServer")]
|
||||
public static extern bool SipStack_addDnsServer(HandleRef jarg1, string jarg2);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_isValid")]
|
||||
public static extern bool SipStack_isValid(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_stop")]
|
||||
public static extern bool SipStack_stop(HandleRef jarg1);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEventUpcast")]
|
||||
public static extern IntPtr RegistrationEventUpcast(IntPtr objectRef);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSessionUpcast")]
|
||||
public static extern IntPtr RegistrationSessionUpcast(IntPtr objectRef);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEventUpcast")]
|
||||
public static extern IntPtr SubscriptionEventUpcast(IntPtr objectRef);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSessionUpcast")]
|
||||
public static extern IntPtr SubscriptionSessionUpcast(IntPtr objectRef);
|
||||
|
||||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStackUpcast")]
|
||||
public static extern IntPtr SipStackUpcast(IntPtr objectRef);
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,57 +1,57 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.39
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
* changes to this file unless you know what you are doing--modify the SWIG
|
||||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#ifndef SWIG_tinyWRAP_WRAP_H_
|
||||
#define SWIG_tinyWRAP_WRAP_H_
|
||||
|
||||
class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
SwigDirector_SipCallback();
|
||||
virtual ~SwigDirector_SipCallback();
|
||||
virtual int OnRegistrationChanged(RegistrationEvent const *e);
|
||||
virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
|
||||
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *);
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback1_t)(void *);
|
||||
void swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged);
|
||||
|
||||
private:
|
||||
SWIG_Callback0_t swig_callbackOnRegistrationChanged;
|
||||
SWIG_Callback1_t swig_callbackOnSubscriptionChanged;
|
||||
void swig_init_callbacks();
|
||||
};
|
||||
|
||||
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
SwigDirector_SipDebugCallback();
|
||||
virtual ~SwigDirector_SipDebugCallback();
|
||||
virtual int OnDebugInfo(char const *message);
|
||||
virtual int OnDebugWarn(char const *message);
|
||||
virtual int OnDebugError(char const *message);
|
||||
virtual int OnDebugFatal(char const *message);
|
||||
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback0_t)(char *);
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback1_t)(char *);
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback2_t)(char *);
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback3_t)(char *);
|
||||
void swig_connect_director(SWIG_Callback0_t callbackOnDebugInfo, SWIG_Callback1_t callbackOnDebugWarn, SWIG_Callback2_t callbackOnDebugError, SWIG_Callback3_t callbackOnDebugFatal);
|
||||
|
||||
private:
|
||||
SWIG_Callback0_t swig_callbackOnDebugInfo;
|
||||
SWIG_Callback1_t swig_callbackOnDebugWarn;
|
||||
SWIG_Callback2_t swig_callbackOnDebugError;
|
||||
SWIG_Callback3_t swig_callbackOnDebugFatal;
|
||||
void swig_init_callbacks();
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.39
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
* changes to this file unless you know what you are doing--modify the SWIG
|
||||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#ifndef SWIG_tinyWRAP_WRAP_H_
|
||||
#define SWIG_tinyWRAP_WRAP_H_
|
||||
|
||||
class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
SwigDirector_SipCallback();
|
||||
virtual ~SwigDirector_SipCallback();
|
||||
virtual int OnRegistrationChanged(RegistrationEvent const *e);
|
||||
virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
|
||||
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *);
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback1_t)(void *);
|
||||
void swig_connect_director(SWIG_Callback0_t callbackOnRegistrationChanged, SWIG_Callback1_t callbackOnSubscriptionChanged);
|
||||
|
||||
private:
|
||||
SWIG_Callback0_t swig_callbackOnRegistrationChanged;
|
||||
SWIG_Callback1_t swig_callbackOnSubscriptionChanged;
|
||||
void swig_init_callbacks();
|
||||
};
|
||||
|
||||
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
SwigDirector_SipDebugCallback();
|
||||
virtual ~SwigDirector_SipDebugCallback();
|
||||
virtual int OnDebugInfo(char const *message);
|
||||
virtual int OnDebugWarn(char const *message);
|
||||
virtual int OnDebugError(char const *message);
|
||||
virtual int OnDebugFatal(char const *message);
|
||||
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback0_t)(char *);
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback1_t)(char *);
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback2_t)(char *);
|
||||
typedef int (SWIGSTDCALL* SWIG_Callback3_t)(char *);
|
||||
void swig_connect_director(SWIG_Callback0_t callbackOnDebugInfo, SWIG_Callback1_t callbackOnDebugWarn, SWIG_Callback2_t callbackOnDebugError, SWIG_Callback3_t callbackOnDebugFatal);
|
||||
|
||||
private:
|
||||
SWIG_Callback0_t swig_callbackOnDebugInfo;
|
||||
SWIG_Callback1_t swig_callbackOnDebugWarn;
|
||||
SWIG_Callback2_t swig_callbackOnDebugError;
|
||||
SWIG_Callback3_t swig_callbackOnDebugFatal;
|
||||
void swig_init_callbacks();
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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_event_type_t {
|
||||
tsip_event_invite,
|
||||
tsip_event_message,
|
||||
tsip_event_options,
|
||||
tsip_event_publish,
|
||||
tsip_event_register,
|
||||
tsip_event_subscribe,
|
||||
tsip_event_dialog
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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_event_type_t {
|
||||
tsip_event_invite,
|
||||
tsip_event_message,
|
||||
tsip_event_options,
|
||||
tsip_event_publish,
|
||||
tsip_event_register,
|
||||
tsip_event_subscribe,
|
||||
tsip_event_dialog
|
||||
}
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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_register_event_type_t {
|
||||
tsip_i_register,
|
||||
tsip_ai_register,
|
||||
tsip_o_register,
|
||||
tsip_ao_register,
|
||||
tsip_i_unregister,
|
||||
tsip_ai_unregister,
|
||||
tsip_o_unregister,
|
||||
tsip_ao_unregister
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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_register_event_type_t {
|
||||
tsip_i_register,
|
||||
tsip_ai_register,
|
||||
tsip_o_register,
|
||||
tsip_ao_register,
|
||||
tsip_i_unregister,
|
||||
tsip_ai_unregister,
|
||||
tsip_o_unregister,
|
||||
tsip_ao_unregister
|
||||
}
|
||||
|
|
|
@ -1,23 +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_subscribe_event_type_t {
|
||||
tsip_i_subscribe,
|
||||
tsip_ai_subscribe,
|
||||
tsip_o_subscribe,
|
||||
tsip_ao_subscribe,
|
||||
tsip_i_unsubscribe,
|
||||
tsip_ai_unsubscribe,
|
||||
tsip_o_unsubscribe,
|
||||
tsip_ao_unsubscribe,
|
||||
tsip_i_notify,
|
||||
tsip_ai_notify,
|
||||
tsip_o_notify,
|
||||
tsip_ao_notify
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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_subscribe_event_type_t {
|
||||
tsip_i_subscribe,
|
||||
tsip_ai_subscribe,
|
||||
tsip_o_subscribe,
|
||||
tsip_ao_subscribe,
|
||||
tsip_i_unsubscribe,
|
||||
tsip_ai_unsubscribe,
|
||||
tsip_o_unsubscribe,
|
||||
tsip_ao_unsubscribe,
|
||||
tsip_i_notify,
|
||||
tsip_ai_notify,
|
||||
tsip_o_notify,
|
||||
tsip_ao_notify
|
||||
}
|
||||
|
|
|
@ -1,49 +1,49 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationEvent extends SipEvent {
|
||||
private long swigCPtr;
|
||||
|
||||
protected RegistrationEvent(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGRegistrationEventUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(RegistrationEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public RegistrationEvent() {
|
||||
this(tinyWRAPJNI.new_RegistrationEvent(), true);
|
||||
}
|
||||
|
||||
public tsip_register_event_type_t getType() {
|
||||
return tsip_register_event_type_t.swigToEnum(tinyWRAPJNI.RegistrationEvent_getType(swigCPtr, this));
|
||||
}
|
||||
|
||||
public RegistrationSession getSession() {
|
||||
long cPtr = tinyWRAPJNI.RegistrationEvent_getSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new RegistrationSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationEvent extends SipEvent {
|
||||
private long swigCPtr;
|
||||
|
||||
protected RegistrationEvent(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGRegistrationEventUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(RegistrationEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public RegistrationEvent() {
|
||||
this(tinyWRAPJNI.new_RegistrationEvent(), true);
|
||||
}
|
||||
|
||||
public tsip_register_event_type_t getType() {
|
||||
return tsip_register_event_type_t.swigToEnum(tinyWRAPJNI.RegistrationEvent_getType(swigCPtr, this));
|
||||
}
|
||||
|
||||
public RegistrationSession getSession() {
|
||||
long cPtr = tinyWRAPJNI.RegistrationEvent_getSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new RegistrationSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationSession extends SipSession {
|
||||
private long swigCPtr;
|
||||
|
||||
protected RegistrationSession(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGRegistrationSessionUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(RegistrationSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public RegistrationSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_RegistrationSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
}
|
||||
|
||||
public boolean Register() {
|
||||
return tinyWRAPJNI.RegistrationSession_Register(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean UnRegister() {
|
||||
return tinyWRAPJNI.RegistrationSession_UnRegister(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationSession extends SipSession {
|
||||
private long swigCPtr;
|
||||
|
||||
protected RegistrationSession(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGRegistrationSessionUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(RegistrationSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public RegistrationSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_RegistrationSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
}
|
||||
|
||||
public boolean Register() {
|
||||
return tinyWRAPJNI.RegistrationSession_Register(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean UnRegister() {
|
||||
return tinyWRAPJNI.RegistrationSession_UnRegister(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SafeObject {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SafeObject(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SafeObject obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SafeObject() {
|
||||
this(tinyWRAPJNI.new_SafeObject(), true);
|
||||
}
|
||||
|
||||
public int Lock() {
|
||||
return tinyWRAPJNI.SafeObject_Lock(swigCPtr, this);
|
||||
}
|
||||
|
||||
public int UnLock() {
|
||||
return tinyWRAPJNI.SafeObject_UnLock(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SafeObject {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SafeObject(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SafeObject obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SafeObject() {
|
||||
this(tinyWRAPJNI.new_SafeObject(), true);
|
||||
}
|
||||
|
||||
public int Lock() {
|
||||
return tinyWRAPJNI.SafeObject_Lock(swigCPtr, this);
|
||||
}
|
||||
|
||||
public int UnLock() {
|
||||
return tinyWRAPJNI.SafeObject_UnLock(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,64 +1,64 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipCallback {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipCallback(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipCallback obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected void swigDirectorDisconnect() {
|
||||
swigCMemOwn = false;
|
||||
delete();
|
||||
}
|
||||
|
||||
public void swigReleaseOwnership() {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, false);
|
||||
}
|
||||
|
||||
public void swigTakeOwnership() {
|
||||
swigCMemOwn = true;
|
||||
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, true);
|
||||
}
|
||||
|
||||
public SipCallback() {
|
||||
this(tinyWRAPJNI.new_SipCallback(), true);
|
||||
tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
|
||||
}
|
||||
|
||||
public int OnRegistrationChanged(RegistrationEvent e) {
|
||||
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationChanged(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e);
|
||||
}
|
||||
|
||||
public int OnSubscriptionChanged(SubscriptionEvent e) {
|
||||
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipCallback {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipCallback(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipCallback obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected void swigDirectorDisconnect() {
|
||||
swigCMemOwn = false;
|
||||
delete();
|
||||
}
|
||||
|
||||
public void swigReleaseOwnership() {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, false);
|
||||
}
|
||||
|
||||
public void swigTakeOwnership() {
|
||||
swigCMemOwn = true;
|
||||
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, true);
|
||||
}
|
||||
|
||||
public SipCallback() {
|
||||
this(tinyWRAPJNI.new_SipCallback(), true);
|
||||
tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
|
||||
}
|
||||
|
||||
public int OnRegistrationChanged(RegistrationEvent e) {
|
||||
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationChanged(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e);
|
||||
}
|
||||
|
||||
public int OnSubscriptionChanged(SubscriptionEvent e) {
|
||||
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,72 +1,72 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipDebugCallback {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipDebugCallback(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipDebugCallback obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipDebugCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected void swigDirectorDisconnect() {
|
||||
swigCMemOwn = false;
|
||||
delete();
|
||||
}
|
||||
|
||||
public void swigReleaseOwnership() {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, false);
|
||||
}
|
||||
|
||||
public void swigTakeOwnership() {
|
||||
swigCMemOwn = true;
|
||||
tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, true);
|
||||
}
|
||||
|
||||
public SipDebugCallback() {
|
||||
this(tinyWRAPJNI.new_SipDebugCallback(), true);
|
||||
tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
|
||||
}
|
||||
|
||||
public int OnDebugInfo(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugWarn(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugError(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugFatal(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipDebugCallback {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipDebugCallback(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipDebugCallback obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipDebugCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected void swigDirectorDisconnect() {
|
||||
swigCMemOwn = false;
|
||||
delete();
|
||||
}
|
||||
|
||||
public void swigReleaseOwnership() {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, false);
|
||||
}
|
||||
|
||||
public void swigTakeOwnership() {
|
||||
swigCMemOwn = true;
|
||||
tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, true);
|
||||
}
|
||||
|
||||
public SipDebugCallback() {
|
||||
this(tinyWRAPJNI.new_SipDebugCallback(), true);
|
||||
tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
|
||||
}
|
||||
|
||||
public int OnDebugInfo(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugWarn(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugError(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugFatal(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,53 +1,58 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipEvent {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipEvent(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipEvent() {
|
||||
this(tinyWRAPJNI.new_SipEvent(), true);
|
||||
}
|
||||
|
||||
public short getCode() {
|
||||
return tinyWRAPJNI.SipEvent_getCode(swigCPtr, this);
|
||||
}
|
||||
|
||||
public String getPhrase() {
|
||||
return tinyWRAPJNI.SipEvent_getPhrase(swigCPtr, this);
|
||||
}
|
||||
|
||||
public SipSession getBaseSession() {
|
||||
long cPtr = tinyWRAPJNI.SipEvent_getBaseSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SipSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipEvent {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipEvent(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipEvent() {
|
||||
this(tinyWRAPJNI.new_SipEvent(), true);
|
||||
}
|
||||
|
||||
public short getCode() {
|
||||
return tinyWRAPJNI.SipEvent_getCode(swigCPtr, this);
|
||||
}
|
||||
|
||||
public String getPhrase() {
|
||||
return tinyWRAPJNI.SipEvent_getPhrase(swigCPtr, this);
|
||||
}
|
||||
|
||||
public SipSession getBaseSession() {
|
||||
long cPtr = tinyWRAPJNI.SipEvent_getBaseSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SipSession(cPtr, false);
|
||||
}
|
||||
|
||||
public SipMessage getSipMessage() {
|
||||
long cPtr = tinyWRAPJNI.SipEvent_getSipMessage(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SipMessage(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipMessage {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipMessage(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipMessage obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipMessage(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipMessage() {
|
||||
this(tinyWRAPJNI.new_SipMessage(), true);
|
||||
}
|
||||
|
||||
public byte[] getSipContent() { return tinyWRAPJNI.SipMessage_getSipContent(swigCPtr, this); }
|
||||
|
||||
public String getSipHeaderValue(String name, long index) {
|
||||
return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, this, name, index);
|
||||
}
|
||||
|
||||
public String getSipHeaderValue(String name) {
|
||||
return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_1(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public String getSipHeaderParamValue(String name, String param, long index) {
|
||||
return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_0(swigCPtr, this, name, param, index);
|
||||
}
|
||||
|
||||
public String getSipHeaderParamValue(String name, String param) {
|
||||
return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_1(swigCPtr, this, name, param);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,76 +1,72 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipSession {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipSession(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipSession(SipStack stack) {
|
||||
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
return tinyWRAPJNI.SipSession_addHeader(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean removeHeader(String name) {
|
||||
return tinyWRAPJNI.SipSession_removeHeader(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean addCaps(String name, String value) {
|
||||
return tinyWRAPJNI.SipSession_addCaps__SWIG_0(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean addCaps(String name) {
|
||||
return tinyWRAPJNI.SipSession_addCaps__SWIG_1(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean removeCaps(String name) {
|
||||
return tinyWRAPJNI.SipSession_removeCaps(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean setExpires(long expires) {
|
||||
return tinyWRAPJNI.SipSession_setExpires(swigCPtr, this, expires);
|
||||
}
|
||||
|
||||
public boolean setFromUri(String fromUri) {
|
||||
return tinyWRAPJNI.SipSession_setFromUri(swigCPtr, this, fromUri);
|
||||
}
|
||||
|
||||
public boolean setToUri(String toUri) {
|
||||
return tinyWRAPJNI.SipSession_setToUri(swigCPtr, this, toUri);
|
||||
}
|
||||
|
||||
public boolean setPayload(String str, long len) {
|
||||
return tinyWRAPJNI.SipSession_setPayload(swigCPtr, this, str, len);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipSession {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipSession(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipSession(SipStack stack) {
|
||||
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
return tinyWRAPJNI.SipSession_addHeader(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean removeHeader(String name) {
|
||||
return tinyWRAPJNI.SipSession_removeHeader(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean addCaps(String name, String value) {
|
||||
return tinyWRAPJNI.SipSession_addCaps__SWIG_0(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean addCaps(String name) {
|
||||
return tinyWRAPJNI.SipSession_addCaps__SWIG_1(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean removeCaps(String name) {
|
||||
return tinyWRAPJNI.SipSession_removeCaps(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean setExpires(long expires) {
|
||||
return tinyWRAPJNI.SipSession_setExpires(swigCPtr, this, expires);
|
||||
}
|
||||
|
||||
public boolean setFromUri(String fromUri) {
|
||||
return tinyWRAPJNI.SipSession_setFromUri(swigCPtr, this, fromUri);
|
||||
}
|
||||
|
||||
public boolean setToUri(String toUri) {
|
||||
return tinyWRAPJNI.SipSession_setToUri(swigCPtr, this, toUri);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,100 +1,100 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipStack extends SafeObject {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SipStack(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSipStackUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipStack obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SipStack(SipCallback callback, String realm_uri, String impi_uri, String impu_uri) {
|
||||
this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(callback), callback, realm_uri, impi_uri, impu_uri), true);
|
||||
}
|
||||
|
||||
public boolean start() {
|
||||
return tinyWRAPJNI.SipStack_start(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean setDebugCallback(SipDebugCallback callback) {
|
||||
return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, SipDebugCallback.getCPtr(callback), callback);
|
||||
}
|
||||
|
||||
public boolean setRealm(String realm_uri) {
|
||||
return tinyWRAPJNI.SipStack_setRealm(swigCPtr, this, realm_uri);
|
||||
}
|
||||
|
||||
public boolean setIMPI(String impi) {
|
||||
return tinyWRAPJNI.SipStack_setIMPI(swigCPtr, this, impi);
|
||||
}
|
||||
|
||||
public boolean setIMPU(String impu_uri) {
|
||||
return tinyWRAPJNI.SipStack_setIMPU(swigCPtr, this, impu_uri);
|
||||
}
|
||||
|
||||
public boolean setPassword(String password) {
|
||||
return tinyWRAPJNI.SipStack_setPassword(swigCPtr, this, password);
|
||||
}
|
||||
|
||||
public boolean setProxyCSCF(String fqdn, long port, String transport, String ipversion) {
|
||||
return tinyWRAPJNI.SipStack_setProxyCSCF(swigCPtr, this, fqdn, port, transport, ipversion);
|
||||
}
|
||||
|
||||
public boolean setLocalIP(String ip) {
|
||||
return tinyWRAPJNI.SipStack_setLocalIP(swigCPtr, this, ip);
|
||||
}
|
||||
|
||||
public boolean setLocalPort(long port) {
|
||||
return tinyWRAPJNI.SipStack_setLocalPort(swigCPtr, this, port);
|
||||
}
|
||||
|
||||
public boolean setEarlyIMS(boolean enabled) {
|
||||
return tinyWRAPJNI.SipStack_setEarlyIMS(swigCPtr, this, enabled);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
return tinyWRAPJNI.SipStack_addHeader(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean removeHeader(String name) {
|
||||
return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean addDnsServer(String ip) {
|
||||
return tinyWRAPJNI.SipStack_addDnsServer(swigCPtr, this, ip);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return tinyWRAPJNI.SipStack_isValid(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean stop() {
|
||||
return tinyWRAPJNI.SipStack_stop(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipStack extends SafeObject {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SipStack(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSipStackUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipStack obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SipStack(SipCallback callback, String realm_uri, String impi_uri, String impu_uri) {
|
||||
this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(callback), callback, realm_uri, impi_uri, impu_uri), true);
|
||||
}
|
||||
|
||||
public boolean start() {
|
||||
return tinyWRAPJNI.SipStack_start(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean setDebugCallback(SipDebugCallback callback) {
|
||||
return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, SipDebugCallback.getCPtr(callback), callback);
|
||||
}
|
||||
|
||||
public boolean setRealm(String realm_uri) {
|
||||
return tinyWRAPJNI.SipStack_setRealm(swigCPtr, this, realm_uri);
|
||||
}
|
||||
|
||||
public boolean setIMPI(String impi) {
|
||||
return tinyWRAPJNI.SipStack_setIMPI(swigCPtr, this, impi);
|
||||
}
|
||||
|
||||
public boolean setIMPU(String impu_uri) {
|
||||
return tinyWRAPJNI.SipStack_setIMPU(swigCPtr, this, impu_uri);
|
||||
}
|
||||
|
||||
public boolean setPassword(String password) {
|
||||
return tinyWRAPJNI.SipStack_setPassword(swigCPtr, this, password);
|
||||
}
|
||||
|
||||
public boolean setProxyCSCF(String fqdn, long port, String transport, String ipversion) {
|
||||
return tinyWRAPJNI.SipStack_setProxyCSCF(swigCPtr, this, fqdn, port, transport, ipversion);
|
||||
}
|
||||
|
||||
public boolean setLocalIP(String ip) {
|
||||
return tinyWRAPJNI.SipStack_setLocalIP(swigCPtr, this, ip);
|
||||
}
|
||||
|
||||
public boolean setLocalPort(long port) {
|
||||
return tinyWRAPJNI.SipStack_setLocalPort(swigCPtr, this, port);
|
||||
}
|
||||
|
||||
public boolean setEarlyIMS(boolean enabled) {
|
||||
return tinyWRAPJNI.SipStack_setEarlyIMS(swigCPtr, this, enabled);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
return tinyWRAPJNI.SipStack_addHeader(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean removeHeader(String name) {
|
||||
return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean addDnsServer(String ip) {
|
||||
return tinyWRAPJNI.SipStack_addDnsServer(swigCPtr, this, ip);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return tinyWRAPJNI.SipStack_isValid(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean stop() {
|
||||
return tinyWRAPJNI.SipStack_stop(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipUri {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipUri(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipUri obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipUri(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipUri(String arg0) {
|
||||
this(tinyWRAPJNI.new_SipUri(arg0), true);
|
||||
}
|
||||
|
||||
public static boolean isValid(String arg0) {
|
||||
return tinyWRAPJNI.SipUri_isValid__SWIG_0(arg0);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return tinyWRAPJNI.SipUri_isValid__SWIG_1(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipUri {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipUri(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipUri obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipUri(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipUri(String arg0) {
|
||||
this(tinyWRAPJNI.new_SipUri(arg0), true);
|
||||
}
|
||||
|
||||
public static boolean isValid(String arg0) {
|
||||
return tinyWRAPJNI.SipUri_isValid__SWIG_0(arg0);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return tinyWRAPJNI.SipUri_isValid__SWIG_1(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,49 +1,49 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionEvent extends SipEvent {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SubscriptionEvent(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSubscriptionEventUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SubscriptionEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SubscriptionEvent() {
|
||||
this(tinyWRAPJNI.new_SubscriptionEvent(), true);
|
||||
}
|
||||
|
||||
public tsip_subscribe_event_type_t getType() {
|
||||
return tsip_subscribe_event_type_t.swigToEnum(tinyWRAPJNI.SubscriptionEvent_getType(swigCPtr, this));
|
||||
}
|
||||
|
||||
public SubscriptionSession getSession() {
|
||||
long cPtr = tinyWRAPJNI.SubscriptionEvent_getSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionEvent extends SipEvent {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SubscriptionEvent(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSubscriptionEventUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SubscriptionEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SubscriptionEvent() {
|
||||
this(tinyWRAPJNI.new_SubscriptionEvent(), true);
|
||||
}
|
||||
|
||||
public tsip_subscribe_event_type_t getType() {
|
||||
return tsip_subscribe_event_type_t.swigToEnum(tinyWRAPJNI.SubscriptionEvent_getType(swigCPtr, this));
|
||||
}
|
||||
|
||||
public SubscriptionSession getSession() {
|
||||
long cPtr = tinyWRAPJNI.SubscriptionEvent_getSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionSession extends SipSession {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SubscriptionSession(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSubscriptionSessionUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SubscriptionSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SubscriptionSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_SubscriptionSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
}
|
||||
|
||||
public boolean Subscribe() {
|
||||
return tinyWRAPJNI.SubscriptionSession_Subscribe(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean UnSubscribe() {
|
||||
return tinyWRAPJNI.SubscriptionSession_UnSubscribe(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionSession extends SipSession {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SubscriptionSession(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSubscriptionSessionUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SubscriptionSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SubscriptionSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_SubscriptionSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
}
|
||||
|
||||
public boolean Subscribe() {
|
||||
return tinyWRAPJNI.SubscriptionSession_Subscribe(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean UnSubscribe() {
|
||||
return tinyWRAPJNI.SubscriptionSession_UnSubscribe(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,49 +1,49 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationEvent extends SipEvent {
|
||||
private long swigCPtr;
|
||||
|
||||
protected RegistrationEvent(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGRegistrationEventUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(RegistrationEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public RegistrationEvent() {
|
||||
this(tinyWRAPJNI.new_RegistrationEvent(), true);
|
||||
}
|
||||
|
||||
public tsip_register_event_type_t getType() {
|
||||
return tsip_register_event_type_t.swigToEnum(tinyWRAPJNI.RegistrationEvent_getType(swigCPtr, this));
|
||||
}
|
||||
|
||||
public RegistrationSession getSession() {
|
||||
long cPtr = tinyWRAPJNI.RegistrationEvent_getSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new RegistrationSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationEvent extends SipEvent {
|
||||
private long swigCPtr;
|
||||
|
||||
protected RegistrationEvent(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGRegistrationEventUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(RegistrationEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public RegistrationEvent() {
|
||||
this(tinyWRAPJNI.new_RegistrationEvent(), true);
|
||||
}
|
||||
|
||||
public tsip_register_event_type_t getType() {
|
||||
return tsip_register_event_type_t.swigToEnum(tinyWRAPJNI.RegistrationEvent_getType(swigCPtr, this));
|
||||
}
|
||||
|
||||
public RegistrationSession getSession() {
|
||||
long cPtr = tinyWRAPJNI.RegistrationEvent_getSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new RegistrationSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationSession extends SipSession {
|
||||
private long swigCPtr;
|
||||
|
||||
protected RegistrationSession(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGRegistrationSessionUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(RegistrationSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public RegistrationSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_RegistrationSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
}
|
||||
|
||||
public boolean Register() {
|
||||
return tinyWRAPJNI.RegistrationSession_Register(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean UnRegister() {
|
||||
return tinyWRAPJNI.RegistrationSession_UnRegister(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 RegistrationSession extends SipSession {
|
||||
private long swigCPtr;
|
||||
|
||||
protected RegistrationSession(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGRegistrationSessionUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(RegistrationSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public RegistrationSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_RegistrationSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
}
|
||||
|
||||
public boolean Register() {
|
||||
return tinyWRAPJNI.RegistrationSession_Register(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean UnRegister() {
|
||||
return tinyWRAPJNI.RegistrationSession_UnRegister(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SafeObject {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SafeObject(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SafeObject obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SafeObject() {
|
||||
this(tinyWRAPJNI.new_SafeObject(), true);
|
||||
}
|
||||
|
||||
public int Lock() {
|
||||
return tinyWRAPJNI.SafeObject_Lock(swigCPtr, this);
|
||||
}
|
||||
|
||||
public int UnLock() {
|
||||
return tinyWRAPJNI.SafeObject_UnLock(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SafeObject {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SafeObject(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SafeObject obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SafeObject() {
|
||||
this(tinyWRAPJNI.new_SafeObject(), true);
|
||||
}
|
||||
|
||||
public int Lock() {
|
||||
return tinyWRAPJNI.SafeObject_Lock(swigCPtr, this);
|
||||
}
|
||||
|
||||
public int UnLock() {
|
||||
return tinyWRAPJNI.SafeObject_UnLock(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,64 +1,64 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipCallback {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipCallback(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipCallback obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected void swigDirectorDisconnect() {
|
||||
swigCMemOwn = false;
|
||||
delete();
|
||||
}
|
||||
|
||||
public void swigReleaseOwnership() {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, false);
|
||||
}
|
||||
|
||||
public void swigTakeOwnership() {
|
||||
swigCMemOwn = true;
|
||||
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, true);
|
||||
}
|
||||
|
||||
public SipCallback() {
|
||||
this(tinyWRAPJNI.new_SipCallback(), true);
|
||||
tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
|
||||
}
|
||||
|
||||
public int OnRegistrationChanged(RegistrationEvent e) {
|
||||
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationChanged(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e);
|
||||
}
|
||||
|
||||
public int OnSubscriptionChanged(SubscriptionEvent e) {
|
||||
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipCallback {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipCallback(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipCallback obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected void swigDirectorDisconnect() {
|
||||
swigCMemOwn = false;
|
||||
delete();
|
||||
}
|
||||
|
||||
public void swigReleaseOwnership() {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, false);
|
||||
}
|
||||
|
||||
public void swigTakeOwnership() {
|
||||
swigCMemOwn = true;
|
||||
tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, true);
|
||||
}
|
||||
|
||||
public SipCallback() {
|
||||
this(tinyWRAPJNI.new_SipCallback(), true);
|
||||
tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, false);
|
||||
}
|
||||
|
||||
public int OnRegistrationChanged(RegistrationEvent e) {
|
||||
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationChanged(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationChangedSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e);
|
||||
}
|
||||
|
||||
public int OnSubscriptionChanged(SubscriptionEvent e) {
|
||||
return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionChanged(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,72 +1,72 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipDebugCallback {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipDebugCallback(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipDebugCallback obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipDebugCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected void swigDirectorDisconnect() {
|
||||
swigCMemOwn = false;
|
||||
delete();
|
||||
}
|
||||
|
||||
public void swigReleaseOwnership() {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, false);
|
||||
}
|
||||
|
||||
public void swigTakeOwnership() {
|
||||
swigCMemOwn = true;
|
||||
tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, true);
|
||||
}
|
||||
|
||||
public SipDebugCallback() {
|
||||
this(tinyWRAPJNI.new_SipDebugCallback(), true);
|
||||
tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
|
||||
}
|
||||
|
||||
public int OnDebugInfo(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugWarn(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugError(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugFatal(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipDebugCallback {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipDebugCallback(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipDebugCallback obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipDebugCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected void swigDirectorDisconnect() {
|
||||
swigCMemOwn = false;
|
||||
delete();
|
||||
}
|
||||
|
||||
public void swigReleaseOwnership() {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, false);
|
||||
}
|
||||
|
||||
public void swigTakeOwnership() {
|
||||
swigCMemOwn = true;
|
||||
tinyWRAPJNI.SipDebugCallback_change_ownership(this, swigCPtr, true);
|
||||
}
|
||||
|
||||
public SipDebugCallback() {
|
||||
this(tinyWRAPJNI.new_SipDebugCallback(), true);
|
||||
tinyWRAPJNI.SipDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, false);
|
||||
}
|
||||
|
||||
public int OnDebugInfo(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugWarn(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugError(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
public int OnDebugFatal(String message) {
|
||||
return (getClass() == SipDebugCallback.class) ? tinyWRAPJNI.SipDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(swigCPtr, this, message);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,53 +1,58 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipEvent {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipEvent(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipEvent() {
|
||||
this(tinyWRAPJNI.new_SipEvent(), true);
|
||||
}
|
||||
|
||||
public short getCode() {
|
||||
return tinyWRAPJNI.SipEvent_getCode(swigCPtr, this);
|
||||
}
|
||||
|
||||
public String getPhrase() {
|
||||
return tinyWRAPJNI.SipEvent_getPhrase(swigCPtr, this);
|
||||
}
|
||||
|
||||
public SipSession getBaseSession() {
|
||||
long cPtr = tinyWRAPJNI.SipEvent_getBaseSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SipSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipEvent {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipEvent(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipEvent() {
|
||||
this(tinyWRAPJNI.new_SipEvent(), true);
|
||||
}
|
||||
|
||||
public short getCode() {
|
||||
return tinyWRAPJNI.SipEvent_getCode(swigCPtr, this);
|
||||
}
|
||||
|
||||
public String getPhrase() {
|
||||
return tinyWRAPJNI.SipEvent_getPhrase(swigCPtr, this);
|
||||
}
|
||||
|
||||
public SipSession getBaseSession() {
|
||||
long cPtr = tinyWRAPJNI.SipEvent_getBaseSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SipSession(cPtr, false);
|
||||
}
|
||||
|
||||
public SipMessage getSipMessage() {
|
||||
long cPtr = tinyWRAPJNI.SipEvent_getSipMessage(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SipMessage(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipMessage {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipMessage(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipMessage obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipMessage(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipMessage() {
|
||||
this(tinyWRAPJNI.new_SipMessage(), true);
|
||||
}
|
||||
|
||||
public byte[] getSipContent() { return tinyWRAPJNI.SipMessage_getSipContent(swigCPtr, this); }
|
||||
|
||||
public String getSipHeaderValue(String name, long index) {
|
||||
return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, this, name, index);
|
||||
}
|
||||
|
||||
public String getSipHeaderValue(String name) {
|
||||
return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_1(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public String getSipHeaderParamValue(String name, String param, long index) {
|
||||
return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_0(swigCPtr, this, name, param, index);
|
||||
}
|
||||
|
||||
public String getSipHeaderParamValue(String name, String param) {
|
||||
return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_1(swigCPtr, this, name, param);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,76 +1,72 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipSession {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipSession(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipSession(SipStack stack) {
|
||||
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
return tinyWRAPJNI.SipSession_addHeader(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean removeHeader(String name) {
|
||||
return tinyWRAPJNI.SipSession_removeHeader(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean addCaps(String name, String value) {
|
||||
return tinyWRAPJNI.SipSession_addCaps__SWIG_0(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean addCaps(String name) {
|
||||
return tinyWRAPJNI.SipSession_addCaps__SWIG_1(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean removeCaps(String name) {
|
||||
return tinyWRAPJNI.SipSession_removeCaps(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean setExpires(long expires) {
|
||||
return tinyWRAPJNI.SipSession_setExpires(swigCPtr, this, expires);
|
||||
}
|
||||
|
||||
public boolean setFromUri(String fromUri) {
|
||||
return tinyWRAPJNI.SipSession_setFromUri(swigCPtr, this, fromUri);
|
||||
}
|
||||
|
||||
public boolean setToUri(String toUri) {
|
||||
return tinyWRAPJNI.SipSession_setToUri(swigCPtr, this, toUri);
|
||||
}
|
||||
|
||||
public boolean setPayload(String str, long len) {
|
||||
return tinyWRAPJNI.SipSession_setPayload(swigCPtr, this, str, len);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipSession {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipSession(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipSession(SipStack stack) {
|
||||
this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
return tinyWRAPJNI.SipSession_addHeader(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean removeHeader(String name) {
|
||||
return tinyWRAPJNI.SipSession_removeHeader(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean addCaps(String name, String value) {
|
||||
return tinyWRAPJNI.SipSession_addCaps__SWIG_0(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean addCaps(String name) {
|
||||
return tinyWRAPJNI.SipSession_addCaps__SWIG_1(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean removeCaps(String name) {
|
||||
return tinyWRAPJNI.SipSession_removeCaps(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean setExpires(long expires) {
|
||||
return tinyWRAPJNI.SipSession_setExpires(swigCPtr, this, expires);
|
||||
}
|
||||
|
||||
public boolean setFromUri(String fromUri) {
|
||||
return tinyWRAPJNI.SipSession_setFromUri(swigCPtr, this, fromUri);
|
||||
}
|
||||
|
||||
public boolean setToUri(String toUri) {
|
||||
return tinyWRAPJNI.SipSession_setToUri(swigCPtr, this, toUri);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,100 +1,100 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipStack extends SafeObject {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SipStack(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSipStackUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipStack obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SipStack(SipCallback callback, String realm_uri, String impi_uri, String impu_uri) {
|
||||
this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(callback), callback, realm_uri, impi_uri, impu_uri), true);
|
||||
}
|
||||
|
||||
public boolean start() {
|
||||
return tinyWRAPJNI.SipStack_start(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean setDebugCallback(SipDebugCallback callback) {
|
||||
return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, SipDebugCallback.getCPtr(callback), callback);
|
||||
}
|
||||
|
||||
public boolean setRealm(String realm_uri) {
|
||||
return tinyWRAPJNI.SipStack_setRealm(swigCPtr, this, realm_uri);
|
||||
}
|
||||
|
||||
public boolean setIMPI(String impi) {
|
||||
return tinyWRAPJNI.SipStack_setIMPI(swigCPtr, this, impi);
|
||||
}
|
||||
|
||||
public boolean setIMPU(String impu_uri) {
|
||||
return tinyWRAPJNI.SipStack_setIMPU(swigCPtr, this, impu_uri);
|
||||
}
|
||||
|
||||
public boolean setPassword(String password) {
|
||||
return tinyWRAPJNI.SipStack_setPassword(swigCPtr, this, password);
|
||||
}
|
||||
|
||||
public boolean setProxyCSCF(String fqdn, long port, String transport, String ipversion) {
|
||||
return tinyWRAPJNI.SipStack_setProxyCSCF(swigCPtr, this, fqdn, port, transport, ipversion);
|
||||
}
|
||||
|
||||
public boolean setLocalIP(String ip) {
|
||||
return tinyWRAPJNI.SipStack_setLocalIP(swigCPtr, this, ip);
|
||||
}
|
||||
|
||||
public boolean setLocalPort(long port) {
|
||||
return tinyWRAPJNI.SipStack_setLocalPort(swigCPtr, this, port);
|
||||
}
|
||||
|
||||
public boolean setEarlyIMS(boolean enabled) {
|
||||
return tinyWRAPJNI.SipStack_setEarlyIMS(swigCPtr, this, enabled);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
return tinyWRAPJNI.SipStack_addHeader(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean removeHeader(String name) {
|
||||
return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean addDnsServer(String ip) {
|
||||
return tinyWRAPJNI.SipStack_addDnsServer(swigCPtr, this, ip);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return tinyWRAPJNI.SipStack_isValid(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean stop() {
|
||||
return tinyWRAPJNI.SipStack_stop(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipStack extends SafeObject {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SipStack(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSipStackUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipStack obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SipStack(SipCallback callback, String realm_uri, String impi_uri, String impu_uri) {
|
||||
this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(callback), callback, realm_uri, impi_uri, impu_uri), true);
|
||||
}
|
||||
|
||||
public boolean start() {
|
||||
return tinyWRAPJNI.SipStack_start(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean setDebugCallback(SipDebugCallback callback) {
|
||||
return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, SipDebugCallback.getCPtr(callback), callback);
|
||||
}
|
||||
|
||||
public boolean setRealm(String realm_uri) {
|
||||
return tinyWRAPJNI.SipStack_setRealm(swigCPtr, this, realm_uri);
|
||||
}
|
||||
|
||||
public boolean setIMPI(String impi) {
|
||||
return tinyWRAPJNI.SipStack_setIMPI(swigCPtr, this, impi);
|
||||
}
|
||||
|
||||
public boolean setIMPU(String impu_uri) {
|
||||
return tinyWRAPJNI.SipStack_setIMPU(swigCPtr, this, impu_uri);
|
||||
}
|
||||
|
||||
public boolean setPassword(String password) {
|
||||
return tinyWRAPJNI.SipStack_setPassword(swigCPtr, this, password);
|
||||
}
|
||||
|
||||
public boolean setProxyCSCF(String fqdn, long port, String transport, String ipversion) {
|
||||
return tinyWRAPJNI.SipStack_setProxyCSCF(swigCPtr, this, fqdn, port, transport, ipversion);
|
||||
}
|
||||
|
||||
public boolean setLocalIP(String ip) {
|
||||
return tinyWRAPJNI.SipStack_setLocalIP(swigCPtr, this, ip);
|
||||
}
|
||||
|
||||
public boolean setLocalPort(long port) {
|
||||
return tinyWRAPJNI.SipStack_setLocalPort(swigCPtr, this, port);
|
||||
}
|
||||
|
||||
public boolean setEarlyIMS(boolean enabled) {
|
||||
return tinyWRAPJNI.SipStack_setEarlyIMS(swigCPtr, this, enabled);
|
||||
}
|
||||
|
||||
public boolean addHeader(String name, String value) {
|
||||
return tinyWRAPJNI.SipStack_addHeader(swigCPtr, this, name, value);
|
||||
}
|
||||
|
||||
public boolean removeHeader(String name) {
|
||||
return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean addDnsServer(String ip) {
|
||||
return tinyWRAPJNI.SipStack_addDnsServer(swigCPtr, this, ip);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return tinyWRAPJNI.SipStack_isValid(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean stop() {
|
||||
return tinyWRAPJNI.SipStack_stop(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipUri {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipUri(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipUri obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipUri(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipUri(String arg0) {
|
||||
this(tinyWRAPJNI.new_SipUri(arg0), true);
|
||||
}
|
||||
|
||||
public static boolean isValid(String arg0) {
|
||||
return tinyWRAPJNI.SipUri_isValid__SWIG_0(arg0);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return tinyWRAPJNI.SipUri_isValid__SWIG_1(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SipUri {
|
||||
private long swigCPtr;
|
||||
protected boolean swigCMemOwn;
|
||||
|
||||
protected SipUri(long cPtr, boolean cMemoryOwn) {
|
||||
swigCMemOwn = cMemoryOwn;
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SipUri obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipUri(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipUri(String arg0) {
|
||||
this(tinyWRAPJNI.new_SipUri(arg0), true);
|
||||
}
|
||||
|
||||
public static boolean isValid(String arg0) {
|
||||
return tinyWRAPJNI.SipUri_isValid__SWIG_0(arg0);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return tinyWRAPJNI.SipUri_isValid__SWIG_1(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,49 +1,49 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionEvent extends SipEvent {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SubscriptionEvent(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSubscriptionEventUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SubscriptionEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SubscriptionEvent() {
|
||||
this(tinyWRAPJNI.new_SubscriptionEvent(), true);
|
||||
}
|
||||
|
||||
public tsip_subscribe_event_type_t getType() {
|
||||
return tsip_subscribe_event_type_t.swigToEnum(tinyWRAPJNI.SubscriptionEvent_getType(swigCPtr, this));
|
||||
}
|
||||
|
||||
public SubscriptionSession getSession() {
|
||||
long cPtr = tinyWRAPJNI.SubscriptionEvent_getSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionEvent extends SipEvent {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SubscriptionEvent(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSubscriptionEventUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SubscriptionEvent obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SubscriptionEvent() {
|
||||
this(tinyWRAPJNI.new_SubscriptionEvent(), true);
|
||||
}
|
||||
|
||||
public tsip_subscribe_event_type_t getType() {
|
||||
return tsip_subscribe_event_type_t.swigToEnum(tinyWRAPJNI.SubscriptionEvent_getType(swigCPtr, this));
|
||||
}
|
||||
|
||||
public SubscriptionSession getSession() {
|
||||
long cPtr = tinyWRAPJNI.SubscriptionEvent_getSession(swigCPtr, this);
|
||||
return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionSession extends SipSession {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SubscriptionSession(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSubscriptionSessionUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SubscriptionSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SubscriptionSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_SubscriptionSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
}
|
||||
|
||||
public boolean Subscribe() {
|
||||
return tinyWRAPJNI.SubscriptionSession_Subscribe(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean UnSubscribe() {
|
||||
return tinyWRAPJNI.SubscriptionSession_UnSubscribe(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 SubscriptionSession extends SipSession {
|
||||
private long swigCPtr;
|
||||
|
||||
protected SubscriptionSession(long cPtr, boolean cMemoryOwn) {
|
||||
super(tinyWRAPJNI.SWIGSubscriptionSessionUpcast(cPtr), cMemoryOwn);
|
||||
swigCPtr = cPtr;
|
||||
}
|
||||
|
||||
protected static long getCPtr(SubscriptionSession obj) {
|
||||
return (obj == null) ? 0 : obj.swigCPtr;
|
||||
}
|
||||
|
||||
protected void finalize() {
|
||||
delete();
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
public SubscriptionSession(SipStack Stack) {
|
||||
this(tinyWRAPJNI.new_SubscriptionSession(SipStack.getCPtr(Stack), Stack), true);
|
||||
}
|
||||
|
||||
public boolean Subscribe() {
|
||||
return tinyWRAPJNI.SubscriptionSession_Subscribe(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean UnSubscribe() {
|
||||
return tinyWRAPJNI.SubscriptionSession_UnSubscribe(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 tinyWRAP {
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 tinyWRAP {
|
||||
}
|
||||
|
|
|
@ -1,118 +1,125 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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;
|
||||
|
||||
class tinyWRAPJNI {
|
||||
public final static native long new_SipUri(String jarg1);
|
||||
public final static native void delete_SipUri(long jarg1);
|
||||
public final static native boolean SipUri_isValid__SWIG_0(String jarg1);
|
||||
public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_);
|
||||
public final static native long new_SipEvent();
|
||||
public final static native void delete_SipEvent(long jarg1);
|
||||
public final static native short SipEvent_getCode(long jarg1, SipEvent jarg1_);
|
||||
public final static native String SipEvent_getPhrase(long jarg1, SipEvent jarg1_);
|
||||
public final static native long SipEvent_getBaseSession(long jarg1, SipEvent jarg1_);
|
||||
public final static native long new_SipSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_SipSession(long jarg1);
|
||||
public final static native boolean SipSession_addHeader(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipSession_removeHeader(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_addCaps__SWIG_0(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipSession_addCaps__SWIG_1(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_removeCaps(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2);
|
||||
public final static native boolean SipSession_setFromUri(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setToUri(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setPayload(long jarg1, SipSession jarg1_, String jarg2, long jarg3);
|
||||
public final static native long new_RegistrationEvent();
|
||||
public final static native void delete_RegistrationEvent(long jarg1);
|
||||
public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_);
|
||||
public final static native long RegistrationEvent_getSession(long jarg1, RegistrationEvent jarg1_);
|
||||
public final static native long new_RegistrationSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_RegistrationSession(long jarg1);
|
||||
public final static native boolean RegistrationSession_Register(long jarg1, RegistrationSession jarg1_);
|
||||
public final static native boolean RegistrationSession_UnRegister(long jarg1, RegistrationSession jarg1_);
|
||||
public final static native long new_SubscriptionEvent();
|
||||
public final static native void delete_SubscriptionEvent(long jarg1);
|
||||
public final static native int SubscriptionEvent_getType(long jarg1, SubscriptionEvent jarg1_);
|
||||
public final static native long SubscriptionEvent_getSession(long jarg1, SubscriptionEvent jarg1_);
|
||||
public final static native long new_SubscriptionSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_SubscriptionSession(long jarg1);
|
||||
public final static native boolean SubscriptionSession_Subscribe(long jarg1, SubscriptionSession jarg1_);
|
||||
public final static native boolean SubscriptionSession_UnSubscribe(long jarg1, SubscriptionSession jarg1_);
|
||||
public final static native long new_SipCallback();
|
||||
public final static native void delete_SipCallback(long jarg1);
|
||||
public final static native int SipCallback_OnRegistrationChanged(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
|
||||
public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
|
||||
public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
|
||||
public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
|
||||
public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global);
|
||||
public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release);
|
||||
public final static native long new_SipDebugCallback();
|
||||
public final static native void delete_SipDebugCallback(long jarg1);
|
||||
public final static native int SipDebugCallback_OnDebugInfo(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugWarn(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugError(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugFatal(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native void SipDebugCallback_director_connect(SipDebugCallback obj, long cptr, boolean mem_own, boolean weak_global);
|
||||
public final static native void SipDebugCallback_change_ownership(SipDebugCallback obj, long cptr, boolean take_or_release);
|
||||
public final static native long new_SafeObject();
|
||||
public final static native void delete_SafeObject(long jarg1);
|
||||
public final static native int SafeObject_Lock(long jarg1, SafeObject jarg1_);
|
||||
public final static native int SafeObject_UnLock(long jarg1, SafeObject jarg1_);
|
||||
public final static native long new_SipStack(long jarg1, SipCallback jarg1_, String jarg2, String jarg3, String jarg4);
|
||||
public final static native void delete_SipStack(long jarg1);
|
||||
public final static native boolean SipStack_start(long jarg1, SipStack jarg1_);
|
||||
public final static native boolean SipStack_setDebugCallback(long jarg1, SipStack jarg1_, long jarg2, SipDebugCallback jarg2_);
|
||||
public final static native boolean SipStack_setRealm(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setIMPI(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setIMPU(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setPassword(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, long jarg3, String jarg4, String jarg5);
|
||||
public final static native boolean SipStack_setLocalIP(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setLocalPort(long jarg1, SipStack jarg1_, long jarg2);
|
||||
public final static native boolean SipStack_setEarlyIMS(long jarg1, SipStack jarg1_, boolean jarg2);
|
||||
public final static native boolean SipStack_addHeader(long jarg1, SipStack jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipStack_removeHeader(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_);
|
||||
public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_);
|
||||
public final static native long SWIGRegistrationEventUpcast(long jarg1);
|
||||
public final static native long SWIGRegistrationSessionUpcast(long jarg1);
|
||||
public final static native long SWIGSubscriptionEventUpcast(long jarg1);
|
||||
public final static native long SWIGSubscriptionSessionUpcast(long jarg1);
|
||||
public final static native long SWIGSipStackUpcast(long jarg1);
|
||||
|
||||
public static int SwigDirector_SipCallback_OnRegistrationChanged(SipCallback self, long e) {
|
||||
return self.OnRegistrationChanged((e == 0) ? null : new RegistrationEvent(e, false));
|
||||
}
|
||||
public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) {
|
||||
return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false));
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) {
|
||||
return self.OnDebugInfo(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugWarn(SipDebugCallback self, String message) {
|
||||
return self.OnDebugWarn(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugError(SipDebugCallback self, String message) {
|
||||
return self.OnDebugError(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugFatal(SipDebugCallback self, String message) {
|
||||
return self.OnDebugFatal(message);
|
||||
}
|
||||
|
||||
private final static native void swig_module_init();
|
||||
static {
|
||||
swig_module_init();
|
||||
}
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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;
|
||||
|
||||
class tinyWRAPJNI {
|
||||
public final static native long new_SipUri(String jarg1);
|
||||
public final static native void delete_SipUri(long jarg1);
|
||||
public final static native boolean SipUri_isValid__SWIG_0(String jarg1);
|
||||
public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_);
|
||||
public final static native long new_SipMessage();
|
||||
public final static native void delete_SipMessage(long jarg1);
|
||||
public final static native byte[] SipMessage_getSipContent(long jarg1, SipMessage jarg1_);
|
||||
public final static native String SipMessage_getSipHeaderValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, long jarg3);
|
||||
public final static native String SipMessage_getSipHeaderValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2);
|
||||
public final static native String SipMessage_getSipHeaderParamValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, String jarg3, long jarg4);
|
||||
public final static native String SipMessage_getSipHeaderParamValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2, String jarg3);
|
||||
public final static native long new_SipEvent();
|
||||
public final static native void delete_SipEvent(long jarg1);
|
||||
public final static native short SipEvent_getCode(long jarg1, SipEvent jarg1_);
|
||||
public final static native String SipEvent_getPhrase(long jarg1, SipEvent jarg1_);
|
||||
public final static native long SipEvent_getBaseSession(long jarg1, SipEvent jarg1_);
|
||||
public final static native long SipEvent_getSipMessage(long jarg1, SipEvent jarg1_);
|
||||
public final static native long new_SipSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_SipSession(long jarg1);
|
||||
public final static native boolean SipSession_addHeader(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipSession_removeHeader(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_addCaps__SWIG_0(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipSession_addCaps__SWIG_1(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_removeCaps(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2);
|
||||
public final static native boolean SipSession_setFromUri(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setToUri(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native long new_RegistrationEvent();
|
||||
public final static native void delete_RegistrationEvent(long jarg1);
|
||||
public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_);
|
||||
public final static native long RegistrationEvent_getSession(long jarg1, RegistrationEvent jarg1_);
|
||||
public final static native long new_RegistrationSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_RegistrationSession(long jarg1);
|
||||
public final static native boolean RegistrationSession_Register(long jarg1, RegistrationSession jarg1_);
|
||||
public final static native boolean RegistrationSession_UnRegister(long jarg1, RegistrationSession jarg1_);
|
||||
public final static native long new_SubscriptionEvent();
|
||||
public final static native void delete_SubscriptionEvent(long jarg1);
|
||||
public final static native int SubscriptionEvent_getType(long jarg1, SubscriptionEvent jarg1_);
|
||||
public final static native long SubscriptionEvent_getSession(long jarg1, SubscriptionEvent jarg1_);
|
||||
public final static native long new_SubscriptionSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_SubscriptionSession(long jarg1);
|
||||
public final static native boolean SubscriptionSession_Subscribe(long jarg1, SubscriptionSession jarg1_);
|
||||
public final static native boolean SubscriptionSession_UnSubscribe(long jarg1, SubscriptionSession jarg1_);
|
||||
public final static native long new_SipCallback();
|
||||
public final static native void delete_SipCallback(long jarg1);
|
||||
public final static native int SipCallback_OnRegistrationChanged(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
|
||||
public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
|
||||
public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
|
||||
public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
|
||||
public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global);
|
||||
public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release);
|
||||
public final static native long new_SipDebugCallback();
|
||||
public final static native void delete_SipDebugCallback(long jarg1);
|
||||
public final static native int SipDebugCallback_OnDebugInfo(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugWarn(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugError(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugFatal(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native void SipDebugCallback_director_connect(SipDebugCallback obj, long cptr, boolean mem_own, boolean weak_global);
|
||||
public final static native void SipDebugCallback_change_ownership(SipDebugCallback obj, long cptr, boolean take_or_release);
|
||||
public final static native long new_SafeObject();
|
||||
public final static native void delete_SafeObject(long jarg1);
|
||||
public final static native int SafeObject_Lock(long jarg1, SafeObject jarg1_);
|
||||
public final static native int SafeObject_UnLock(long jarg1, SafeObject jarg1_);
|
||||
public final static native long new_SipStack(long jarg1, SipCallback jarg1_, String jarg2, String jarg3, String jarg4);
|
||||
public final static native void delete_SipStack(long jarg1);
|
||||
public final static native boolean SipStack_start(long jarg1, SipStack jarg1_);
|
||||
public final static native boolean SipStack_setDebugCallback(long jarg1, SipStack jarg1_, long jarg2, SipDebugCallback jarg2_);
|
||||
public final static native boolean SipStack_setRealm(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setIMPI(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setIMPU(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setPassword(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, long jarg3, String jarg4, String jarg5);
|
||||
public final static native boolean SipStack_setLocalIP(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setLocalPort(long jarg1, SipStack jarg1_, long jarg2);
|
||||
public final static native boolean SipStack_setEarlyIMS(long jarg1, SipStack jarg1_, boolean jarg2);
|
||||
public final static native boolean SipStack_addHeader(long jarg1, SipStack jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipStack_removeHeader(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_);
|
||||
public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_);
|
||||
public final static native long SWIGRegistrationEventUpcast(long jarg1);
|
||||
public final static native long SWIGRegistrationSessionUpcast(long jarg1);
|
||||
public final static native long SWIGSubscriptionEventUpcast(long jarg1);
|
||||
public final static native long SWIGSubscriptionSessionUpcast(long jarg1);
|
||||
public final static native long SWIGSipStackUpcast(long jarg1);
|
||||
|
||||
public static int SwigDirector_SipCallback_OnRegistrationChanged(SipCallback self, long e) {
|
||||
return self.OnRegistrationChanged((e == 0) ? null : new RegistrationEvent(e, false));
|
||||
}
|
||||
public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) {
|
||||
return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false));
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) {
|
||||
return self.OnDebugInfo(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugWarn(SipDebugCallback self, String message) {
|
||||
return self.OnDebugWarn(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugError(SipDebugCallback self, String message) {
|
||||
return self.OnDebugError(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugFatal(SipDebugCallback self, String message) {
|
||||
return self.OnDebugFatal(message);
|
||||
}
|
||||
|
||||
private final static native void swig_module_init();
|
||||
static {
|
||||
swig_module_init();
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,49 +1,49 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.39
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
* changes to this file unless you know what you are doing--modify the SWIG
|
||||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#ifndef SWIG_tinyWRAP_WRAP_H_
|
||||
#define SWIG_tinyWRAP_WRAP_H_
|
||||
|
||||
class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
|
||||
SwigDirector_SipCallback(JNIEnv *jenv);
|
||||
virtual ~SwigDirector_SipCallback();
|
||||
virtual int OnRegistrationChanged(RegistrationEvent const *e);
|
||||
virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
|
||||
public:
|
||||
bool swig_overrides(int n) {
|
||||
return (n < 2 ? swig_override[n] : false);
|
||||
}
|
||||
protected:
|
||||
bool swig_override[2];
|
||||
};
|
||||
|
||||
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
|
||||
SwigDirector_SipDebugCallback(JNIEnv *jenv);
|
||||
virtual ~SwigDirector_SipDebugCallback();
|
||||
virtual int OnDebugInfo(char const *message);
|
||||
virtual int OnDebugWarn(char const *message);
|
||||
virtual int OnDebugError(char const *message);
|
||||
virtual int OnDebugFatal(char const *message);
|
||||
public:
|
||||
bool swig_overrides(int n) {
|
||||
return (n < 4 ? swig_override[n] : false);
|
||||
}
|
||||
protected:
|
||||
bool swig_override[4];
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.39
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
* changes to this file unless you know what you are doing--modify the SWIG
|
||||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#ifndef SWIG_tinyWRAP_WRAP_H_
|
||||
#define SWIG_tinyWRAP_WRAP_H_
|
||||
|
||||
class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
|
||||
SwigDirector_SipCallback(JNIEnv *jenv);
|
||||
virtual ~SwigDirector_SipCallback();
|
||||
virtual int OnRegistrationChanged(RegistrationEvent const *e);
|
||||
virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
|
||||
public:
|
||||
bool swig_overrides(int n) {
|
||||
return (n < 2 ? swig_override[n] : false);
|
||||
}
|
||||
protected:
|
||||
bool swig_override[2];
|
||||
};
|
||||
|
||||
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
|
||||
SwigDirector_SipDebugCallback(JNIEnv *jenv);
|
||||
virtual ~SwigDirector_SipDebugCallback();
|
||||
virtual int OnDebugInfo(char const *message);
|
||||
virtual int OnDebugWarn(char const *message);
|
||||
virtual int OnDebugError(char const *message);
|
||||
virtual int OnDebugFatal(char const *message);
|
||||
public:
|
||||
bool swig_overrides(int n) {
|
||||
return (n < 4 ? swig_override[n] : false);
|
||||
}
|
||||
protected:
|
||||
bool swig_override[4];
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,57 +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.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
package org.doubango.tinyWRAP;
|
||||
|
||||
public enum tsip_event_type_t {
|
||||
tsip_event_invite,
|
||||
tsip_event_message,
|
||||
tsip_event_options,
|
||||
tsip_event_publish,
|
||||
tsip_event_register,
|
||||
tsip_event_subscribe,
|
||||
tsip_event_dialog;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_event_type_t[] swigValues = tsip_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t(tsip_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;
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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_event_type_t {
|
||||
tsip_event_invite,
|
||||
tsip_event_message,
|
||||
tsip_event_options,
|
||||
tsip_event_publish,
|
||||
tsip_event_register,
|
||||
tsip_event_subscribe,
|
||||
tsip_event_dialog;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_event_type_t[] swigValues = tsip_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t(tsip_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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,58 +1,58 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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_register_event_type_t {
|
||||
tsip_i_register,
|
||||
tsip_ai_register,
|
||||
tsip_o_register,
|
||||
tsip_ao_register,
|
||||
tsip_i_unregister,
|
||||
tsip_ai_unregister,
|
||||
tsip_o_unregister,
|
||||
tsip_ao_unregister;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_register_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_register_event_type_t[] swigValues = tsip_register_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_register_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_register_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t(tsip_register_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;
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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_register_event_type_t {
|
||||
tsip_i_register,
|
||||
tsip_ai_register,
|
||||
tsip_o_register,
|
||||
tsip_ao_register,
|
||||
tsip_i_unregister,
|
||||
tsip_ai_unregister,
|
||||
tsip_o_unregister,
|
||||
tsip_ao_unregister;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_register_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_register_event_type_t[] swigValues = tsip_register_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_register_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_register_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t(tsip_register_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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,62 +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_subscribe_event_type_t {
|
||||
tsip_i_subscribe,
|
||||
tsip_ai_subscribe,
|
||||
tsip_o_subscribe,
|
||||
tsip_ao_subscribe,
|
||||
tsip_i_unsubscribe,
|
||||
tsip_ai_unsubscribe,
|
||||
tsip_o_unsubscribe,
|
||||
tsip_ao_unsubscribe,
|
||||
tsip_i_notify,
|
||||
tsip_ai_notify,
|
||||
tsip_o_notify,
|
||||
tsip_ao_notify;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_subscribe_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_subscribe_event_type_t[] swigValues = tsip_subscribe_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_subscribe_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_subscribe_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t(tsip_subscribe_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;
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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_subscribe_event_type_t {
|
||||
tsip_i_subscribe,
|
||||
tsip_ai_subscribe,
|
||||
tsip_o_subscribe,
|
||||
tsip_ao_subscribe,
|
||||
tsip_i_unsubscribe,
|
||||
tsip_ai_unsubscribe,
|
||||
tsip_o_unsubscribe,
|
||||
tsip_ao_unsubscribe,
|
||||
tsip_i_notify,
|
||||
tsip_ai_notify,
|
||||
tsip_o_notify,
|
||||
tsip_ao_notify;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_subscribe_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_subscribe_event_type_t[] swigValues = tsip_subscribe_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_subscribe_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_subscribe_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t(tsip_subscribe_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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,21 @@
|
|||
/* File : java.i */
|
||||
/* File : java.i
|
||||
* http://www.swig.org/Doc1.3/Java.html
|
||||
*/
|
||||
|
||||
// http://www.swig.org/Doc1.3/Java.html#enumerations
|
||||
%include "enums.swg"
|
||||
%javaconst(1);
|
||||
|
||||
|
||||
// Mapping void* as byte[]
|
||||
%typemap(jni) void * "void *"
|
||||
%typemap(jtype) void * "byte[]"
|
||||
%typemap(jstype) void * "byte[]"
|
||||
%typemap(javain) void * "$javainput"
|
||||
%typemap(javaout) void * { return $jnicall; }
|
||||
%typemap(in) void * %{ $1 = $input; %}
|
||||
%typemap(out) void * %{ $result = $1; %}
|
||||
%typemap(javadirectorin) void * "$jniinput"
|
||||
|
||||
|
||||
%include ../_common/tinyWRAP.i
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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 tinyWRAP {
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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 tinyWRAP {
|
||||
}
|
||||
|
|
|
@ -1,118 +1,125 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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;
|
||||
|
||||
class tinyWRAPJNI {
|
||||
public final static native long new_SipUri(String jarg1);
|
||||
public final static native void delete_SipUri(long jarg1);
|
||||
public final static native boolean SipUri_isValid__SWIG_0(String jarg1);
|
||||
public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_);
|
||||
public final static native long new_SipEvent();
|
||||
public final static native void delete_SipEvent(long jarg1);
|
||||
public final static native short SipEvent_getCode(long jarg1, SipEvent jarg1_);
|
||||
public final static native String SipEvent_getPhrase(long jarg1, SipEvent jarg1_);
|
||||
public final static native long SipEvent_getBaseSession(long jarg1, SipEvent jarg1_);
|
||||
public final static native long new_SipSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_SipSession(long jarg1);
|
||||
public final static native boolean SipSession_addHeader(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipSession_removeHeader(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_addCaps__SWIG_0(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipSession_addCaps__SWIG_1(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_removeCaps(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2);
|
||||
public final static native boolean SipSession_setFromUri(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setToUri(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setPayload(long jarg1, SipSession jarg1_, String jarg2, long jarg3);
|
||||
public final static native long new_RegistrationEvent();
|
||||
public final static native void delete_RegistrationEvent(long jarg1);
|
||||
public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_);
|
||||
public final static native long RegistrationEvent_getSession(long jarg1, RegistrationEvent jarg1_);
|
||||
public final static native long new_RegistrationSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_RegistrationSession(long jarg1);
|
||||
public final static native boolean RegistrationSession_Register(long jarg1, RegistrationSession jarg1_);
|
||||
public final static native boolean RegistrationSession_UnRegister(long jarg1, RegistrationSession jarg1_);
|
||||
public final static native long new_SubscriptionEvent();
|
||||
public final static native void delete_SubscriptionEvent(long jarg1);
|
||||
public final static native int SubscriptionEvent_getType(long jarg1, SubscriptionEvent jarg1_);
|
||||
public final static native long SubscriptionEvent_getSession(long jarg1, SubscriptionEvent jarg1_);
|
||||
public final static native long new_SubscriptionSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_SubscriptionSession(long jarg1);
|
||||
public final static native boolean SubscriptionSession_Subscribe(long jarg1, SubscriptionSession jarg1_);
|
||||
public final static native boolean SubscriptionSession_UnSubscribe(long jarg1, SubscriptionSession jarg1_);
|
||||
public final static native long new_SipCallback();
|
||||
public final static native void delete_SipCallback(long jarg1);
|
||||
public final static native int SipCallback_OnRegistrationChanged(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
|
||||
public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
|
||||
public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
|
||||
public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
|
||||
public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global);
|
||||
public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release);
|
||||
public final static native long new_SipDebugCallback();
|
||||
public final static native void delete_SipDebugCallback(long jarg1);
|
||||
public final static native int SipDebugCallback_OnDebugInfo(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugWarn(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugError(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugFatal(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native void SipDebugCallback_director_connect(SipDebugCallback obj, long cptr, boolean mem_own, boolean weak_global);
|
||||
public final static native void SipDebugCallback_change_ownership(SipDebugCallback obj, long cptr, boolean take_or_release);
|
||||
public final static native long new_SafeObject();
|
||||
public final static native void delete_SafeObject(long jarg1);
|
||||
public final static native int SafeObject_Lock(long jarg1, SafeObject jarg1_);
|
||||
public final static native int SafeObject_UnLock(long jarg1, SafeObject jarg1_);
|
||||
public final static native long new_SipStack(long jarg1, SipCallback jarg1_, String jarg2, String jarg3, String jarg4);
|
||||
public final static native void delete_SipStack(long jarg1);
|
||||
public final static native boolean SipStack_start(long jarg1, SipStack jarg1_);
|
||||
public final static native boolean SipStack_setDebugCallback(long jarg1, SipStack jarg1_, long jarg2, SipDebugCallback jarg2_);
|
||||
public final static native boolean SipStack_setRealm(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setIMPI(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setIMPU(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setPassword(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, long jarg3, String jarg4, String jarg5);
|
||||
public final static native boolean SipStack_setLocalIP(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setLocalPort(long jarg1, SipStack jarg1_, long jarg2);
|
||||
public final static native boolean SipStack_setEarlyIMS(long jarg1, SipStack jarg1_, boolean jarg2);
|
||||
public final static native boolean SipStack_addHeader(long jarg1, SipStack jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipStack_removeHeader(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_);
|
||||
public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_);
|
||||
public final static native long SWIGRegistrationEventUpcast(long jarg1);
|
||||
public final static native long SWIGRegistrationSessionUpcast(long jarg1);
|
||||
public final static native long SWIGSubscriptionEventUpcast(long jarg1);
|
||||
public final static native long SWIGSubscriptionSessionUpcast(long jarg1);
|
||||
public final static native long SWIGSipStackUpcast(long jarg1);
|
||||
|
||||
public static int SwigDirector_SipCallback_OnRegistrationChanged(SipCallback self, long e) {
|
||||
return self.OnRegistrationChanged((e == 0) ? null : new RegistrationEvent(e, false));
|
||||
}
|
||||
public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) {
|
||||
return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false));
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) {
|
||||
return self.OnDebugInfo(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugWarn(SipDebugCallback self, String message) {
|
||||
return self.OnDebugWarn(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugError(SipDebugCallback self, String message) {
|
||||
return self.OnDebugError(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugFatal(SipDebugCallback self, String message) {
|
||||
return self.OnDebugFatal(message);
|
||||
}
|
||||
|
||||
private final static native void swig_module_init();
|
||||
static {
|
||||
swig_module_init();
|
||||
}
|
||||
}
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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;
|
||||
|
||||
class tinyWRAPJNI {
|
||||
public final static native long new_SipUri(String jarg1);
|
||||
public final static native void delete_SipUri(long jarg1);
|
||||
public final static native boolean SipUri_isValid__SWIG_0(String jarg1);
|
||||
public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_);
|
||||
public final static native long new_SipMessage();
|
||||
public final static native void delete_SipMessage(long jarg1);
|
||||
public final static native byte[] SipMessage_getSipContent(long jarg1, SipMessage jarg1_);
|
||||
public final static native String SipMessage_getSipHeaderValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, long jarg3);
|
||||
public final static native String SipMessage_getSipHeaderValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2);
|
||||
public final static native String SipMessage_getSipHeaderParamValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, String jarg3, long jarg4);
|
||||
public final static native String SipMessage_getSipHeaderParamValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2, String jarg3);
|
||||
public final static native long new_SipEvent();
|
||||
public final static native void delete_SipEvent(long jarg1);
|
||||
public final static native short SipEvent_getCode(long jarg1, SipEvent jarg1_);
|
||||
public final static native String SipEvent_getPhrase(long jarg1, SipEvent jarg1_);
|
||||
public final static native long SipEvent_getBaseSession(long jarg1, SipEvent jarg1_);
|
||||
public final static native long SipEvent_getSipMessage(long jarg1, SipEvent jarg1_);
|
||||
public final static native long new_SipSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_SipSession(long jarg1);
|
||||
public final static native boolean SipSession_addHeader(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipSession_removeHeader(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_addCaps__SWIG_0(long jarg1, SipSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipSession_addCaps__SWIG_1(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_removeCaps(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2);
|
||||
public final static native boolean SipSession_setFromUri(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native boolean SipSession_setToUri(long jarg1, SipSession jarg1_, String jarg2);
|
||||
public final static native long new_RegistrationEvent();
|
||||
public final static native void delete_RegistrationEvent(long jarg1);
|
||||
public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_);
|
||||
public final static native long RegistrationEvent_getSession(long jarg1, RegistrationEvent jarg1_);
|
||||
public final static native long new_RegistrationSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_RegistrationSession(long jarg1);
|
||||
public final static native boolean RegistrationSession_Register(long jarg1, RegistrationSession jarg1_);
|
||||
public final static native boolean RegistrationSession_UnRegister(long jarg1, RegistrationSession jarg1_);
|
||||
public final static native long new_SubscriptionEvent();
|
||||
public final static native void delete_SubscriptionEvent(long jarg1);
|
||||
public final static native int SubscriptionEvent_getType(long jarg1, SubscriptionEvent jarg1_);
|
||||
public final static native long SubscriptionEvent_getSession(long jarg1, SubscriptionEvent jarg1_);
|
||||
public final static native long new_SubscriptionSession(long jarg1, SipStack jarg1_);
|
||||
public final static native void delete_SubscriptionSession(long jarg1);
|
||||
public final static native boolean SubscriptionSession_Subscribe(long jarg1, SubscriptionSession jarg1_);
|
||||
public final static native boolean SubscriptionSession_UnSubscribe(long jarg1, SubscriptionSession jarg1_);
|
||||
public final static native long new_SipCallback();
|
||||
public final static native void delete_SipCallback(long jarg1);
|
||||
public final static native int SipCallback_OnRegistrationChanged(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
|
||||
public final static native int SipCallback_OnRegistrationChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_);
|
||||
public final static native int SipCallback_OnSubscriptionChanged(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
|
||||
public final static native int SipCallback_OnSubscriptionChangedSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_);
|
||||
public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global);
|
||||
public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release);
|
||||
public final static native long new_SipDebugCallback();
|
||||
public final static native void delete_SipDebugCallback(long jarg1);
|
||||
public final static native int SipDebugCallback_OnDebugInfo(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugInfoSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugWarn(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugWarnSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugError(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugErrorSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugFatal(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native int SipDebugCallback_OnDebugFatalSwigExplicitSipDebugCallback(long jarg1, SipDebugCallback jarg1_, String jarg2);
|
||||
public final static native void SipDebugCallback_director_connect(SipDebugCallback obj, long cptr, boolean mem_own, boolean weak_global);
|
||||
public final static native void SipDebugCallback_change_ownership(SipDebugCallback obj, long cptr, boolean take_or_release);
|
||||
public final static native long new_SafeObject();
|
||||
public final static native void delete_SafeObject(long jarg1);
|
||||
public final static native int SafeObject_Lock(long jarg1, SafeObject jarg1_);
|
||||
public final static native int SafeObject_UnLock(long jarg1, SafeObject jarg1_);
|
||||
public final static native long new_SipStack(long jarg1, SipCallback jarg1_, String jarg2, String jarg3, String jarg4);
|
||||
public final static native void delete_SipStack(long jarg1);
|
||||
public final static native boolean SipStack_start(long jarg1, SipStack jarg1_);
|
||||
public final static native boolean SipStack_setDebugCallback(long jarg1, SipStack jarg1_, long jarg2, SipDebugCallback jarg2_);
|
||||
public final static native boolean SipStack_setRealm(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setIMPI(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setIMPU(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setPassword(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, long jarg3, String jarg4, String jarg5);
|
||||
public final static native boolean SipStack_setLocalIP(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_setLocalPort(long jarg1, SipStack jarg1_, long jarg2);
|
||||
public final static native boolean SipStack_setEarlyIMS(long jarg1, SipStack jarg1_, boolean jarg2);
|
||||
public final static native boolean SipStack_addHeader(long jarg1, SipStack jarg1_, String jarg2, String jarg3);
|
||||
public final static native boolean SipStack_removeHeader(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2);
|
||||
public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_);
|
||||
public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_);
|
||||
public final static native long SWIGRegistrationEventUpcast(long jarg1);
|
||||
public final static native long SWIGRegistrationSessionUpcast(long jarg1);
|
||||
public final static native long SWIGSubscriptionEventUpcast(long jarg1);
|
||||
public final static native long SWIGSubscriptionSessionUpcast(long jarg1);
|
||||
public final static native long SWIGSipStackUpcast(long jarg1);
|
||||
|
||||
public static int SwigDirector_SipCallback_OnRegistrationChanged(SipCallback self, long e) {
|
||||
return self.OnRegistrationChanged((e == 0) ? null : new RegistrationEvent(e, false));
|
||||
}
|
||||
public static int SwigDirector_SipCallback_OnSubscriptionChanged(SipCallback self, long e) {
|
||||
return self.OnSubscriptionChanged((e == 0) ? null : new SubscriptionEvent(e, false));
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugInfo(SipDebugCallback self, String message) {
|
||||
return self.OnDebugInfo(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugWarn(SipDebugCallback self, String message) {
|
||||
return self.OnDebugWarn(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugError(SipDebugCallback self, String message) {
|
||||
return self.OnDebugError(message);
|
||||
}
|
||||
public static int SwigDirector_SipDebugCallback_OnDebugFatal(SipDebugCallback self, String message) {
|
||||
return self.OnDebugFatal(message);
|
||||
}
|
||||
|
||||
private final static native void swig_module_init();
|
||||
static {
|
||||
swig_module_init();
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,49 +1,49 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.39
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
* changes to this file unless you know what you are doing--modify the SWIG
|
||||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#ifndef SWIG_tinyWRAP_WRAP_H_
|
||||
#define SWIG_tinyWRAP_WRAP_H_
|
||||
|
||||
class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
|
||||
SwigDirector_SipCallback(JNIEnv *jenv);
|
||||
virtual ~SwigDirector_SipCallback();
|
||||
virtual int OnRegistrationChanged(RegistrationEvent const *e);
|
||||
virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
|
||||
public:
|
||||
bool swig_overrides(int n) {
|
||||
return (n < 2 ? swig_override[n] : false);
|
||||
}
|
||||
protected:
|
||||
bool swig_override[2];
|
||||
};
|
||||
|
||||
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
|
||||
SwigDirector_SipDebugCallback(JNIEnv *jenv);
|
||||
virtual ~SwigDirector_SipDebugCallback();
|
||||
virtual int OnDebugInfo(char const *message);
|
||||
virtual int OnDebugWarn(char const *message);
|
||||
virtual int OnDebugError(char const *message);
|
||||
virtual int OnDebugFatal(char const *message);
|
||||
public:
|
||||
bool swig_overrides(int n) {
|
||||
return (n < 4 ? swig_override[n] : false);
|
||||
}
|
||||
protected:
|
||||
bool swig_override[4];
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.39
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
* changes to this file unless you know what you are doing--modify the SWIG
|
||||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#ifndef SWIG_tinyWRAP_WRAP_H_
|
||||
#define SWIG_tinyWRAP_WRAP_H_
|
||||
|
||||
class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
|
||||
SwigDirector_SipCallback(JNIEnv *jenv);
|
||||
virtual ~SwigDirector_SipCallback();
|
||||
virtual int OnRegistrationChanged(RegistrationEvent const *e);
|
||||
virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
|
||||
public:
|
||||
bool swig_overrides(int n) {
|
||||
return (n < 2 ? swig_override[n] : false);
|
||||
}
|
||||
protected:
|
||||
bool swig_override[2];
|
||||
};
|
||||
|
||||
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
|
||||
SwigDirector_SipDebugCallback(JNIEnv *jenv);
|
||||
virtual ~SwigDirector_SipDebugCallback();
|
||||
virtual int OnDebugInfo(char const *message);
|
||||
virtual int OnDebugWarn(char const *message);
|
||||
virtual int OnDebugError(char const *message);
|
||||
virtual int OnDebugFatal(char const *message);
|
||||
public:
|
||||
bool swig_overrides(int n) {
|
||||
return (n < 4 ? swig_override[n] : false);
|
||||
}
|
||||
protected:
|
||||
bool swig_override[4];
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,57 +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.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
package org.doubango.tinyWRAP;
|
||||
|
||||
public enum tsip_event_type_t {
|
||||
tsip_event_invite,
|
||||
tsip_event_message,
|
||||
tsip_event_options,
|
||||
tsip_event_publish,
|
||||
tsip_event_register,
|
||||
tsip_event_subscribe,
|
||||
tsip_event_dialog;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_event_type_t[] swigValues = tsip_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t(tsip_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;
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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_event_type_t {
|
||||
tsip_event_invite,
|
||||
tsip_event_message,
|
||||
tsip_event_options,
|
||||
tsip_event_publish,
|
||||
tsip_event_register,
|
||||
tsip_event_subscribe,
|
||||
tsip_event_dialog;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_event_type_t[] swigValues = tsip_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_event_type_t(tsip_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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,58 +1,58 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* 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_register_event_type_t {
|
||||
tsip_i_register,
|
||||
tsip_ai_register,
|
||||
tsip_o_register,
|
||||
tsip_ao_register,
|
||||
tsip_i_unregister,
|
||||
tsip_ai_unregister,
|
||||
tsip_o_unregister,
|
||||
tsip_ao_unregister;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_register_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_register_event_type_t[] swigValues = tsip_register_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_register_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_register_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t(tsip_register_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;
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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_register_event_type_t {
|
||||
tsip_i_register,
|
||||
tsip_ai_register,
|
||||
tsip_o_register,
|
||||
tsip_ao_register,
|
||||
tsip_i_unregister,
|
||||
tsip_ai_unregister,
|
||||
tsip_o_unregister,
|
||||
tsip_ao_unregister;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_register_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_register_event_type_t[] swigValues = tsip_register_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_register_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_register_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_register_event_type_t(tsip_register_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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,62 +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_subscribe_event_type_t {
|
||||
tsip_i_subscribe,
|
||||
tsip_ai_subscribe,
|
||||
tsip_o_subscribe,
|
||||
tsip_ao_subscribe,
|
||||
tsip_i_unsubscribe,
|
||||
tsip_ai_unsubscribe,
|
||||
tsip_o_unsubscribe,
|
||||
tsip_ao_unsubscribe,
|
||||
tsip_i_notify,
|
||||
tsip_ai_notify,
|
||||
tsip_o_notify,
|
||||
tsip_ao_notify;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_subscribe_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_subscribe_event_type_t[] swigValues = tsip_subscribe_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_subscribe_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_subscribe_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t(tsip_subscribe_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;
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* 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_subscribe_event_type_t {
|
||||
tsip_i_subscribe,
|
||||
tsip_ai_subscribe,
|
||||
tsip_o_subscribe,
|
||||
tsip_ao_subscribe,
|
||||
tsip_i_unsubscribe,
|
||||
tsip_ai_unsubscribe,
|
||||
tsip_o_unsubscribe,
|
||||
tsip_ao_unsubscribe,
|
||||
tsip_i_notify,
|
||||
tsip_ai_notify,
|
||||
tsip_o_notify,
|
||||
tsip_ao_notify;
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public static tsip_subscribe_event_type_t swigToEnum(int swigValue) {
|
||||
tsip_subscribe_event_type_t[] swigValues = tsip_subscribe_event_type_t.class.getEnumConstants();
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (tsip_subscribe_event_type_t swigEnum : swigValues)
|
||||
if (swigEnum.swigValue == swigValue)
|
||||
return swigEnum;
|
||||
throw new IllegalArgumentException("No enum " + tsip_subscribe_event_type_t.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private tsip_subscribe_event_type_t(tsip_subscribe_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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* File : perl.i */
|
||||
|
||||
/* http://www.swig.org/Doc1.3/Library.html#Library_carrays
|
||||
* 8.3.2 Passing binary data */
|
||||
%apply (char *STRING, int LENGTH) { (const void* buffer, int len) };
|
||||
|
||||
%include ../_common/tinyWRAP.i
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,7 @@
|
|||
/* File : python.i */
|
||||
|
||||
/* http://www.swig.org/Doc1.3/Library.html#Library_carrays
|
||||
* 8.3.2 Passing binary data */
|
||||
%apply (char *STRING, int LENGTH) { (const void* buffer, int len) };
|
||||
|
||||
%include ../_common/tinyWRAP.i
|
||||
|
|
|
@ -1,332 +1,350 @@
|
|||
# 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.
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
from sys import version_info
|
||||
if version_info >= (2,6,0):
|
||||
def swig_import_helper():
|
||||
from os.path import dirname
|
||||
import imp
|
||||
try:
|
||||
fp, pathname, description = imp.find_module('_tinyWRAP', [dirname(__file__)])
|
||||
_mod = imp.load_module('_tinyWRAP', fp, pathname, description)
|
||||
finally:
|
||||
if fp is not None: fp.close()
|
||||
return _mod
|
||||
_tinyWRAP = swig_import_helper()
|
||||
del swig_import_helper
|
||||
else:
|
||||
import _tinyWRAP
|
||||
del version_info
|
||||
try:
|
||||
_swig_property = property
|
||||
except NameError:
|
||||
pass # Python < 2.2 doesn't have 'property'.
|
||||
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
||||
if (name == "thisown"): return self.this.own(value)
|
||||
if (name == "this"):
|
||||
if type(value).__name__ == 'SwigPyObject':
|
||||
self.__dict__[name] = value
|
||||
return
|
||||
method = class_type.__swig_setmethods__.get(name,None)
|
||||
if method: return method(self,value)
|
||||
if (not static) or hasattr(self,name):
|
||||
self.__dict__[name] = value
|
||||
else:
|
||||
raise AttributeError("You cannot add attributes to %s" % self)
|
||||
|
||||
def _swig_setattr(self,class_type,name,value):
|
||||
return _swig_setattr_nondynamic(self,class_type,name,value,0)
|
||||
|
||||
def _swig_getattr(self,class_type,name):
|
||||
if (name == "thisown"): return self.this.own()
|
||||
method = class_type.__swig_getmethods__.get(name,None)
|
||||
if method: return method(self)
|
||||
raise AttributeError(name)
|
||||
|
||||
def _swig_repr(self):
|
||||
try: strthis = "proxy of " + self.this.__repr__()
|
||||
except: strthis = ""
|
||||
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
||||
|
||||
try:
|
||||
_object = object
|
||||
_newclass = 1
|
||||
except AttributeError:
|
||||
class _object : pass
|
||||
_newclass = 0
|
||||
|
||||
|
||||
try:
|
||||
import weakref
|
||||
weakref_proxy = weakref.proxy
|
||||
except:
|
||||
weakref_proxy = lambda x: x
|
||||
|
||||
|
||||
class SipUri(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipUri, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipUri, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_SipUri(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipUri
|
||||
__del__ = lambda self : None;
|
||||
def isValid(self, *args): return _tinyWRAP.SipUri_isValid(self, *args)
|
||||
SipUri_swigregister = _tinyWRAP.SipUri_swigregister
|
||||
SipUri_swigregister(SipUri)
|
||||
|
||||
class SipEvent(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipEvent, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipEvent, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
this = _tinyWRAP.new_SipEvent()
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipEvent
|
||||
__del__ = lambda self : None;
|
||||
def getCode(self): return _tinyWRAP.SipEvent_getCode(self)
|
||||
def getPhrase(self): return _tinyWRAP.SipEvent_getPhrase(self)
|
||||
def getBaseSession(self): return _tinyWRAP.SipEvent_getBaseSession(self)
|
||||
SipEvent_swigregister = _tinyWRAP.SipEvent_swigregister
|
||||
SipEvent_swigregister(SipEvent)
|
||||
|
||||
class SipSession(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipSession, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipSession, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_SipSession(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipSession
|
||||
__del__ = lambda self : None;
|
||||
def addHeader(self, *args): return _tinyWRAP.SipSession_addHeader(self, *args)
|
||||
def removeHeader(self, *args): return _tinyWRAP.SipSession_removeHeader(self, *args)
|
||||
def addCaps(self, *args): return _tinyWRAP.SipSession_addCaps(self, *args)
|
||||
def removeCaps(self, *args): return _tinyWRAP.SipSession_removeCaps(self, *args)
|
||||
def setExpires(self, *args): return _tinyWRAP.SipSession_setExpires(self, *args)
|
||||
def setFromUri(self, *args): return _tinyWRAP.SipSession_setFromUri(self, *args)
|
||||
def setToUri(self, *args): return _tinyWRAP.SipSession_setToUri(self, *args)
|
||||
def setPayload(self, *args): return _tinyWRAP.SipSession_setPayload(self, *args)
|
||||
SipSession_swigregister = _tinyWRAP.SipSession_swigregister
|
||||
SipSession_swigregister(SipSession)
|
||||
|
||||
class RegistrationEvent(SipEvent):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationEvent, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, RegistrationEvent, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
this = _tinyWRAP.new_RegistrationEvent()
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_RegistrationEvent
|
||||
__del__ = lambda self : None;
|
||||
def getType(self): return _tinyWRAP.RegistrationEvent_getType(self)
|
||||
def getSession(self): return _tinyWRAP.RegistrationEvent_getSession(self)
|
||||
RegistrationEvent_swigregister = _tinyWRAP.RegistrationEvent_swigregister
|
||||
RegistrationEvent_swigregister(RegistrationEvent)
|
||||
|
||||
class RegistrationSession(SipSession):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationSession, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, RegistrationSession, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_RegistrationSession(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_RegistrationSession
|
||||
__del__ = lambda self : None;
|
||||
def Register(self): return _tinyWRAP.RegistrationSession_Register(self)
|
||||
def UnRegister(self): return _tinyWRAP.RegistrationSession_UnRegister(self)
|
||||
RegistrationSession_swigregister = _tinyWRAP.RegistrationSession_swigregister
|
||||
RegistrationSession_swigregister(RegistrationSession)
|
||||
|
||||
class SubscriptionEvent(SipEvent):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionEvent, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SubscriptionEvent, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
this = _tinyWRAP.new_SubscriptionEvent()
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SubscriptionEvent
|
||||
__del__ = lambda self : None;
|
||||
def getType(self): return _tinyWRAP.SubscriptionEvent_getType(self)
|
||||
def getSession(self): return _tinyWRAP.SubscriptionEvent_getSession(self)
|
||||
SubscriptionEvent_swigregister = _tinyWRAP.SubscriptionEvent_swigregister
|
||||
SubscriptionEvent_swigregister(SubscriptionEvent)
|
||||
|
||||
class SubscriptionSession(SipSession):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionSession, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SubscriptionSession, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_SubscriptionSession(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SubscriptionSession
|
||||
__del__ = lambda self : None;
|
||||
def Subscribe(self): return _tinyWRAP.SubscriptionSession_Subscribe(self)
|
||||
def UnSubscribe(self): return _tinyWRAP.SubscriptionSession_UnSubscribe(self)
|
||||
SubscriptionSession_swigregister = _tinyWRAP.SubscriptionSession_swigregister
|
||||
SubscriptionSession_swigregister(SubscriptionSession)
|
||||
|
||||
class SipCallback(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipCallback, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipCallback, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
if self.__class__ == SipCallback:
|
||||
_self = None
|
||||
else:
|
||||
_self = self
|
||||
this = _tinyWRAP.new_SipCallback(_self, )
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipCallback
|
||||
__del__ = lambda self : None;
|
||||
def OnRegistrationChanged(self, *args): return _tinyWRAP.SipCallback_OnRegistrationChanged(self, *args)
|
||||
def OnSubscriptionChanged(self, *args): return _tinyWRAP.SipCallback_OnSubscriptionChanged(self, *args)
|
||||
def __disown__(self):
|
||||
self.this.disown()
|
||||
_tinyWRAP.disown_SipCallback(self)
|
||||
return weakref_proxy(self)
|
||||
SipCallback_swigregister = _tinyWRAP.SipCallback_swigregister
|
||||
SipCallback_swigregister(SipCallback)
|
||||
|
||||
class SipDebugCallback(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipDebugCallback, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipDebugCallback, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
if self.__class__ == SipDebugCallback:
|
||||
_self = None
|
||||
else:
|
||||
_self = self
|
||||
this = _tinyWRAP.new_SipDebugCallback(_self, )
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipDebugCallback
|
||||
__del__ = lambda self : None;
|
||||
def OnDebugInfo(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugInfo(self, *args)
|
||||
def OnDebugWarn(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugWarn(self, *args)
|
||||
def OnDebugError(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugError(self, *args)
|
||||
def OnDebugFatal(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugFatal(self, *args)
|
||||
def __disown__(self):
|
||||
self.this.disown()
|
||||
_tinyWRAP.disown_SipDebugCallback(self)
|
||||
return weakref_proxy(self)
|
||||
SipDebugCallback_swigregister = _tinyWRAP.SipDebugCallback_swigregister
|
||||
SipDebugCallback_swigregister(SipDebugCallback)
|
||||
|
||||
class SafeObject(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SafeObject, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SafeObject, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
this = _tinyWRAP.new_SafeObject()
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SafeObject
|
||||
__del__ = lambda self : None;
|
||||
def Lock(self): return _tinyWRAP.SafeObject_Lock(self)
|
||||
def UnLock(self): return _tinyWRAP.SafeObject_UnLock(self)
|
||||
SafeObject_swigregister = _tinyWRAP.SafeObject_swigregister
|
||||
SafeObject_swigregister(SafeObject)
|
||||
|
||||
class SipStack(SafeObject):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SafeObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipStack, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SafeObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipStack, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_SipStack(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipStack
|
||||
__del__ = lambda self : None;
|
||||
def start(self): return _tinyWRAP.SipStack_start(self)
|
||||
def setDebugCallback(self, *args): return _tinyWRAP.SipStack_setDebugCallback(self, *args)
|
||||
def setRealm(self, *args): return _tinyWRAP.SipStack_setRealm(self, *args)
|
||||
def setIMPI(self, *args): return _tinyWRAP.SipStack_setIMPI(self, *args)
|
||||
def setIMPU(self, *args): return _tinyWRAP.SipStack_setIMPU(self, *args)
|
||||
def setPassword(self, *args): return _tinyWRAP.SipStack_setPassword(self, *args)
|
||||
def setProxyCSCF(self, *args): return _tinyWRAP.SipStack_setProxyCSCF(self, *args)
|
||||
def setLocalIP(self, *args): return _tinyWRAP.SipStack_setLocalIP(self, *args)
|
||||
def setLocalPort(self, *args): return _tinyWRAP.SipStack_setLocalPort(self, *args)
|
||||
def setEarlyIMS(self, *args): return _tinyWRAP.SipStack_setEarlyIMS(self, *args)
|
||||
def addHeader(self, *args): return _tinyWRAP.SipStack_addHeader(self, *args)
|
||||
def removeHeader(self, *args): return _tinyWRAP.SipStack_removeHeader(self, *args)
|
||||
def addDnsServer(self, *args): return _tinyWRAP.SipStack_addDnsServer(self, *args)
|
||||
def isValid(self): return _tinyWRAP.SipStack_isValid(self)
|
||||
def stop(self): return _tinyWRAP.SipStack_stop(self)
|
||||
SipStack_swigregister = _tinyWRAP.SipStack_swigregister
|
||||
SipStack_swigregister(SipStack)
|
||||
|
||||
tsip_event_invite = _tinyWRAP.tsip_event_invite
|
||||
tsip_event_message = _tinyWRAP.tsip_event_message
|
||||
tsip_event_options = _tinyWRAP.tsip_event_options
|
||||
tsip_event_publish = _tinyWRAP.tsip_event_publish
|
||||
tsip_event_register = _tinyWRAP.tsip_event_register
|
||||
tsip_event_subscribe = _tinyWRAP.tsip_event_subscribe
|
||||
tsip_event_dialog = _tinyWRAP.tsip_event_dialog
|
||||
tsip_i_register = _tinyWRAP.tsip_i_register
|
||||
tsip_ai_register = _tinyWRAP.tsip_ai_register
|
||||
tsip_o_register = _tinyWRAP.tsip_o_register
|
||||
tsip_ao_register = _tinyWRAP.tsip_ao_register
|
||||
tsip_i_unregister = _tinyWRAP.tsip_i_unregister
|
||||
tsip_ai_unregister = _tinyWRAP.tsip_ai_unregister
|
||||
tsip_o_unregister = _tinyWRAP.tsip_o_unregister
|
||||
tsip_ao_unregister = _tinyWRAP.tsip_ao_unregister
|
||||
tsip_i_subscribe = _tinyWRAP.tsip_i_subscribe
|
||||
tsip_ai_subscribe = _tinyWRAP.tsip_ai_subscribe
|
||||
tsip_o_subscribe = _tinyWRAP.tsip_o_subscribe
|
||||
tsip_ao_subscribe = _tinyWRAP.tsip_ao_subscribe
|
||||
tsip_i_unsubscribe = _tinyWRAP.tsip_i_unsubscribe
|
||||
tsip_ai_unsubscribe = _tinyWRAP.tsip_ai_unsubscribe
|
||||
tsip_o_unsubscribe = _tinyWRAP.tsip_o_unsubscribe
|
||||
tsip_ao_unsubscribe = _tinyWRAP.tsip_ao_unsubscribe
|
||||
tsip_i_notify = _tinyWRAP.tsip_i_notify
|
||||
tsip_ai_notify = _tinyWRAP.tsip_ai_notify
|
||||
tsip_o_notify = _tinyWRAP.tsip_o_notify
|
||||
tsip_ao_notify = _tinyWRAP.tsip_ao_notify
|
||||
|
||||
|
||||
# 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.
|
||||
# This file is compatible with both classic and new-style classes.
|
||||
|
||||
from sys import version_info
|
||||
if version_info >= (2,6,0):
|
||||
def swig_import_helper():
|
||||
from os.path import dirname
|
||||
import imp
|
||||
try:
|
||||
fp, pathname, description = imp.find_module('_tinyWRAP', [dirname(__file__)])
|
||||
_mod = imp.load_module('_tinyWRAP', fp, pathname, description)
|
||||
finally:
|
||||
if fp is not None: fp.close()
|
||||
return _mod
|
||||
_tinyWRAP = swig_import_helper()
|
||||
del swig_import_helper
|
||||
else:
|
||||
import _tinyWRAP
|
||||
del version_info
|
||||
try:
|
||||
_swig_property = property
|
||||
except NameError:
|
||||
pass # Python < 2.2 doesn't have 'property'.
|
||||
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
|
||||
if (name == "thisown"): return self.this.own(value)
|
||||
if (name == "this"):
|
||||
if type(value).__name__ == 'SwigPyObject':
|
||||
self.__dict__[name] = value
|
||||
return
|
||||
method = class_type.__swig_setmethods__.get(name,None)
|
||||
if method: return method(self,value)
|
||||
if (not static) or hasattr(self,name):
|
||||
self.__dict__[name] = value
|
||||
else:
|
||||
raise AttributeError("You cannot add attributes to %s" % self)
|
||||
|
||||
def _swig_setattr(self,class_type,name,value):
|
||||
return _swig_setattr_nondynamic(self,class_type,name,value,0)
|
||||
|
||||
def _swig_getattr(self,class_type,name):
|
||||
if (name == "thisown"): return self.this.own()
|
||||
method = class_type.__swig_getmethods__.get(name,None)
|
||||
if method: return method(self)
|
||||
raise AttributeError(name)
|
||||
|
||||
def _swig_repr(self):
|
||||
try: strthis = "proxy of " + self.this.__repr__()
|
||||
except: strthis = ""
|
||||
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
|
||||
|
||||
try:
|
||||
_object = object
|
||||
_newclass = 1
|
||||
except AttributeError:
|
||||
class _object : pass
|
||||
_newclass = 0
|
||||
|
||||
|
||||
try:
|
||||
import weakref
|
||||
weakref_proxy = weakref.proxy
|
||||
except:
|
||||
weakref_proxy = lambda x: x
|
||||
|
||||
|
||||
class SipUri(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipUri, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipUri, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_SipUri(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipUri
|
||||
__del__ = lambda self : None;
|
||||
def isValid(self, *args): return _tinyWRAP.SipUri_isValid(self, *args)
|
||||
SipUri_swigregister = _tinyWRAP.SipUri_swigregister
|
||||
SipUri_swigregister(SipUri)
|
||||
|
||||
class SipMessage(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipMessage, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipMessage, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
this = _tinyWRAP.new_SipMessage()
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipMessage
|
||||
__del__ = lambda self : None;
|
||||
def getSipContent(self): return _tinyWRAP.SipMessage_getSipContent(self)
|
||||
def getSipHeaderValue(self, *args): return _tinyWRAP.SipMessage_getSipHeaderValue(self, *args)
|
||||
def getSipHeaderParamValue(self, *args): return _tinyWRAP.SipMessage_getSipHeaderParamValue(self, *args)
|
||||
SipMessage_swigregister = _tinyWRAP.SipMessage_swigregister
|
||||
SipMessage_swigregister(SipMessage)
|
||||
|
||||
class SipEvent(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipEvent, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipEvent, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
this = _tinyWRAP.new_SipEvent()
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipEvent
|
||||
__del__ = lambda self : None;
|
||||
def getCode(self): return _tinyWRAP.SipEvent_getCode(self)
|
||||
def getPhrase(self): return _tinyWRAP.SipEvent_getPhrase(self)
|
||||
def getBaseSession(self): return _tinyWRAP.SipEvent_getBaseSession(self)
|
||||
def getSipMessage(self): return _tinyWRAP.SipEvent_getSipMessage(self)
|
||||
SipEvent_swigregister = _tinyWRAP.SipEvent_swigregister
|
||||
SipEvent_swigregister(SipEvent)
|
||||
|
||||
class SipSession(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipSession, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipSession, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_SipSession(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipSession
|
||||
__del__ = lambda self : None;
|
||||
def addHeader(self, *args): return _tinyWRAP.SipSession_addHeader(self, *args)
|
||||
def removeHeader(self, *args): return _tinyWRAP.SipSession_removeHeader(self, *args)
|
||||
def addCaps(self, *args): return _tinyWRAP.SipSession_addCaps(self, *args)
|
||||
def removeCaps(self, *args): return _tinyWRAP.SipSession_removeCaps(self, *args)
|
||||
def setExpires(self, *args): return _tinyWRAP.SipSession_setExpires(self, *args)
|
||||
def setFromUri(self, *args): return _tinyWRAP.SipSession_setFromUri(self, *args)
|
||||
def setToUri(self, *args): return _tinyWRAP.SipSession_setToUri(self, *args)
|
||||
SipSession_swigregister = _tinyWRAP.SipSession_swigregister
|
||||
SipSession_swigregister(SipSession)
|
||||
|
||||
class RegistrationEvent(SipEvent):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationEvent, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, RegistrationEvent, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
this = _tinyWRAP.new_RegistrationEvent()
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_RegistrationEvent
|
||||
__del__ = lambda self : None;
|
||||
def getType(self): return _tinyWRAP.RegistrationEvent_getType(self)
|
||||
def getSession(self): return _tinyWRAP.RegistrationEvent_getSession(self)
|
||||
RegistrationEvent_swigregister = _tinyWRAP.RegistrationEvent_swigregister
|
||||
RegistrationEvent_swigregister(RegistrationEvent)
|
||||
|
||||
class RegistrationSession(SipSession):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationSession, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, RegistrationSession, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_RegistrationSession(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_RegistrationSession
|
||||
__del__ = lambda self : None;
|
||||
def Register(self): return _tinyWRAP.RegistrationSession_Register(self)
|
||||
def UnRegister(self): return _tinyWRAP.RegistrationSession_UnRegister(self)
|
||||
RegistrationSession_swigregister = _tinyWRAP.RegistrationSession_swigregister
|
||||
RegistrationSession_swigregister(RegistrationSession)
|
||||
|
||||
class SubscriptionEvent(SipEvent):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionEvent, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SubscriptionEvent, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
this = _tinyWRAP.new_SubscriptionEvent()
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SubscriptionEvent
|
||||
__del__ = lambda self : None;
|
||||
def getType(self): return _tinyWRAP.SubscriptionEvent_getType(self)
|
||||
def getSession(self): return _tinyWRAP.SubscriptionEvent_getSession(self)
|
||||
SubscriptionEvent_swigregister = _tinyWRAP.SubscriptionEvent_swigregister
|
||||
SubscriptionEvent_swigregister(SubscriptionEvent)
|
||||
|
||||
class SubscriptionSession(SipSession):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionSession, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SubscriptionSession, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_SubscriptionSession(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SubscriptionSession
|
||||
__del__ = lambda self : None;
|
||||
def Subscribe(self): return _tinyWRAP.SubscriptionSession_Subscribe(self)
|
||||
def UnSubscribe(self): return _tinyWRAP.SubscriptionSession_UnSubscribe(self)
|
||||
SubscriptionSession_swigregister = _tinyWRAP.SubscriptionSession_swigregister
|
||||
SubscriptionSession_swigregister(SubscriptionSession)
|
||||
|
||||
class SipCallback(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipCallback, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipCallback, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
if self.__class__ == SipCallback:
|
||||
_self = None
|
||||
else:
|
||||
_self = self
|
||||
this = _tinyWRAP.new_SipCallback(_self, )
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipCallback
|
||||
__del__ = lambda self : None;
|
||||
def OnRegistrationChanged(self, *args): return _tinyWRAP.SipCallback_OnRegistrationChanged(self, *args)
|
||||
def OnSubscriptionChanged(self, *args): return _tinyWRAP.SipCallback_OnSubscriptionChanged(self, *args)
|
||||
def __disown__(self):
|
||||
self.this.disown()
|
||||
_tinyWRAP.disown_SipCallback(self)
|
||||
return weakref_proxy(self)
|
||||
SipCallback_swigregister = _tinyWRAP.SipCallback_swigregister
|
||||
SipCallback_swigregister(SipCallback)
|
||||
|
||||
class SipDebugCallback(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipDebugCallback, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipDebugCallback, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
if self.__class__ == SipDebugCallback:
|
||||
_self = None
|
||||
else:
|
||||
_self = self
|
||||
this = _tinyWRAP.new_SipDebugCallback(_self, )
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipDebugCallback
|
||||
__del__ = lambda self : None;
|
||||
def OnDebugInfo(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugInfo(self, *args)
|
||||
def OnDebugWarn(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugWarn(self, *args)
|
||||
def OnDebugError(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugError(self, *args)
|
||||
def OnDebugFatal(self, *args): return _tinyWRAP.SipDebugCallback_OnDebugFatal(self, *args)
|
||||
def __disown__(self):
|
||||
self.this.disown()
|
||||
_tinyWRAP.disown_SipDebugCallback(self)
|
||||
return weakref_proxy(self)
|
||||
SipDebugCallback_swigregister = _tinyWRAP.SipDebugCallback_swigregister
|
||||
SipDebugCallback_swigregister(SipDebugCallback)
|
||||
|
||||
class SafeObject(_object):
|
||||
__swig_setmethods__ = {}
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SafeObject, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SafeObject, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self):
|
||||
this = _tinyWRAP.new_SafeObject()
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SafeObject
|
||||
__del__ = lambda self : None;
|
||||
def Lock(self): return _tinyWRAP.SafeObject_Lock(self)
|
||||
def UnLock(self): return _tinyWRAP.SafeObject_UnLock(self)
|
||||
SafeObject_swigregister = _tinyWRAP.SafeObject_swigregister
|
||||
SafeObject_swigregister(SafeObject)
|
||||
|
||||
class SipStack(SafeObject):
|
||||
__swig_setmethods__ = {}
|
||||
for _s in [SafeObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
|
||||
__setattr__ = lambda self, name, value: _swig_setattr(self, SipStack, name, value)
|
||||
__swig_getmethods__ = {}
|
||||
for _s in [SafeObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
|
||||
__getattr__ = lambda self, name: _swig_getattr(self, SipStack, name)
|
||||
__repr__ = _swig_repr
|
||||
def __init__(self, *args):
|
||||
this = _tinyWRAP.new_SipStack(*args)
|
||||
try: self.this.append(this)
|
||||
except: self.this = this
|
||||
__swig_destroy__ = _tinyWRAP.delete_SipStack
|
||||
__del__ = lambda self : None;
|
||||
def start(self): return _tinyWRAP.SipStack_start(self)
|
||||
def setDebugCallback(self, *args): return _tinyWRAP.SipStack_setDebugCallback(self, *args)
|
||||
def setRealm(self, *args): return _tinyWRAP.SipStack_setRealm(self, *args)
|
||||
def setIMPI(self, *args): return _tinyWRAP.SipStack_setIMPI(self, *args)
|
||||
def setIMPU(self, *args): return _tinyWRAP.SipStack_setIMPU(self, *args)
|
||||
def setPassword(self, *args): return _tinyWRAP.SipStack_setPassword(self, *args)
|
||||
def setProxyCSCF(self, *args): return _tinyWRAP.SipStack_setProxyCSCF(self, *args)
|
||||
def setLocalIP(self, *args): return _tinyWRAP.SipStack_setLocalIP(self, *args)
|
||||
def setLocalPort(self, *args): return _tinyWRAP.SipStack_setLocalPort(self, *args)
|
||||
def setEarlyIMS(self, *args): return _tinyWRAP.SipStack_setEarlyIMS(self, *args)
|
||||
def addHeader(self, *args): return _tinyWRAP.SipStack_addHeader(self, *args)
|
||||
def removeHeader(self, *args): return _tinyWRAP.SipStack_removeHeader(self, *args)
|
||||
def addDnsServer(self, *args): return _tinyWRAP.SipStack_addDnsServer(self, *args)
|
||||
def isValid(self): return _tinyWRAP.SipStack_isValid(self)
|
||||
def stop(self): return _tinyWRAP.SipStack_stop(self)
|
||||
SipStack_swigregister = _tinyWRAP.SipStack_swigregister
|
||||
SipStack_swigregister(SipStack)
|
||||
|
||||
tsip_event_invite = _tinyWRAP.tsip_event_invite
|
||||
tsip_event_message = _tinyWRAP.tsip_event_message
|
||||
tsip_event_options = _tinyWRAP.tsip_event_options
|
||||
tsip_event_publish = _tinyWRAP.tsip_event_publish
|
||||
tsip_event_register = _tinyWRAP.tsip_event_register
|
||||
tsip_event_subscribe = _tinyWRAP.tsip_event_subscribe
|
||||
tsip_event_dialog = _tinyWRAP.tsip_event_dialog
|
||||
tsip_i_register = _tinyWRAP.tsip_i_register
|
||||
tsip_ai_register = _tinyWRAP.tsip_ai_register
|
||||
tsip_o_register = _tinyWRAP.tsip_o_register
|
||||
tsip_ao_register = _tinyWRAP.tsip_ao_register
|
||||
tsip_i_unregister = _tinyWRAP.tsip_i_unregister
|
||||
tsip_ai_unregister = _tinyWRAP.tsip_ai_unregister
|
||||
tsip_o_unregister = _tinyWRAP.tsip_o_unregister
|
||||
tsip_ao_unregister = _tinyWRAP.tsip_ao_unregister
|
||||
tsip_i_subscribe = _tinyWRAP.tsip_i_subscribe
|
||||
tsip_ai_subscribe = _tinyWRAP.tsip_ai_subscribe
|
||||
tsip_o_subscribe = _tinyWRAP.tsip_o_subscribe
|
||||
tsip_ao_subscribe = _tinyWRAP.tsip_ao_subscribe
|
||||
tsip_i_unsubscribe = _tinyWRAP.tsip_i_unsubscribe
|
||||
tsip_ai_unsubscribe = _tinyWRAP.tsip_ai_unsubscribe
|
||||
tsip_o_unsubscribe = _tinyWRAP.tsip_o_unsubscribe
|
||||
tsip_ao_unsubscribe = _tinyWRAP.tsip_ao_unsubscribe
|
||||
tsip_i_notify = _tinyWRAP.tsip_i_notify
|
||||
tsip_ai_notify = _tinyWRAP.tsip_ai_notify
|
||||
tsip_o_notify = _tinyWRAP.tsip_o_notify
|
||||
tsip_ao_notify = _tinyWRAP.tsip_ao_notify
|
||||
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,112 +1,112 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.39
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
* changes to this file unless you know what you are doing--modify the SWIG
|
||||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#ifndef SWIG_tinyWRAP_WRAP_H_
|
||||
#define SWIG_tinyWRAP_WRAP_H_
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
|
||||
class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
SwigDirector_SipCallback(PyObject *self);
|
||||
virtual ~SwigDirector_SipCallback();
|
||||
virtual int OnRegistrationChanged(RegistrationEvent const *e);
|
||||
virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
|
||||
|
||||
|
||||
/* Internal Director utilities */
|
||||
public:
|
||||
bool swig_get_inner(const char* name) const {
|
||||
std::map<std::string, bool>::const_iterator iv = inner.find(name);
|
||||
return (iv != inner.end() ? iv->second : false);
|
||||
}
|
||||
|
||||
void swig_set_inner(const char* name, bool val) const
|
||||
{ inner[name] = val;}
|
||||
|
||||
private:
|
||||
mutable std::map<std::string, bool> inner;
|
||||
|
||||
|
||||
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
|
||||
/* VTable implementation */
|
||||
PyObject *swig_get_method(size_t method_index, const char *method_name) const {
|
||||
PyObject *method = vtable[method_index];
|
||||
if (!method) {
|
||||
swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
|
||||
method = PyObject_GetAttr(swig_get_self(), name);
|
||||
if (method == NULL) {
|
||||
std::string msg = "Method in class SipCallback doesn't exist, undefined ";
|
||||
msg += method_name;
|
||||
Swig::DirectorMethodException::raise(msg.c_str());
|
||||
}
|
||||
vtable[method_index] = method;
|
||||
};
|
||||
return method;
|
||||
}
|
||||
private:
|
||||
mutable swig::SwigVar_PyObject vtable[2];
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
||||
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
SwigDirector_SipDebugCallback(PyObject *self);
|
||||
virtual ~SwigDirector_SipDebugCallback();
|
||||
virtual int OnDebugInfo(char const *message);
|
||||
virtual int OnDebugWarn(char const *message);
|
||||
virtual int OnDebugError(char const *message);
|
||||
virtual int OnDebugFatal(char const *message);
|
||||
|
||||
|
||||
/* Internal Director utilities */
|
||||
public:
|
||||
bool swig_get_inner(const char* name) const {
|
||||
std::map<std::string, bool>::const_iterator iv = inner.find(name);
|
||||
return (iv != inner.end() ? iv->second : false);
|
||||
}
|
||||
|
||||
void swig_set_inner(const char* name, bool val) const
|
||||
{ inner[name] = val;}
|
||||
|
||||
private:
|
||||
mutable std::map<std::string, bool> inner;
|
||||
|
||||
|
||||
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
|
||||
/* VTable implementation */
|
||||
PyObject *swig_get_method(size_t method_index, const char *method_name) const {
|
||||
PyObject *method = vtable[method_index];
|
||||
if (!method) {
|
||||
swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
|
||||
method = PyObject_GetAttr(swig_get_self(), name);
|
||||
if (method == NULL) {
|
||||
std::string msg = "Method in class SipDebugCallback doesn't exist, undefined ";
|
||||
msg += method_name;
|
||||
Swig::DirectorMethodException::raise(msg.c_str());
|
||||
}
|
||||
vtable[method_index] = method;
|
||||
};
|
||||
return method;
|
||||
}
|
||||
private:
|
||||
mutable swig::SwigVar_PyObject vtable[4];
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.39
|
||||
*
|
||||
* This file is not intended to be easily readable and contains a number of
|
||||
* coding conventions designed to improve portability and efficiency. Do not make
|
||||
* changes to this file unless you know what you are doing--modify the SWIG
|
||||
* interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#ifndef SWIG_tinyWRAP_WRAP_H_
|
||||
#define SWIG_tinyWRAP_WRAP_H_
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
|
||||
class SwigDirector_SipCallback : public SipCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
SwigDirector_SipCallback(PyObject *self);
|
||||
virtual ~SwigDirector_SipCallback();
|
||||
virtual int OnRegistrationChanged(RegistrationEvent const *e);
|
||||
virtual int OnSubscriptionChanged(SubscriptionEvent const *e);
|
||||
|
||||
|
||||
/* Internal Director utilities */
|
||||
public:
|
||||
bool swig_get_inner(const char* name) const {
|
||||
std::map<std::string, bool>::const_iterator iv = inner.find(name);
|
||||
return (iv != inner.end() ? iv->second : false);
|
||||
}
|
||||
|
||||
void swig_set_inner(const char* name, bool val) const
|
||||
{ inner[name] = val;}
|
||||
|
||||
private:
|
||||
mutable std::map<std::string, bool> inner;
|
||||
|
||||
|
||||
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
|
||||
/* VTable implementation */
|
||||
PyObject *swig_get_method(size_t method_index, const char *method_name) const {
|
||||
PyObject *method = vtable[method_index];
|
||||
if (!method) {
|
||||
swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
|
||||
method = PyObject_GetAttr(swig_get_self(), name);
|
||||
if (method == NULL) {
|
||||
std::string msg = "Method in class SipCallback doesn't exist, undefined ";
|
||||
msg += method_name;
|
||||
Swig::DirectorMethodException::raise(msg.c_str());
|
||||
}
|
||||
vtable[method_index] = method;
|
||||
};
|
||||
return method;
|
||||
}
|
||||
private:
|
||||
mutable swig::SwigVar_PyObject vtable[2];
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
||||
class SwigDirector_SipDebugCallback : public SipDebugCallback, public Swig::Director {
|
||||
|
||||
public:
|
||||
SwigDirector_SipDebugCallback(PyObject *self);
|
||||
virtual ~SwigDirector_SipDebugCallback();
|
||||
virtual int OnDebugInfo(char const *message);
|
||||
virtual int OnDebugWarn(char const *message);
|
||||
virtual int OnDebugError(char const *message);
|
||||
virtual int OnDebugFatal(char const *message);
|
||||
|
||||
|
||||
/* Internal Director utilities */
|
||||
public:
|
||||
bool swig_get_inner(const char* name) const {
|
||||
std::map<std::string, bool>::const_iterator iv = inner.find(name);
|
||||
return (iv != inner.end() ? iv->second : false);
|
||||
}
|
||||
|
||||
void swig_set_inner(const char* name, bool val) const
|
||||
{ inner[name] = val;}
|
||||
|
||||
private:
|
||||
mutable std::map<std::string, bool> inner;
|
||||
|
||||
|
||||
#if defined(SWIG_PYTHON_DIRECTOR_VTABLE)
|
||||
/* VTable implementation */
|
||||
PyObject *swig_get_method(size_t method_index, const char *method_name) const {
|
||||
PyObject *method = vtable[method_index];
|
||||
if (!method) {
|
||||
swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name);
|
||||
method = PyObject_GetAttr(swig_get_self(), name);
|
||||
if (method == NULL) {
|
||||
std::string msg = "Method in class SipDebugCallback doesn't exist, undefined ";
|
||||
msg += method_name;
|
||||
Swig::DirectorMethodException::raise(msg.c_str());
|
||||
}
|
||||
vtable[method_index] = method;
|
||||
};
|
||||
return method;
|
||||
}
|
||||
private:
|
||||
mutable swig::SwigVar_PyObject vtable[4];
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* File : ruby.i */
|
||||
|
||||
/* http://www.swig.org/Doc1.3/Library.html#Library_carrays
|
||||
* 8.3.2 Passing binary data */
|
||||
%apply (char *STRING, int LENGTH) { (const void* buffer, int len) };
|
||||
|
||||
%include ../_common/tinyWRAP.i
|
||||
|
|
|
@ -121,7 +121,10 @@ int tsk_stricmp(const char * str1, const char * str2)
|
|||
*/
|
||||
int tsk_strnicmp(const char * str1, const char * str2, tsk_size_t n)
|
||||
{
|
||||
return (str1 && str2) ? strnicmp(str1, str2, n) : ((!str1 && !str2) ? 0 : -1);
|
||||
return (str1 && str2 && n) ?
|
||||
( (tolower(*str1) == tolower(*str2)) ? strnicmp(str1, str2, n) : (*str1-*str2) ) /* Compare first charaters before doing complete comparison */
|
||||
:
|
||||
( (!str1 && !str2) ? 0 : -1 );
|
||||
}
|
||||
|
||||
/**@ingroup tsk_string_group
|
||||
|
|
|
@ -48,9 +48,9 @@ struct tsip_header_s;
|
|||
|
||||
#define TSIP_HEADER(self) ((tsip_header_t*)(self))
|
||||
#define TSIP_HEADER_PARAMS(self) (TSIP_HEADER(self)->params)
|
||||
#define TSIP_HEADER_VALUE_TOSTRING_F(self) ((tsip_header_value_tostring_f)(self))
|
||||
#define TSIP_HEADER_VALUE_SERIALIZE_F(self) ((tsip_header_value_serialize_f)(self))
|
||||
|
||||
typedef int (*tsip_header_value_tostring_f)(const struct tsip_header_s* header, tsk_buffer_t* output);
|
||||
typedef int (*tsip_header_value_serialize_f)(const struct tsip_header_s* header, tsk_buffer_t* output);
|
||||
|
||||
/**
|
||||
* @enum tsip_header_type_e
|
||||
|
@ -161,7 +161,7 @@ typedef struct tsip_header_s
|
|||
{
|
||||
TSK_DECLARE_OBJECT;
|
||||
tsip_header_type_t type;
|
||||
tsip_header_value_tostring_f tostring;
|
||||
tsip_header_value_serialize_f serialize;
|
||||
tsk_params_L_t *params;
|
||||
}
|
||||
tsip_header_t;
|
||||
|
@ -172,9 +172,12 @@ typedef tsk_list_t tsip_headers_L_t; /**< List of @ref tsip_header_t elements. *
|
|||
================================*/
|
||||
|
||||
TINYSIP_API const char *tsip_header_get_name(tsip_header_type_t type);
|
||||
TINYSIP_API const char *tsip_header_get_nameex(const tsip_header_t *self);
|
||||
TINYSIP_API const char *tsip_header_get_name_2(const tsip_header_t *self);
|
||||
TINYSIP_API char tsip_header_get_param_separator(const tsip_header_t *self);
|
||||
TINYSIP_API int tsip_header_tostring(const tsip_header_t *self, tsk_buffer_t *output);
|
||||
TINYSIP_API int tsip_header_serialize(const tsip_header_t *self, tsk_buffer_t *output);
|
||||
TINYSIP_API char* tsip_header_tostring(const tsip_header_t *self);
|
||||
TINYSIP_API int tsip_header_value_serialize(const tsip_header_t *self, tsk_buffer_t *output);
|
||||
TINYSIP_API char* tsip_header_value_tostring(const tsip_header_t *self);
|
||||
|
||||
#define TSIP_HEADER_HAVE_PARAM(self, name) tsk_params_have_param(self ? TSIP_HEADER(self)->params : tsk_null, name)
|
||||
#define TSIP_HEADER_ADD_PARAM(self, name, value) tsk_params_add_param(self ? &TSIP_HEADER(self)->params : tsk_null, name, value)
|
||||
|
|
|
@ -112,6 +112,7 @@ TINYSIP_API int tsip_ssession_take_ownership(tsip_ssession_handle_t *self);
|
|||
TINYSIP_API tsk_bool_t tsip_ssession_have_ownership(const tsip_ssession_handle_t *self);
|
||||
TINYSIP_API int tsip_ssession_respond(const tsip_ssession_handle_t *self, short status, const char* phrase, const void* payload, tsk_size_t size, const struct tsip_message_s* request, ...);
|
||||
TINYSIP_API const void* tsip_ssession_get_userdata(const tsip_ssession_handle_t *self);
|
||||
TINYSIP_API const tsip_stack_handle_t* tsip_ssession_get_stack(const tsip_ssession_handle_t *self);
|
||||
|
||||
int tsip_ssession_handle(const tsip_ssession_t *self, const struct tsip_action_s* action);
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ tsip_header_Allow_t* tsip_header_Allow_create()
|
|||
return tsk_object_new(tsip_header_Allow_def_t);
|
||||
}
|
||||
|
||||
int tsip_header_Allow_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Allow_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Allow_t *Allow = (const tsip_header_Allow_t *)header;
|
||||
|
@ -137,7 +137,7 @@ static tsk_object_t* tsip_header_Allow_ctor(tsk_object_t *self, va_list * app)
|
|||
Allow->methods = tsip_header_Allow_parse(methods, tsk_strlen(methods));
|
||||
}*/
|
||||
TSIP_HEADER(Allow)->type = tsip_htype_Allow;
|
||||
TSIP_HEADER(Allow)->tostring = tsip_header_Allow_tostring;
|
||||
TSIP_HEADER(Allow)->serialize = tsip_header_Allow_serialize;
|
||||
}
|
||||
else{
|
||||
TSK_DEBUG_ERROR("Failed to create new Allow header.");
|
||||
|
|
|
@ -73,7 +73,7 @@ tsip_header_Allow_Events_t* tsip_header_Allow_Events_create()
|
|||
return tsk_object_new(tsip_header_Allow_Events_def_t);
|
||||
}
|
||||
|
||||
int tsip_header_Allow_Events_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Allow_Events_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Allow_Events_t *Allow_Events = (const tsip_header_Allow_Events_t *)header;
|
||||
|
@ -134,7 +134,7 @@ static tsk_object_t* tsip_header_Allow_Events_ctor(tsk_object_t *self, va_list *
|
|||
tsip_header_Allow_Events_t *Allow_events = self;
|
||||
if(Allow_events){
|
||||
TSIP_HEADER(Allow_events)->type = tsip_htype_Allow_Events;
|
||||
TSIP_HEADER(Allow_events)->tostring = tsip_header_Allow_Events_tostring;
|
||||
TSIP_HEADER(Allow_events)->serialize = tsip_header_Allow_Events_serialize;
|
||||
}
|
||||
else{
|
||||
TSK_DEBUG_ERROR("Failed to create new Allow-Events header.");
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
//
|
||||
//}%%
|
||||
//
|
||||
//int tsip_header_Authorization_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
//int tsip_header_Authorization_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
//{
|
||||
// if(header)
|
||||
// {
|
||||
|
@ -242,7 +242,7 @@
|
|||
// if(Authorization)
|
||||
// {
|
||||
// TSIP_HEADER(Authorization)->type = tsip_htype_Authorization;
|
||||
// TSIP_HEADER(Authorization)->tostring = tsip_header_Authorization_tostring;
|
||||
// TSIP_HEADER(Authorization)->serialize = tsip_header_Authorization_serialize;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
|
|
|
@ -73,7 +73,7 @@ tsip_header_CSeq_t* tsip_header_CSeq_create(int32_t seq, const char*method)
|
|||
return tsk_object_new(TSIP_HEADER_CSEQ_VA_ARGS(seq, method));
|
||||
}
|
||||
|
||||
int tsip_header_CSeq_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_CSeq_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_CSeq_t *CSeq = (const tsip_header_CSeq_t *)header;
|
||||
|
@ -119,7 +119,7 @@ static tsk_object_t* tsip_header_CSeq_ctor(tsk_object_t *self, va_list * app)
|
|||
tsip_header_CSeq_t *CSeq = self;
|
||||
if(CSeq){
|
||||
TSIP_HEADER(CSeq)->type = tsip_htype_CSeq;
|
||||
TSIP_HEADER(CSeq)->tostring = tsip_header_CSeq_tostring;
|
||||
TSIP_HEADER(CSeq)->serialize = tsip_header_CSeq_serialize;
|
||||
CSeq->seq = va_arg(*app, uint32_t);
|
||||
CSeq->method = tsk_strdup(va_arg(*app, const char*));
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ tsip_header_Call_ID_t* tsip_header_Call_ID_create(const char* call_id)
|
|||
return tsk_object_new(TSIP_HEADER_CALL_ID_VA_ARGS(call_id));
|
||||
}
|
||||
|
||||
int tsip_header_Call_ID_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Call_ID_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Call_ID_t *Call_ID = (const tsip_header_Call_ID_t *)header;
|
||||
|
@ -127,7 +127,7 @@ static tsk_object_t* tsip_header_Call_ID_ctor(tsk_object_t *self, va_list * app)
|
|||
if(Call_ID){
|
||||
Call_ID->value = tsk_strdup(va_arg(*app, const char *));
|
||||
TSIP_HEADER(Call_ID)->type = tsip_htype_Call_ID;
|
||||
TSIP_HEADER(Call_ID)->tostring = tsip_header_Call_ID_tostring;
|
||||
TSIP_HEADER(Call_ID)->serialize = tsip_header_Call_ID_serialize;
|
||||
}
|
||||
else{
|
||||
TSK_DEBUG_ERROR("Failed to create new Call-ID header.");
|
||||
|
|
|
@ -113,7 +113,7 @@ tsip_header_Contact_t* tsip_header_Contact_create()
|
|||
return tsk_object_new(tsip_header_Contact_def_t);
|
||||
}
|
||||
|
||||
int tsip_header_Contact_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Contact_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Contact_t *Contact = (const tsip_header_Contact_t *)header;
|
||||
|
@ -172,7 +172,7 @@ static tsk_object_t* tsip_header_Contact_ctor(tsk_object_t *self, va_list * app)
|
|||
tsip_header_Contact_t *Contact = self;
|
||||
if(Contact){
|
||||
TSIP_HEADER(Contact)->type = tsip_htype_Contact;
|
||||
TSIP_HEADER(Contact)->tostring = tsip_header_Contact_tostring;
|
||||
TSIP_HEADER(Contact)->serialize = tsip_header_Contact_serialize;
|
||||
Contact->expires = -1;
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -72,7 +72,7 @@ tsip_header_Content_Length_t* tsip_header_Content_Length_create_null()
|
|||
return tsip_header_Content_Length_create(0);
|
||||
}
|
||||
|
||||
int tsip_header_Content_Length_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Content_Length_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Content_Length_t *Content_Length = (const tsip_header_Content_Length_t *)header;
|
||||
|
@ -121,7 +121,7 @@ static tsk_object_t* tsip_header_Content_Length_ctor(tsk_object_t *self, va_list
|
|||
Content_Length->length = va_arg(*app, uint32_t);
|
||||
|
||||
TSIP_HEADER(Content_Length)->type = tsip_htype_Content_Length;
|
||||
TSIP_HEADER(Content_Length)->tostring = tsip_header_Content_Length_tostring;
|
||||
TSIP_HEADER(Content_Length)->serialize = tsip_header_Content_Length_serialize;
|
||||
}
|
||||
else{
|
||||
TSK_DEBUG_ERROR("Failed to create new Content_Length header.");
|
||||
|
|
|
@ -90,7 +90,7 @@ tsip_header_Content_Type_t* tsip_header_Content_Type_create_null()
|
|||
return tsip_header_Content_Type_create(tsk_null);
|
||||
}
|
||||
|
||||
int tsip_header_Content_Type_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Content_Type_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Content_Type_t *Content_Type = (const tsip_header_Content_Type_t *)header;
|
||||
|
@ -142,7 +142,7 @@ static tsk_object_t* tsip_header_Content_Type_ctor(tsk_object_t *self, va_list *
|
|||
tsip_header_Content_Type_t *Content_Type = self;
|
||||
if(Content_Type){
|
||||
TSIP_HEADER(Content_Type)->type = tsip_htype_Content_Type;
|
||||
TSIP_HEADER(Content_Type)->tostring = tsip_header_Content_Type_tostring;
|
||||
TSIP_HEADER(Content_Type)->serialize = tsip_header_Content_Type_serialize;
|
||||
|
||||
Content_Type->type = tsk_strdup( va_arg(*app, const char*) );
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ tsip_header_Date_t* tsip_header_Date_create_null()
|
|||
return tsip_header_Date_create(tsk_null, tsk_null, -1, -1, -1, -1, -1);
|
||||
}
|
||||
|
||||
int tsip_header_Date_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Date_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
/* Date: Wed, 28 Apr 2010 23:42:50 GMT */
|
||||
if(header){
|
||||
|
@ -159,7 +159,7 @@ static tsk_object_t* tsip_header_Date_ctor(tsk_object_t *self, va_list * app)
|
|||
const char* wkday;
|
||||
const char* month;
|
||||
TSIP_HEADER(Date)->type = tsip_htype_Date;
|
||||
TSIP_HEADER(Date)->tostring = tsip_header_Date_tostring;
|
||||
TSIP_HEADER(Date)->serialize = tsip_header_Date_serialize;
|
||||
Date->day = Date->time.h = Date->time.m = Date->time.s = -1;
|
||||
Date->year = -1;
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ tsip_header_Dummy_t* tsip_header_Dummy_create_null()
|
|||
return tsip_header_Dummy_create(tsk_null, tsk_null);
|
||||
}
|
||||
|
||||
int tsip_header_Dummy_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Dummy_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Dummy_t *Dummy = (const tsip_header_Dummy_t *)header;
|
||||
|
@ -129,7 +129,7 @@ static tsk_object_t* tsip_header_Dummy_ctor(tsk_object_t *self, va_list * app)
|
|||
tsip_header_Dummy_t *Dummy = self;
|
||||
if(Dummy){
|
||||
TSIP_HEADER(Dummy)->type = tsip_htype_Dummy;
|
||||
TSIP_HEADER(Dummy)->tostring = tsip_header_Dummy_tostring;
|
||||
TSIP_HEADER(Dummy)->serialize = tsip_header_Dummy_serialize;
|
||||
|
||||
Dummy->name = tsk_strdup(va_arg(*app, const char*));
|
||||
Dummy->value = tsk_strdup(va_arg(*app, const char*));
|
||||
|
|
|
@ -80,7 +80,7 @@ tsip_header_Event_t* tsip_header_Event_create(const char* package)
|
|||
return tsk_object_new(TSIP_HEADER_EVENT_VA_ARGS(package));
|
||||
}
|
||||
|
||||
int tsip_header_Event_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Event_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Event_t *Event = (const tsip_header_Event_t *)header;
|
||||
|
@ -130,7 +130,7 @@ static tsk_object_t* tsip_header_Event_ctor(tsk_object_t *self, va_list * app)
|
|||
tsip_header_Event_t *Event = self;
|
||||
if(Event){
|
||||
TSIP_HEADER(Event)->type = tsip_htype_Event;
|
||||
TSIP_HEADER(Event)->tostring = tsip_header_Event_tostring;
|
||||
TSIP_HEADER(Event)->serialize = tsip_header_Event_serialize;
|
||||
Event->package = tsk_strdup(va_arg(*app, const char*));
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -68,7 +68,7 @@ tsip_header_Expires_t* tsip_header_Expires_create(int64_t delta_seconds)
|
|||
return tsk_object_new(TSIP_HEADER_EXPIRES_VA_ARGS(delta_seconds));
|
||||
}
|
||||
|
||||
int tsip_header_Expires_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Expires_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Expires_t *Expires = (const tsip_header_Expires_t *)header;
|
||||
|
@ -118,7 +118,7 @@ static tsk_object_t* tsip_header_Expires_ctor(tsk_object_t *self, va_list * app)
|
|||
tsip_header_Expires_t *Expires = self;
|
||||
if(Expires){
|
||||
TSIP_HEADER(Expires)->type = tsip_htype_Expires;
|
||||
TSIP_HEADER(Expires)->tostring = tsip_header_Expires_tostring;
|
||||
TSIP_HEADER(Expires)->serialize = tsip_header_Expires_serialize;
|
||||
Expires->delta_seconds = va_arg(*app, int64_t);
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -94,7 +94,7 @@ tsip_header_From_t* tsip_header_From_create(const char* display_name, const tsip
|
|||
return tsk_object_new(TSIP_HEADER_FROM_VA_ARGS(display_name, uri, tag));
|
||||
}
|
||||
|
||||
int tsip_header_From_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_From_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
int ret = -1;
|
||||
if(header){
|
||||
|
@ -156,7 +156,7 @@ static tsk_object_t* tsip_header_From_ctor(tsk_object_t *self, va_list * app)
|
|||
From->tag = tsk_strdup(tag);
|
||||
|
||||
TSIP_HEADER(From)->type = tsip_htype_From;
|
||||
TSIP_HEADER(From)->tostring = tsip_header_From_tostring;
|
||||
TSIP_HEADER(From)->serialize = tsip_header_From_serialize;
|
||||
}
|
||||
else{
|
||||
TSK_DEBUG_ERROR("Failed to create new From header.");
|
||||
|
|
|
@ -69,7 +69,7 @@ tsip_header_Max_Forwards_t* tsip_header_Max_Forwards_create(int32_t max)
|
|||
return tsk_object_new(TSIP_HEADER_MAX_FORWARDS_VA_ARGS(max));
|
||||
}
|
||||
|
||||
int tsip_header_Max_Forwards_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Max_Forwards_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Max_Forwards_t *Max_Forwards = (const tsip_header_Max_Forwards_t *)header;
|
||||
|
@ -119,7 +119,7 @@ static tsk_object_t* tsip_header_Max_Forwards_ctor(tsk_object_t *self, va_list *
|
|||
tsip_header_Max_Forwards_t *Max_Forwards = self;
|
||||
if(Max_Forwards){
|
||||
TSIP_HEADER(Max_Forwards)->type = tsip_htype_Max_Forwards;
|
||||
TSIP_HEADER(Max_Forwards)->tostring = tsip_header_Max_Forwards_tostring;
|
||||
TSIP_HEADER(Max_Forwards)->serialize = tsip_header_Max_Forwards_serialize;
|
||||
Max_Forwards->value = va_arg(*app, int32_t);
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -73,7 +73,7 @@ tsip_header_Min_Expires_t* tsip_header_Min_Expires_create_null()
|
|||
return tsip_header_Min_Expires_create(TSIP_HEADER_MIN_EXPIRES_NONE);
|
||||
}
|
||||
|
||||
int tsip_header_Min_Expires_tostring(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
int tsip_header_Min_Expires_serialize(const tsip_header_t* header, tsk_buffer_t* output)
|
||||
{
|
||||
if(header){
|
||||
const tsip_header_Min_Expires_t *Min_Expires = (const tsip_header_Min_Expires_t *)header;
|
||||
|
@ -123,7 +123,7 @@ static tsk_object_t* tsip_header_Min_Expires_ctor(tsk_object_t *self, va_list *
|
|||
tsip_header_Min_Expires_t *Min_Expires = self;
|
||||
if(Min_Expires){
|
||||
TSIP_HEADER(Min_Expires)->type = tsip_htype_Min_Expires;
|
||||
TSIP_HEADER(Min_Expires)->tostring = tsip_header_Min_Expires_tostring;
|
||||
TSIP_HEADER(Min_Expires)->serialize = tsip_header_Min_Expires_serialize;
|
||||
Min_Expires->value = va_arg(*app, int32_t);
|
||||
}
|
||||
else{
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue