Update Wrappers.
This commit is contained in:
parent
aaf6b9962b
commit
7439f323a6
|
@ -82,6 +82,30 @@ bool SipStack::start()
|
|||
return (ret == 0);
|
||||
}
|
||||
|
||||
bool SipStack::setRealm(const char* realm_uri)
|
||||
{
|
||||
int ret = tsip_stack_set(this->handle,
|
||||
TSIP_STACK_SET_REALM(realm_uri),
|
||||
TSIP_STACK_SET_NULL());
|
||||
return (ret == 0);
|
||||
}
|
||||
|
||||
bool SipStack::setIMPI(const char* impi)
|
||||
{
|
||||
int ret = tsip_stack_set(this->handle,
|
||||
TSIP_STACK_SET_IMPI(impi),
|
||||
TSIP_STACK_SET_NULL());
|
||||
return (ret == 0);
|
||||
}
|
||||
|
||||
bool SipStack::setIMPU(const char* impu_uri)
|
||||
{
|
||||
int ret = tsip_stack_set(this->handle,
|
||||
TSIP_STACK_SET_IMPU(impu_uri),
|
||||
TSIP_STACK_SET_NULL());
|
||||
return (ret == 0);
|
||||
}
|
||||
|
||||
bool SipStack::setPassword(const char* password)
|
||||
{
|
||||
int ret = tsip_stack_set(this->handle,
|
||||
|
@ -130,6 +154,11 @@ bool SipStack::removeHeader(const char* name)
|
|||
return (ret == 0);
|
||||
}
|
||||
|
||||
bool SipStack::isValid()
|
||||
{
|
||||
return (this->handle != tsk_null);
|
||||
}
|
||||
|
||||
bool SipStack::stop()
|
||||
{
|
||||
int ret = tsip_stack_stop(this->handle);
|
||||
|
|
|
@ -35,7 +35,9 @@ public: /* ctor() and dtor() */
|
|||
|
||||
public: /* API functions */
|
||||
bool start();
|
||||
|
||||
bool setRealm(const char* realm_uri);
|
||||
bool setIMPI(const char* impi);
|
||||
bool setIMPU(const char* impu_uri);
|
||||
bool setPassword(const char* password);
|
||||
bool setProxyCSCF(const char* fqdn, unsigned port, const char* transport, const char* ipversion);
|
||||
bool setLocalIP(const char* ip);
|
||||
|
@ -43,6 +45,7 @@ public: /* API functions */
|
|||
bool addHeader(const char* name, const char* value);
|
||||
bool removeHeader(const char* name);
|
||||
|
||||
bool isValid();
|
||||
bool stop();
|
||||
|
||||
public: /* Public helper function */
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
%{
|
||||
#include "SipUri.h"
|
||||
#include "SipEvent.h"
|
||||
#include "SipSession.h"
|
||||
#include "RegistrationEvent.h"
|
||||
|
@ -15,6 +16,7 @@
|
|||
%feature("director") SipCallback;
|
||||
|
||||
%nodefaultctor;
|
||||
%include "SipUri.h"
|
||||
%include "SipEvent.h"
|
||||
%include "SipSession.h"
|
||||
%include "RegistrationEvent.h"
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* 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 "SipUri.h"
|
||||
|
||||
SipUri::SipUri(const char* uristring)
|
||||
{
|
||||
this->uri = tsip_uri_parse(uristring, tsk_strlen(uristring));
|
||||
}
|
||||
|
||||
SipUri::~SipUri()
|
||||
{
|
||||
TSK_OBJECT_SAFE_FREE(this->uri);
|
||||
}
|
||||
|
||||
bool SipUri::isValid(const char* uriString)
|
||||
{
|
||||
tsip_uri_t* _uri;
|
||||
bool ret = false;
|
||||
|
||||
if((_uri = tsip_uri_parse(uriString, tsk_strlen(uriString)))){
|
||||
ret = (_uri->type != uri_unknown)
|
||||
&& (!tsk_strnullORempty(_uri->host));
|
||||
TSK_OBJECT_SAFE_FREE(_uri);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool SipUri::isValid()
|
||||
{
|
||||
return (this->uri != tsk_null);
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* 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_SIPURI_H
|
||||
#define TINYWRAP_SIPURI_H
|
||||
|
||||
#include "tinysip.h"
|
||||
|
||||
class SipUri
|
||||
{
|
||||
public:
|
||||
SipUri(const char*);
|
||||
~SipUri();
|
||||
|
||||
public:
|
||||
static bool isValid(const char*);
|
||||
bool isValid();
|
||||
|
||||
private:
|
||||
tsip_uri_t* uri;
|
||||
};
|
||||
|
||||
#endif /* TINYWRAP_SIPURI_H */
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -27,13 +27,11 @@ public class RegistrationEvent : SipEvent {
|
|||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -27,13 +27,11 @@ public class RegistrationSession : SipSession {
|
|||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -29,13 +29,11 @@ public class SafeObject : IDisposable {
|
|||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -29,13 +29,11 @@ public class SipCallback : IDisposable {
|
|||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -29,13 +29,11 @@ public class SipEvent : IDisposable {
|
|||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -29,13 +29,11 @@ public class SipSession : IDisposable {
|
|||
|
||||
public virtual void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -27,13 +27,11 @@ public class SipStack : SafeObject {
|
|||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
|
@ -47,6 +45,21 @@ public class SipStack : SafeObject {
|
|||
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;
|
||||
|
@ -77,6 +90,11 @@ public class SipStack : SafeObject {
|
|||
return ret;
|
||||
}
|
||||
|
||||
public bool isValid() {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_isValid(swigCPtr);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public bool stop() {
|
||||
bool ret = tinyWRAPPINVOKE.SipStack_stop(swigCPtr);
|
||||
return ret;
|
||||
|
|
|
@ -0,0 +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;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -27,13 +27,11 @@ public class SubscriptionEvent : SipEvent {
|
|||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -27,13 +27,11 @@ public class SubscriptionSession : SipSession {
|
|||
|
||||
public override void Dispose() {
|
||||
lock(this) {
|
||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPPINVOKE.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
GC.SuppressFinalize(this);
|
||||
base.Dispose();
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -184,6 +184,18 @@ class tinyWRAPPINVOKE {
|
|||
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();
|
||||
|
||||
|
@ -322,6 +334,15 @@ class tinyWRAPPINVOKE {
|
|||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_start")]
|
||||
public static extern bool SipStack_start(HandleRef jarg1);
|
||||
|
||||
[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);
|
||||
|
||||
|
@ -340,6 +361,9 @@ class tinyWRAPPINVOKE {
|
|||
[DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_removeHeader")]
|
||||
public static extern bool SipStack_removeHeader(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);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* 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
|
||||
|
@ -202,7 +202,7 @@ static SWIG_CSharpException_t SWIG_csharp_exceptions[] = {
|
|||
static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = {
|
||||
{ SWIG_CSharpArgumentException, NULL },
|
||||
{ SWIG_CSharpArgumentNullException, NULL },
|
||||
{ SWIG_CSharpArgumentOutOfRangeException, NULL }
|
||||
{ SWIG_CSharpArgumentOutOfRangeException, NULL },
|
||||
};
|
||||
|
||||
static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) {
|
||||
|
@ -331,6 +331,7 @@ namespace Swig {
|
|||
|
||||
|
||||
|
||||
#include "SipUri.h"
|
||||
#include "SipEvent.h"
|
||||
#include "SipSession.h"
|
||||
#include "RegistrationEvent.h"
|
||||
|
@ -403,6 +404,50 @@ void SwigDirector_SipCallback::swig_init_callbacks() {
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipUri(char * jarg1) {
|
||||
void * jresult ;
|
||||
char *arg1 = (char *) 0 ;
|
||||
SipUri *result = 0 ;
|
||||
|
||||
arg1 = (char *)jarg1;
|
||||
result = (SipUri *)new SipUri((char const *)arg1);
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipUri(void * jarg1) {
|
||||
SipUri *arg1 = (SipUri *) 0 ;
|
||||
|
||||
arg1 = (SipUri *)jarg1;
|
||||
delete arg1;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipUri_isValid__SWIG_0(char * jarg1) {
|
||||
unsigned int jresult ;
|
||||
char *arg1 = (char *) 0 ;
|
||||
bool result;
|
||||
|
||||
arg1 = (char *)jarg1;
|
||||
result = (bool)SipUri::isValid((char const *)arg1);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipUri_isValid__SWIG_1(void * jarg1) {
|
||||
unsigned int jresult ;
|
||||
SipUri *arg1 = (SipUri *) 0 ;
|
||||
bool result;
|
||||
|
||||
arg1 = (SipUri *)jarg1;
|
||||
result = (bool)(arg1)->isValid();
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipEvent() {
|
||||
void * jresult ;
|
||||
SipEvent *result = 0 ;
|
||||
|
@ -944,6 +989,48 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_start(void * jarg1) {
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setRealm(void * jarg1, char * jarg2) {
|
||||
unsigned int jresult ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
bool result;
|
||||
|
||||
arg1 = (SipStack *)jarg1;
|
||||
arg2 = (char *)jarg2;
|
||||
result = (bool)(arg1)->setRealm((char const *)arg2);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIMPI(void * jarg1, char * jarg2) {
|
||||
unsigned int jresult ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
bool result;
|
||||
|
||||
arg1 = (SipStack *)jarg1;
|
||||
arg2 = (char *)jarg2;
|
||||
result = (bool)(arg1)->setIMPI((char const *)arg2);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIMPU(void * jarg1, char * jarg2) {
|
||||
unsigned int jresult ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
bool result;
|
||||
|
||||
arg1 = (SipStack *)jarg1;
|
||||
arg2 = (char *)jarg2;
|
||||
result = (bool)(arg1)->setIMPU((char const *)arg2);
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setPassword(void * jarg1, char * jarg2) {
|
||||
unsigned int jresult ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
|
@ -1036,6 +1123,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_removeHeader(void * jarg1, c
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_isValid(void * jarg1) {
|
||||
unsigned int jresult ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
bool result;
|
||||
|
||||
arg1 = (SipStack *)jarg1;
|
||||
result = (bool)(arg1)->isValid();
|
||||
jresult = result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_stop(void * jarg1) {
|
||||
unsigned int jresult ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -25,13 +25,11 @@ public class RegistrationEvent extends SipEvent {
|
|||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -25,13 +25,11 @@ public class RegistrationSession extends SipSession {
|
|||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_RegistrationSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -26,13 +26,11 @@ public class SafeObject {
|
|||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SafeObject(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SafeObject() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -26,13 +26,11 @@ public class SipCallback {
|
|||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipCallback(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
protected void swigDirectorDisconnect() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -26,13 +26,11 @@ public class SipEvent {
|
|||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipEvent() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -26,13 +26,11 @@ public class SipSession {
|
|||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public SipSession(SipStack Stack) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -25,13 +25,11 @@ public class SipStack extends SafeObject {
|
|||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SipStack(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
|
@ -43,6 +41,18 @@ public class SipStack extends SafeObject {
|
|||
return tinyWRAPJNI.SipStack_start(swigCPtr, this);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
@ -67,6 +77,10 @@ public class SipStack extends SafeObject {
|
|||
return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name);
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return tinyWRAPJNI.SipStack_isValid(swigCPtr, this);
|
||||
}
|
||||
|
||||
public boolean stop() {
|
||||
return tinyWRAPJNI.SipStack_stop(swigCPtr, this);
|
||||
}
|
||||
|
|
|
@ -0,0 +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);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -25,13 +25,11 @@ public class SubscriptionEvent extends SipEvent {
|
|||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -25,13 +25,11 @@ public class SubscriptionSession extends SipSession {
|
|||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if(swigCPtr != 0 && swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
tinyWRAPJNI.delete_SubscriptionSession(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
super.delete();
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ OBJS = tinyWRAP_wrap.o\
|
|||
../_common/SipEvent.o \
|
||||
../_common/SipSession.o \
|
||||
../_common/SipStack.o \
|
||||
../_common/SipUri.o \
|
||||
../_common/SubscriptionEvent.o \
|
||||
../_common/SubscriptionSession.o
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
@ -9,6 +9,10 @@
|
|||
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_);
|
||||
|
@ -56,12 +60,16 @@ class tinyWRAPJNI {
|
|||
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_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_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_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);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* 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
|
||||
|
@ -193,8 +193,7 @@ static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionC
|
|||
{ SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
|
||||
{ SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
|
||||
{ SWIG_JavaUnknownError, "java/lang/UnknownError" },
|
||||
{ (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
|
||||
};
|
||||
{ (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" } };
|
||||
const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
|
||||
|
||||
while (except_ptr->code != code && except_ptr->code)
|
||||
|
@ -335,7 +334,7 @@ namespace Swig {
|
|||
// the thread to exit upon shutdown. Only for jdk-1.4 and later.
|
||||
director_->swig_jvm_->AttachCurrentThreadAsDaemon((void **) &jenv_, NULL);
|
||||
#else
|
||||
director_->swig_jvm_->AttachCurrentThread(/*(void **)*/ &jenv_, NULL);
|
||||
director_->swig_jvm_->AttachCurrentThread((void **) &jenv_, NULL);
|
||||
#endif
|
||||
}
|
||||
~JNIEnvWrapper() {
|
||||
|
@ -407,6 +406,7 @@ namespace Swig {
|
|||
static jmethodID director_methids[2];
|
||||
}
|
||||
|
||||
#include "SipUri.h"
|
||||
#include "SipEvent.h"
|
||||
#include "SipSession.h"
|
||||
#include "RegistrationEvent.h"
|
||||
|
@ -525,6 +525,69 @@ void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipUri(JNIEnv *jenv, jclass jcls, jstring jarg1) {
|
||||
jlong jresult = 0 ;
|
||||
char *arg1 = (char *) 0 ;
|
||||
SipUri *result = 0 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
arg1 = 0;
|
||||
if (jarg1) {
|
||||
arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
|
||||
if (!arg1) return 0;
|
||||
}
|
||||
result = (SipUri *)new SipUri((char const *)arg1);
|
||||
*(SipUri **)&jresult = result;
|
||||
if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipUri(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
||||
SipUri *arg1 = (SipUri *) 0 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
arg1 = *(SipUri **)&jarg1;
|
||||
delete arg1;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1) {
|
||||
jboolean jresult = 0 ;
|
||||
char *arg1 = (char *) 0 ;
|
||||
bool result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
arg1 = 0;
|
||||
if (jarg1) {
|
||||
arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
|
||||
if (!arg1) return 0;
|
||||
}
|
||||
result = (bool)SipUri::isValid((char const *)arg1);
|
||||
jresult = (jboolean)result;
|
||||
if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jboolean jresult = 0 ;
|
||||
SipUri *arg1 = (SipUri *) 0 ;
|
||||
bool result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(SipUri **)&jarg1;
|
||||
result = (bool)(arg1)->isValid();
|
||||
jresult = (jboolean)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipEvent(JNIEnv *jenv, jclass jcls) {
|
||||
jlong jresult = 0 ;
|
||||
SipEvent *result = 0 ;
|
||||
|
@ -572,7 +635,7 @@ SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getP
|
|||
(void)jarg1_;
|
||||
arg1 = *(SipEvent **)&jarg1;
|
||||
result = (char *)((SipEvent const *)arg1)->getPhrase();
|
||||
if (result) jresult = jenv->NewStringUTF((const char *)result);
|
||||
if(result) jresult = jenv->NewStringUTF((const char *)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
@ -1137,7 +1200,7 @@ SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSu
|
|||
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) {
|
||||
SipCallback *obj = *((SipCallback **)&objarg);
|
||||
(void)jcls;
|
||||
SwigDirector_SipCallback *director = static_cast<SwigDirector_SipCallback *>(obj);
|
||||
SwigDirector_SipCallback *director = dynamic_cast<SwigDirector_SipCallback *>(obj);
|
||||
if (director) {
|
||||
director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE));
|
||||
}
|
||||
|
@ -1146,7 +1209,7 @@ SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1dire
|
|||
|
||||
SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) {
|
||||
SipCallback *obj = *((SipCallback **)&objarg);
|
||||
SwigDirector_SipCallback *director = static_cast<SwigDirector_SipCallback *>(obj);
|
||||
SwigDirector_SipCallback *director = dynamic_cast<SwigDirector_SipCallback *>(obj);
|
||||
(void)jcls;
|
||||
if (director) {
|
||||
director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false);
|
||||
|
@ -1267,6 +1330,72 @@ SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1sta
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setRealm(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
||||
jboolean jresult = 0 ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
bool result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(SipStack **)&jarg1;
|
||||
arg2 = 0;
|
||||
if (jarg2) {
|
||||
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
||||
if (!arg2) return 0;
|
||||
}
|
||||
result = (bool)(arg1)->setRealm((char const *)arg2);
|
||||
jresult = (jboolean)result;
|
||||
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
||||
jboolean jresult = 0 ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
bool result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(SipStack **)&jarg1;
|
||||
arg2 = 0;
|
||||
if (jarg2) {
|
||||
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
||||
if (!arg2) return 0;
|
||||
}
|
||||
result = (bool)(arg1)->setIMPI((char const *)arg2);
|
||||
jresult = (jboolean)result;
|
||||
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPU(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
||||
jboolean jresult = 0 ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
bool result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(SipStack **)&jarg1;
|
||||
arg2 = 0;
|
||||
if (jarg2) {
|
||||
arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
|
||||
if (!arg2) return 0;
|
||||
}
|
||||
result = (bool)(arg1)->setIMPU((char const *)arg2);
|
||||
jresult = (jboolean)result;
|
||||
if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setPassword(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
||||
jboolean jresult = 0 ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
|
@ -1417,6 +1546,21 @@ SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1rem
|
|||
}
|
||||
|
||||
|
||||
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jboolean jresult = 0 ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
bool result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(SipStack **)&jarg1;
|
||||
result = (bool)(arg1)->isValid();
|
||||
jresult = (jboolean)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jboolean jresult = 0 ;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* 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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* Version 1.3.39
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This file was automatically generated by SWIG (http://www.swig.org).
|
||||
# Version 1.3.40
|
||||
# Version 1.3.39
|
||||
#
|
||||
# Do not make changes to this file unless you know what you are doing--modify
|
||||
# the SWIG interface file instead.
|
||||
|
@ -50,6 +50,44 @@ sub this {
|
|||
package tinyWRAP;
|
||||
|
||||
|
||||
############# Class : tinyWRAP::SipUri ##############
|
||||
|
||||
package tinyWRAP::SipUri;
|
||||
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
|
||||
@ISA = qw( tinyWRAP );
|
||||
%OWNER = ();
|
||||
%ITERATORS = ();
|
||||
sub new {
|
||||
my $pkg = shift;
|
||||
my $self = tinyWRAPc::new_SipUri(@_);
|
||||
bless $self, $pkg if defined($self);
|
||||
}
|
||||
|
||||
sub DESTROY {
|
||||
return unless $_[0]->isa('HASH');
|
||||
my $self = tied(%{$_[0]});
|
||||
return unless defined $self;
|
||||
delete $ITERATORS{$self};
|
||||
if (exists $OWNER{$self}) {
|
||||
tinyWRAPc::delete_SipUri($self);
|
||||
delete $OWNER{$self};
|
||||
}
|
||||
}
|
||||
|
||||
*isValid = *tinyWRAPc::SipUri_isValid;
|
||||
sub DISOWN {
|
||||
my $self = shift;
|
||||
my $ptr = tied(%$self);
|
||||
delete $OWNER{$ptr};
|
||||
}
|
||||
|
||||
sub ACQUIRE {
|
||||
my $self = shift;
|
||||
my $ptr = tied(%$self);
|
||||
$OWNER{$ptr} = 1;
|
||||
}
|
||||
|
||||
|
||||
############# Class : tinyWRAP::SipEvent ##############
|
||||
|
||||
package tinyWRAP::SipEvent;
|
||||
|
@ -394,12 +432,16 @@ sub DESTROY {
|
|||
}
|
||||
|
||||
*start = *tinyWRAPc::SipStack_start;
|
||||
*setRealm = *tinyWRAPc::SipStack_setRealm;
|
||||
*setIMPI = *tinyWRAPc::SipStack_setIMPI;
|
||||
*setIMPU = *tinyWRAPc::SipStack_setIMPU;
|
||||
*setPassword = *tinyWRAPc::SipStack_setPassword;
|
||||
*setProxyCSCF = *tinyWRAPc::SipStack_setProxyCSCF;
|
||||
*setLocalIP = *tinyWRAPc::SipStack_setLocalIP;
|
||||
*setLocalPort = *tinyWRAPc::SipStack_setLocalPort;
|
||||
*addHeader = *tinyWRAPc::SipStack_addHeader;
|
||||
*removeHeader = *tinyWRAPc::SipStack_removeHeader;
|
||||
*isValid = *tinyWRAPc::SipStack_isValid;
|
||||
*stop = *tinyWRAPc::SipStack_stop;
|
||||
sub DISOWN {
|
||||
my $self = shift;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* 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
|
||||
|
@ -918,7 +918,6 @@ SWIG_Perl_ErrorType(int code) {
|
|||
|
||||
/* for raw pointers */
|
||||
#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
|
||||
#define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
|
||||
#define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
|
||||
|
||||
/* for raw packed data */
|
||||
|
@ -1135,14 +1134,10 @@ SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) {
|
|||
/* Function for getting a pointer value */
|
||||
|
||||
SWIGRUNTIME int
|
||||
SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) {
|
||||
SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
|
||||
swig_cast_info *tc;
|
||||
void *voidptr = (void *)0;
|
||||
SV *tsv = 0;
|
||||
|
||||
if (own)
|
||||
*own = 0;
|
||||
|
||||
/* If magical, apply more magic */
|
||||
if (SvGMAGICAL(sv))
|
||||
mg_get(sv);
|
||||
|
@ -1192,11 +1187,7 @@ SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_
|
|||
{
|
||||
int newmemory = 0;
|
||||
*ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
|
||||
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
||||
assert(own);
|
||||
if (own)
|
||||
*own = *own | SWIG_CAST_NEW_MEMORY;
|
||||
}
|
||||
assert(!newmemory); /* newmemory handling not yet implemented */
|
||||
}
|
||||
} else {
|
||||
*ptr = voidptr;
|
||||
|
@ -1226,14 +1217,9 @@ SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_
|
|||
return SWIG_OK;
|
||||
}
|
||||
|
||||
SWIGRUNTIME int
|
||||
SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) {
|
||||
return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0);
|
||||
}
|
||||
|
||||
SWIGRUNTIME void
|
||||
SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) {
|
||||
if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) {
|
||||
if (ptr && (flags & SWIG_SHADOW)) {
|
||||
SV *self;
|
||||
SV *obj=newSV(0);
|
||||
HV *hash=newHV();
|
||||
|
@ -1408,9 +1394,6 @@ SWIG_Perl_SetModule(swig_module_info *module) {
|
|||
#ifdef do_close
|
||||
#undef do_close
|
||||
#endif
|
||||
#ifdef do_exec
|
||||
#undef do_exec
|
||||
#endif
|
||||
#ifdef scalar
|
||||
#undef scalar
|
||||
#endif
|
||||
|
@ -1519,14 +1502,15 @@ SWIG_Perl_SetModule(swig_module_info *module) {
|
|||
#define SWIGTYPE_p_SipEvent swig_types[4]
|
||||
#define SWIGTYPE_p_SipSession swig_types[5]
|
||||
#define SWIGTYPE_p_SipStack swig_types[6]
|
||||
#define SWIGTYPE_p_SubscriptionEvent swig_types[7]
|
||||
#define SWIGTYPE_p_SubscriptionSession swig_types[8]
|
||||
#define SWIGTYPE_p_char swig_types[9]
|
||||
#define SWIGTYPE_p_tsip_event_type_e swig_types[10]
|
||||
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[11]
|
||||
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[12]
|
||||
static swig_type_info *swig_types[14];
|
||||
static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_SipUri swig_types[7]
|
||||
#define SWIGTYPE_p_SubscriptionEvent swig_types[8]
|
||||
#define SWIGTYPE_p_SubscriptionSession swig_types[9]
|
||||
#define SWIGTYPE_p_char swig_types[10]
|
||||
#define SWIGTYPE_p_tsip_event_type_e swig_types[11]
|
||||
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[12]
|
||||
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[13]
|
||||
static swig_type_info *swig_types[15];
|
||||
static swig_module_info swig_module = {swig_types, 14, 0, 0, 0, 0};
|
||||
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
||||
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
||||
|
||||
|
@ -1537,7 +1521,7 @@ static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0};
|
|||
#define SWIG_name "tinyWRAPc::boot_tinyWRAP"
|
||||
#define SWIG_prefix "tinyWRAPc::"
|
||||
|
||||
#define SWIGVERSION 0x010340
|
||||
#define SWIGVERSION 0x010339
|
||||
#define SWIG_VERSION SWIGVERSION
|
||||
|
||||
|
||||
|
@ -1562,6 +1546,7 @@ SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
|
|||
#endif
|
||||
|
||||
|
||||
#include "SipUri.h"
|
||||
#include "SipEvent.h"
|
||||
#include "SipSession.h"
|
||||
#include "RegistrationEvent.h"
|
||||
|
@ -1573,42 +1558,6 @@ SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *);
|
|||
#include "SipStack.h"
|
||||
|
||||
|
||||
SWIGINTERNINLINE SV *
|
||||
SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
|
||||
{
|
||||
SV *obj = sv_newmortal();
|
||||
sv_setiv(obj, (IV) value);
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERNINLINE SV *
|
||||
SWIG_From_short SWIG_PERL_DECL_ARGS_1(short value)
|
||||
{
|
||||
return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERNINLINE SV *
|
||||
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
||||
{
|
||||
SV *obj = sv_newmortal();
|
||||
if (carray) {
|
||||
sv_setpvn(obj, carray, size);
|
||||
} else {
|
||||
sv_setsv(obj, &PL_sv_undef);
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERNINLINE SV *
|
||||
SWIG_FromCharPtr(const char *cptr)
|
||||
{
|
||||
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN swig_type_info*
|
||||
SWIG_pchar_descriptor(void)
|
||||
{
|
||||
|
@ -1678,6 +1627,42 @@ SWIG_From_bool SWIG_PERL_DECL_ARGS_1(bool value)
|
|||
}
|
||||
|
||||
|
||||
SWIGINTERNINLINE SV *
|
||||
SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value)
|
||||
{
|
||||
SV *obj = sv_newmortal();
|
||||
sv_setiv(obj, (IV) value);
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERNINLINE SV *
|
||||
SWIG_From_short SWIG_PERL_DECL_ARGS_1(short value)
|
||||
{
|
||||
return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value);
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERNINLINE SV *
|
||||
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
||||
{
|
||||
SV *obj = sv_newmortal();
|
||||
if (carray) {
|
||||
sv_setpvn(obj, carray, size);
|
||||
} else {
|
||||
sv_setsv(obj, &PL_sv_undef);
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERNINLINE SV *
|
||||
SWIG_FromCharPtr(const char *cptr)
|
||||
{
|
||||
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
|
||||
}
|
||||
|
||||
|
||||
#include <limits.h>
|
||||
#if !defined(SWIG_NO_LLONG_MAX)
|
||||
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
||||
|
@ -1849,6 +1834,180 @@ SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SW
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
XS(_wrap_new_SipUri) {
|
||||
{
|
||||
char *arg1 = (char *) 0 ;
|
||||
int res1 ;
|
||||
char *buf1 = 0 ;
|
||||
int alloc1 = 0 ;
|
||||
int argvi = 0;
|
||||
SipUri *result = 0 ;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 1) || (items > 1)) {
|
||||
SWIG_croak("Usage: new_SipUri(char const *);");
|
||||
}
|
||||
res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< char * >(buf1);
|
||||
result = (SipUri *)new SipUri((char const *)arg1);
|
||||
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_delete_SipUri) {
|
||||
{
|
||||
SipUri *arg1 = (SipUri *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int argvi = 0;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 1) || (items > 1)) {
|
||||
SWIG_croak("Usage: delete_SipUri(self);");
|
||||
}
|
||||
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, SWIG_POINTER_DISOWN | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipUri" "', argument " "1"" of type '" "SipUri *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipUri * >(argp1);
|
||||
delete arg1;
|
||||
ST(argvi) = sv_newmortal();
|
||||
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_SipUri_isValid__SWIG_0) {
|
||||
{
|
||||
char *arg1 = (char *) 0 ;
|
||||
int res1 ;
|
||||
char *buf1 = 0 ;
|
||||
int alloc1 = 0 ;
|
||||
int argvi = 0;
|
||||
bool result;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 1) || (items > 1)) {
|
||||
SWIG_croak("Usage: SipUri_isValid(char const *);");
|
||||
}
|
||||
res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1);
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "char const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< char * >(buf1);
|
||||
result = (bool)SipUri::isValid((char const *)arg1);
|
||||
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_SipUri_isValid__SWIG_1) {
|
||||
{
|
||||
SipUri *arg1 = (SipUri *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int argvi = 0;
|
||||
bool result;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 1) || (items > 1)) {
|
||||
SWIG_croak("Usage: SipUri_isValid(self);");
|
||||
}
|
||||
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "SipUri *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipUri * >(argp1);
|
||||
result = (bool)(arg1)->isValid();
|
||||
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
|
||||
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_SipUri_isValid) {
|
||||
dXSARGS;
|
||||
|
||||
{
|
||||
unsigned long _index = 0;
|
||||
SWIG_TypeRank _rank = 0;
|
||||
if (items == 1) {
|
||||
SWIG_TypeRank _ranki = 0;
|
||||
SWIG_TypeRank _rankm = 0;
|
||||
SWIG_TypeRank _pi = 1;
|
||||
int _v = 0;
|
||||
{
|
||||
void *vptr = 0;
|
||||
int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipUri, 0);
|
||||
_v = SWIG_CheckState(res);
|
||||
}
|
||||
if (!_v) goto check_1;
|
||||
_ranki += _v*_pi;
|
||||
_rankm += _pi;
|
||||
_pi *= SWIG_MAXCASTRANK;
|
||||
if (!_index || (_ranki < _rank)) {
|
||||
_rank = _ranki; _index = 1;
|
||||
if (_rank == _rankm) goto dispatch;
|
||||
}
|
||||
}
|
||||
check_1:
|
||||
|
||||
if (items == 1) {
|
||||
SWIG_TypeRank _ranki = 0;
|
||||
SWIG_TypeRank _rankm = 0;
|
||||
SWIG_TypeRank _pi = 1;
|
||||
int _v = 0;
|
||||
{
|
||||
int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0);
|
||||
_v = SWIG_CheckState(res);
|
||||
}
|
||||
if (!_v) goto check_2;
|
||||
_ranki += _v*_pi;
|
||||
_rankm += _pi;
|
||||
_pi *= SWIG_MAXCASTRANK;
|
||||
if (!_index || (_ranki < _rank)) {
|
||||
_rank = _ranki; _index = 2;
|
||||
if (_rank == _rankm) goto dispatch;
|
||||
}
|
||||
}
|
||||
check_2:
|
||||
|
||||
dispatch:
|
||||
switch(_index) {
|
||||
case 1:
|
||||
++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipUri_isValid__SWIG_1); return;
|
||||
case 2:
|
||||
++PL_markstack_ptr; SWIG_CALLXS(_wrap_SipUri_isValid__SWIG_0); return;
|
||||
}
|
||||
}
|
||||
|
||||
croak("No matching function for overloaded 'SipUri_isValid'");
|
||||
XSRETURN(0);
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_new_SipEvent) {
|
||||
{
|
||||
int argvi = 0;
|
||||
|
@ -3263,6 +3422,123 @@ XS(_wrap_SipStack_start) {
|
|||
}
|
||||
|
||||
|
||||
XS(_wrap_SipStack_setRealm) {
|
||||
{
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int res2 ;
|
||||
char *buf2 = 0 ;
|
||||
int alloc2 = 0 ;
|
||||
int argvi = 0;
|
||||
bool result;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 2) || (items > 2)) {
|
||||
SWIG_croak("Usage: SipStack_setRealm(self,realm_uri);");
|
||||
}
|
||||
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setRealm" "', argument " "1"" of type '" "SipStack *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipStack * >(argp1);
|
||||
res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setRealm" "', argument " "2"" of type '" "char const *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< char * >(buf2);
|
||||
result = (bool)(arg1)->setRealm((char const *)arg2);
|
||||
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
|
||||
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_SipStack_setIMPI) {
|
||||
{
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int res2 ;
|
||||
char *buf2 = 0 ;
|
||||
int alloc2 = 0 ;
|
||||
int argvi = 0;
|
||||
bool result;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 2) || (items > 2)) {
|
||||
SWIG_croak("Usage: SipStack_setIMPI(self,impi);");
|
||||
}
|
||||
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPI" "', argument " "1"" of type '" "SipStack *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipStack * >(argp1);
|
||||
res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPI" "', argument " "2"" of type '" "char const *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< char * >(buf2);
|
||||
result = (bool)(arg1)->setIMPI((char const *)arg2);
|
||||
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
|
||||
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_SipStack_setIMPU) {
|
||||
{
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int res2 ;
|
||||
char *buf2 = 0 ;
|
||||
int alloc2 = 0 ;
|
||||
int argvi = 0;
|
||||
bool result;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 2) || (items > 2)) {
|
||||
SWIG_croak("Usage: SipStack_setIMPU(self,impu_uri);");
|
||||
}
|
||||
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPU" "', argument " "1"" of type '" "SipStack *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipStack * >(argp1);
|
||||
res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2);
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPU" "', argument " "2"" of type '" "char const *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< char * >(buf2);
|
||||
result = (bool)(arg1)->setIMPU((char const *)arg2);
|
||||
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
|
||||
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_SipStack_setPassword) {
|
||||
{
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
|
@ -3539,6 +3815,34 @@ XS(_wrap_SipStack_removeHeader) {
|
|||
}
|
||||
|
||||
|
||||
XS(_wrap_SipStack_isValid) {
|
||||
{
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int argvi = 0;
|
||||
bool result;
|
||||
dXSARGS;
|
||||
|
||||
if ((items < 1) || (items > 1)) {
|
||||
SWIG_croak("Usage: SipStack_isValid(self);");
|
||||
}
|
||||
res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_isValid" "', argument " "1"" of type '" "SipStack *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipStack * >(argp1);
|
||||
result = (bool)(arg1)->isValid();
|
||||
ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ;
|
||||
|
||||
XSRETURN(argvi);
|
||||
fail:
|
||||
|
||||
SWIG_croak_null();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
XS(_wrap_SipStack_stop) {
|
||||
{
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
|
@ -3570,21 +3874,21 @@ XS(_wrap_SipStack_stop) {
|
|||
|
||||
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
||||
|
||||
static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipEvent *) ((RegistrationEvent *) x));
|
||||
}
|
||||
static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipEvent *) ((SubscriptionEvent *) x));
|
||||
}
|
||||
static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SafeObject *) ((SipStack *) x));
|
||||
}
|
||||
static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipSession *) ((RegistrationSession *) x));
|
||||
}
|
||||
static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipSession *) ((SubscriptionSession *) x));
|
||||
}
|
||||
static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SafeObject *) ((SipStack *) x));
|
||||
}
|
||||
static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipEvent *) ((RegistrationEvent *) x));
|
||||
}
|
||||
static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipEvent *) ((SubscriptionEvent *) x));
|
||||
}
|
||||
static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)"tinyWRAP::RegistrationEvent", 0};
|
||||
static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)"tinyWRAP::RegistrationSession", 0};
|
||||
static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)"tinyWRAP::SafeObject", 0};
|
||||
|
@ -3592,6 +3896,7 @@ static swig_type_info _swigt__p_SipCallback = {"_p_SipCallback", "SipCallback *"
|
|||
static swig_type_info _swigt__p_SipEvent = {"_p_SipEvent", "SipEvent *", 0, 0, (void*)"tinyWRAP::SipEvent", 0};
|
||||
static swig_type_info _swigt__p_SipSession = {"_p_SipSession", "SipSession *", 0, 0, (void*)"tinyWRAP::SipSession", 0};
|
||||
static swig_type_info _swigt__p_SipStack = {"_p_SipStack", "SipStack *", 0, 0, (void*)"tinyWRAP::SipStack", 0};
|
||||
static swig_type_info _swigt__p_SipUri = {"_p_SipUri", "SipUri *", 0, 0, (void*)"tinyWRAP::SipUri", 0};
|
||||
static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "SubscriptionEvent *", 0, 0, (void*)"tinyWRAP::SubscriptionEvent", 0};
|
||||
static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)"tinyWRAP::SubscriptionSession", 0};
|
||||
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
||||
|
@ -3607,6 +3912,7 @@ static swig_type_info *swig_type_initial[] = {
|
|||
&_swigt__p_SipEvent,
|
||||
&_swigt__p_SipSession,
|
||||
&_swigt__p_SipStack,
|
||||
&_swigt__p_SipUri,
|
||||
&_swigt__p_SubscriptionEvent,
|
||||
&_swigt__p_SubscriptionSession,
|
||||
&_swigt__p_char,
|
||||
|
@ -3622,6 +3928,7 @@ static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0
|
|||
static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
||||
|
@ -3637,6 +3944,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|||
_swigc__p_SipEvent,
|
||||
_swigc__p_SipSession,
|
||||
_swigc__p_SipStack,
|
||||
_swigc__p_SipUri,
|
||||
_swigc__p_SubscriptionEvent,
|
||||
_swigc__p_SubscriptionSession,
|
||||
_swigc__p_char,
|
||||
|
@ -3658,6 +3966,9 @@ static swig_variable_info swig_variables[] = {
|
|||
{0,0,0,0}
|
||||
};
|
||||
static swig_command_info swig_commands[] = {
|
||||
{"tinyWRAPc::new_SipUri", _wrap_new_SipUri},
|
||||
{"tinyWRAPc::delete_SipUri", _wrap_delete_SipUri},
|
||||
{"tinyWRAPc::SipUri_isValid", _wrap_SipUri_isValid},
|
||||
{"tinyWRAPc::new_SipEvent", _wrap_new_SipEvent},
|
||||
{"tinyWRAPc::delete_SipEvent", _wrap_delete_SipEvent},
|
||||
{"tinyWRAPc::SipEvent_getCode", _wrap_SipEvent_getCode},
|
||||
|
@ -3700,12 +4011,16 @@ static swig_command_info swig_commands[] = {
|
|||
{"tinyWRAPc::new_SipStack", _wrap_new_SipStack},
|
||||
{"tinyWRAPc::delete_SipStack", _wrap_delete_SipStack},
|
||||
{"tinyWRAPc::SipStack_start", _wrap_SipStack_start},
|
||||
{"tinyWRAPc::SipStack_setRealm", _wrap_SipStack_setRealm},
|
||||
{"tinyWRAPc::SipStack_setIMPI", _wrap_SipStack_setIMPI},
|
||||
{"tinyWRAPc::SipStack_setIMPU", _wrap_SipStack_setIMPU},
|
||||
{"tinyWRAPc::SipStack_setPassword", _wrap_SipStack_setPassword},
|
||||
{"tinyWRAPc::SipStack_setProxyCSCF", _wrap_SipStack_setProxyCSCF},
|
||||
{"tinyWRAPc::SipStack_setLocalIP", _wrap_SipStack_setLocalIP},
|
||||
{"tinyWRAPc::SipStack_setLocalPort", _wrap_SipStack_setLocalPort},
|
||||
{"tinyWRAPc::SipStack_addHeader", _wrap_SipStack_addHeader},
|
||||
{"tinyWRAPc::SipStack_removeHeader", _wrap_SipStack_removeHeader},
|
||||
{"tinyWRAPc::SipStack_isValid", _wrap_SipStack_isValid},
|
||||
{"tinyWRAPc::SipStack_stop", _wrap_SipStack_stop},
|
||||
{0,0}
|
||||
};
|
||||
|
@ -4001,6 +4316,7 @@ XS(SWIG_init) {
|
|||
SvREADONLY_on(sv);
|
||||
}
|
||||
|
||||
SWIG_TypeClientData(SWIGTYPE_p_SipUri, (void*) "tinyWRAP::SipUri");
|
||||
SWIG_TypeClientData(SWIGTYPE_p_SipEvent, (void*) "tinyWRAP::SipEvent");
|
||||
SWIG_TypeClientData(SWIGTYPE_p_SipSession, (void*) "tinyWRAP::SipSession");
|
||||
SWIG_TypeClientData(SWIGTYPE_p_RegistrationEvent, (void*) "tinyWRAP::RegistrationEvent");
|
||||
|
@ -4010,137 +4326,137 @@ XS(SWIG_init) {
|
|||
SWIG_TypeClientData(SWIGTYPE_p_SipCallback, (void*) "tinyWRAP::SipCallback");
|
||||
SWIG_TypeClientData(SWIGTYPE_p_SafeObject, (void*) "tinyWRAP::SafeObject");
|
||||
SWIG_TypeClientData(SWIGTYPE_p_SipStack, (void*) "tinyWRAP::SipStack");
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_invite", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_invite)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_message", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_message)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_options", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_options)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_publish", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_publish)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_register", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_register)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_subscribe", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_subscribe)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_event_dialog", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_dialog)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_register", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_register)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_register", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_register)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_register", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_register)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_register", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_register)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unregister", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unregister)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unregister", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unregister)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unregister", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unregister)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unregister", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unregister)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_subscribe", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_subscribe)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_subscribe", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_subscribe)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_subscribe", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_subscribe)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_subscribe", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_subscribe)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unsubscribe", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unsubscribe)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_unsubscribe", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_unsubscribe)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_unsubscribe", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_unsubscribe)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unsubscribe", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unsubscribe)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_i_notify", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_notify)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ai_notify", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ai_notify)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_o_notify", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_notify)));
|
||||
SvREADONLY_on(sv);
|
||||
} while(0) /*@SWIG@*/;
|
||||
/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
/*@SWIG:C:/msys/local/share/swig/1.3.39\\perl5\\perltypemaps.swg,65,%set_constant@*/ do {
|
||||
SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_notify", TRUE | 0x2 | GV_ADDMULTI);
|
||||
sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_notify)));
|
||||
SvREADONLY_on(sv);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This file was automatically generated by SWIG (http://www.swig.org).
|
||||
# Version 1.3.40
|
||||
# Version 1.3.39
|
||||
#
|
||||
# Do not make changes to this file unless you know what you are doing--modify
|
||||
# the SWIG interface file instead.
|
||||
|
@ -10,18 +10,12 @@ if version_info >= (2,6,0):
|
|||
def swig_import_helper():
|
||||
from os.path import dirname
|
||||
import imp
|
||||
fp = None
|
||||
try:
|
||||
fp, pathname, description = imp.find_module('_tinyWRAP', [dirname(__file__)])
|
||||
except ImportError:
|
||||
import _tinyWRAP
|
||||
return _tinyWRAP
|
||||
if fp is not None:
|
||||
try:
|
||||
_mod = imp.load_module('_tinyWRAP', fp, pathname, description)
|
||||
finally:
|
||||
fp.close()
|
||||
return _mod
|
||||
_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:
|
||||
|
@ -73,6 +67,22 @@ 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)
|
||||
|
@ -247,12 +257,16 @@ class SipStack(SafeObject):
|
|||
__swig_destroy__ = _tinyWRAP.delete_SipStack
|
||||
__del__ = lambda self : None;
|
||||
def start(self): return _tinyWRAP.SipStack_start(self)
|
||||
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 addHeader(self, *args): return _tinyWRAP.SipStack_addHeader(self, *args)
|
||||
def removeHeader(self, *args): return _tinyWRAP.SipStack_removeHeader(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)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* 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
|
||||
|
@ -750,7 +750,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|||
|
||||
|
||||
|
||||
/* Compatibility macros for Python 3 */
|
||||
/* Compatibility marcos for Python 3 */
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
|
||||
#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
|
||||
|
@ -773,35 +773,17 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|||
# define SWIG_Python_str_FromFormat PyString_FromFormat
|
||||
#endif
|
||||
|
||||
|
||||
/* Warning: This function will allocate a new string in Python 3,
|
||||
* so please call SWIG_Python_str_DelForPy3(x) to free the space.
|
||||
*/
|
||||
SWIGINTERN char*
|
||||
SWIG_Python_str_AsChar(PyObject *str)
|
||||
{
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
char *cstr;
|
||||
char *newstr;
|
||||
Py_ssize_t len;
|
||||
str = PyUnicode_AsUTF8String(str);
|
||||
PyBytes_AsStringAndSize(str, &cstr, &len);
|
||||
newstr = (char *) malloc(len+1);
|
||||
memcpy(newstr, cstr, len+1);
|
||||
Py_XDECREF(str);
|
||||
return newstr;
|
||||
return PyBytes_AsString(str);
|
||||
#else
|
||||
return PyString_AsString(str);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
|
||||
#else
|
||||
# define SWIG_Python_str_DelForPy3(x)
|
||||
#endif
|
||||
|
||||
|
||||
SWIGINTERN PyObject*
|
||||
SWIG_Python_str_FromChar(const char *c)
|
||||
{
|
||||
|
@ -956,13 +938,11 @@ SWIG_Python_AddErrorMsg(const char* mesg)
|
|||
|
||||
if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
|
||||
if (value) {
|
||||
char *tmp;
|
||||
PyObject *old_str = PyObject_Str(value);
|
||||
PyErr_Clear();
|
||||
Py_XINCREF(type);
|
||||
|
||||
PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
|
||||
SWIG_Python_str_DelForPy3(tmp);
|
||||
PyErr_Format(type, "%s %s", SWIG_Python_str_AsChar(old_str), mesg);
|
||||
Py_DECREF(old_str);
|
||||
Py_DECREF(value);
|
||||
} else {
|
||||
|
@ -1473,7 +1453,9 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args)
|
|||
#endif
|
||||
{
|
||||
const char *name = SWIG_TypePrettyName(v->ty);
|
||||
PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, v);
|
||||
PyObject *hex = SwigPyObject_hex(v);
|
||||
PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, hex);
|
||||
Py_DECREF(hex);
|
||||
if (v->next) {
|
||||
#ifdef METH_NOARGS
|
||||
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
|
||||
|
@ -1495,16 +1477,13 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args)
|
|||
SWIGRUNTIME int
|
||||
SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
|
||||
{
|
||||
char *str;
|
||||
#ifdef METH_NOARGS
|
||||
PyObject *repr = SwigPyObject_repr(v);
|
||||
#else
|
||||
PyObject *repr = SwigPyObject_repr(v, NULL);
|
||||
#endif
|
||||
if (repr) {
|
||||
str = SWIG_Python_str_AsChar(repr);
|
||||
fputs(str, fp);
|
||||
SWIG_Python_str_DelForPy3(str);
|
||||
fputs(SWIG_Python_str_AsChar(repr), fp);
|
||||
Py_DECREF(repr);
|
||||
return 0;
|
||||
} else {
|
||||
|
@ -1528,7 +1507,7 @@ SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
|
|||
return (i < j) ? -1 : ((i > j) ? 1 : 0);
|
||||
}
|
||||
|
||||
/* Added for Python 3.x, would it also be useful for Python 2.x? */
|
||||
/* Added for Python 3.x, whould it also useful for Python 2.x? */
|
||||
SWIGRUNTIME PyObject*
|
||||
SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
|
||||
{
|
||||
|
@ -1576,7 +1555,7 @@ SwigPyObject_dealloc(PyObject *v)
|
|||
/* destroy is always a VARARGS method */
|
||||
PyObject *res;
|
||||
if (data->delargs) {
|
||||
/* we need to create a temporary object to carry the destroy operation */
|
||||
/* we need to create a temporal object to carry the destroy operation */
|
||||
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
|
||||
res = SWIG_Python_CallFunctor(destroy, tmp);
|
||||
Py_DECREF(tmp);
|
||||
|
@ -1751,11 +1730,7 @@ _PySwigObject_type(void) {
|
|||
0, /*nb_coerce*/
|
||||
#endif
|
||||
(unaryfunc)SwigPyObject_long, /*nb_int*/
|
||||
#if PY_VERSION_HEX < 0x03000000
|
||||
(unaryfunc)SwigPyObject_long, /*nb_long*/
|
||||
#else
|
||||
0, /*nb_reserved*/
|
||||
#endif
|
||||
(unaryfunc)0, /*nb_float*/
|
||||
#if PY_VERSION_HEX < 0x03000000
|
||||
(unaryfunc)SwigPyObject_oct, /*nb_oct*/
|
||||
|
@ -1777,7 +1752,7 @@ _PySwigObject_type(void) {
|
|||
if (!type_init) {
|
||||
const PyTypeObject tmp
|
||||
= {
|
||||
/* PyObject header changed in Python 3 */
|
||||
/* PyOjbect header changed in Python 3 */
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
||||
#else
|
||||
|
@ -1795,11 +1770,7 @@ _PySwigObject_type(void) {
|
|||
(getattrfunc)0, /* tp_getattr */
|
||||
#endif
|
||||
(setattrfunc)0, /* tp_setattr */
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
|
||||
#else
|
||||
(cmpfunc)SwigPyObject_compare, /* tp_compare */
|
||||
#endif
|
||||
(cmpfunc)SwigPyObject_compare, /* tp_compare */
|
||||
(reprfunc)SwigPyObject_repr, /* tp_repr */
|
||||
&SwigPyObject_as_number, /* tp_as_number */
|
||||
0, /* tp_as_sequence */
|
||||
|
@ -1846,7 +1817,7 @@ _PySwigObject_type(void) {
|
|||
#endif
|
||||
};
|
||||
swigpyobject_type = tmp;
|
||||
/* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
|
||||
/* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */
|
||||
#if PY_VERSION_HEX < 0x03000000
|
||||
swigpyobject_type.ob_type = &PyType_Type;
|
||||
#endif
|
||||
|
@ -1970,18 +1941,14 @@ _PySwigPacked_type(void) {
|
|||
(printfunc)SwigPyPacked_print, /* tp_print */
|
||||
(getattrfunc)0, /* tp_getattr */
|
||||
(setattrfunc)0, /* tp_setattr */
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
0, /* tp_reserved in 3.0.1 */
|
||||
#else
|
||||
(cmpfunc)SwigPyPacked_compare, /* tp_compare */
|
||||
#endif
|
||||
(reprfunc)SwigPyPacked_repr, /* tp_repr */
|
||||
0, /* tp_as_number */
|
||||
(cmpfunc)SwigPyPacked_compare, /* tp_compare */
|
||||
(reprfunc)SwigPyPacked_repr, /* tp_repr */
|
||||
0, /* tp_as_number */
|
||||
0, /* tp_as_sequence */
|
||||
0, /* tp_as_mapping */
|
||||
(hashfunc)0, /* tp_hash */
|
||||
(ternaryfunc)0, /* tp_call */
|
||||
(reprfunc)SwigPyPacked_str, /* tp_str */
|
||||
0, /* tp_as_mapping */
|
||||
(hashfunc)0, /* tp_hash */
|
||||
(ternaryfunc)0, /* tp_call */
|
||||
(reprfunc)SwigPyPacked_str, /* tp_str */
|
||||
PyObject_GenericGetAttr, /* tp_getattro */
|
||||
0, /* tp_setattro */
|
||||
0, /* tp_as_buffer */
|
||||
|
@ -2253,10 +2220,10 @@ SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
|
|||
/* here we get the method pointer for callbacks */
|
||||
const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
|
||||
const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
|
||||
if (desc)
|
||||
if (desc) {
|
||||
desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
|
||||
if (!desc)
|
||||
return SWIG_ERROR;
|
||||
if (!desc) return SWIG_ERROR;
|
||||
}
|
||||
if (ty) {
|
||||
swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
|
||||
if (tc) {
|
||||
|
@ -2294,7 +2261,7 @@ SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *t
|
|||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
Create a new instance object, without calling __init__, and set the
|
||||
Create a new instance object, whitout calling __init__, and set the
|
||||
'this' attribute.
|
||||
*/
|
||||
|
||||
|
@ -2325,6 +2292,7 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
|
|||
} else {
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
|
||||
Py_INCREF(data->newargs);
|
||||
PyObject_SetAttr(inst, SWIG_This(), swig_this);
|
||||
Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
|
||||
#else
|
||||
|
@ -2565,23 +2533,21 @@ SWIG_Python_TypeQuery(const char *type)
|
|||
|
||||
SWIGRUNTIME int
|
||||
SWIG_Python_AddErrMesg(const char* mesg, int infront)
|
||||
{
|
||||
{
|
||||
if (PyErr_Occurred()) {
|
||||
PyObject *type = 0;
|
||||
PyObject *value = 0;
|
||||
PyObject *traceback = 0;
|
||||
PyErr_Fetch(&type, &value, &traceback);
|
||||
if (value) {
|
||||
char *tmp;
|
||||
PyObject *old_str = PyObject_Str(value);
|
||||
Py_XINCREF(type);
|
||||
PyErr_Clear();
|
||||
if (infront) {
|
||||
PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
|
||||
PyErr_Format(type, "%s %s", mesg, SWIG_Python_str_AsChar(old_str));
|
||||
} else {
|
||||
PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
|
||||
PyErr_Format(type, "%s %s", SWIG_Python_str_AsChar(old_str), mesg);
|
||||
}
|
||||
SWIG_Python_str_DelForPy3(tmp);
|
||||
Py_DECREF(old_str);
|
||||
}
|
||||
return 1;
|
||||
|
@ -2633,7 +2599,6 @@ SWIG_Python_TypeError(const char *type, PyObject *obj)
|
|||
if (cstr) {
|
||||
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
|
||||
type, otype, cstr);
|
||||
SWIG_Python_str_DelForPy3(cstr);
|
||||
} else {
|
||||
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
|
||||
type, otype);
|
||||
|
@ -2655,12 +2620,10 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
|
|||
void *result;
|
||||
if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
|
||||
PyErr_Clear();
|
||||
#if SWIG_POINTER_EXCEPTION
|
||||
if (flags) {
|
||||
if (flags & SWIG_POINTER_EXCEPTION) {
|
||||
SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
|
||||
SWIG_Python_ArgFail(argnum);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@ -2729,7 +2692,7 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
|
|||
|
||||
/*
|
||||
Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
|
||||
'Swig' namespace. This could be useful for multi-modules projects.
|
||||
'Swig' namespace. This could be usefull for multi-modules projects.
|
||||
*/
|
||||
#ifdef SWIG_DIRECTOR_STATIC
|
||||
/* Force anonymous (static) namespace */
|
||||
|
@ -3165,14 +3128,15 @@ namespace Swig {
|
|||
#define SWIGTYPE_p_SipEvent swig_types[4]
|
||||
#define SWIGTYPE_p_SipSession swig_types[5]
|
||||
#define SWIGTYPE_p_SipStack swig_types[6]
|
||||
#define SWIGTYPE_p_SubscriptionEvent swig_types[7]
|
||||
#define SWIGTYPE_p_SubscriptionSession swig_types[8]
|
||||
#define SWIGTYPE_p_char swig_types[9]
|
||||
#define SWIGTYPE_p_tsip_event_type_e swig_types[10]
|
||||
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[11]
|
||||
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[12]
|
||||
static swig_type_info *swig_types[14];
|
||||
static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_SipUri swig_types[7]
|
||||
#define SWIGTYPE_p_SubscriptionEvent swig_types[8]
|
||||
#define SWIGTYPE_p_SubscriptionSession swig_types[9]
|
||||
#define SWIGTYPE_p_char swig_types[10]
|
||||
#define SWIGTYPE_p_tsip_event_type_e swig_types[11]
|
||||
#define SWIGTYPE_p_tsip_register_event_type_e swig_types[12]
|
||||
#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[13]
|
||||
static swig_type_info *swig_types[15];
|
||||
static swig_module_info swig_module = {swig_types, 14, 0, 0, 0, 0};
|
||||
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
||||
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
||||
|
||||
|
@ -3196,7 +3160,7 @@ static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0};
|
|||
#endif
|
||||
#define SWIG_name "_tinyWRAP"
|
||||
|
||||
#define SWIGVERSION 0x010340
|
||||
#define SWIGVERSION 0x010339
|
||||
#define SWIG_VERSION SWIGVERSION
|
||||
|
||||
|
||||
|
@ -3269,6 +3233,7 @@ namespace swig {
|
|||
}
|
||||
|
||||
|
||||
#include "SipUri.h"
|
||||
#include "SipEvent.h"
|
||||
#include "SipSession.h"
|
||||
#include "RegistrationEvent.h"
|
||||
|
@ -3280,16 +3245,6 @@ namespace swig {
|
|||
#include "SipStack.h"
|
||||
|
||||
|
||||
#define SWIG_From_long PyInt_FromLong
|
||||
|
||||
|
||||
SWIGINTERNINLINE PyObject *
|
||||
SWIG_From_short (short value)
|
||||
{
|
||||
return SWIG_From_long (value);
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN swig_type_info*
|
||||
SWIG_pchar_descriptor(void)
|
||||
{
|
||||
|
@ -3303,6 +3258,88 @@ SWIG_pchar_descriptor(void)
|
|||
}
|
||||
|
||||
|
||||
SWIGINTERN int
|
||||
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
||||
{
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
if (PyUnicode_Check(obj))
|
||||
#else
|
||||
if (PyString_Check(obj))
|
||||
#endif
|
||||
{
|
||||
char *cstr; Py_ssize_t len;
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
obj = PyUnicode_AsUTF8String(obj);
|
||||
PyBytes_AsStringAndSize(obj, &cstr, &len);
|
||||
#else
|
||||
PyString_AsStringAndSize(obj, &cstr, &len);
|
||||
#endif
|
||||
if (cptr) {
|
||||
if (alloc) {
|
||||
/*
|
||||
In python the user should not be able to modify the inner
|
||||
string representation. To warranty that, if you define
|
||||
SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
|
||||
buffer is always returned.
|
||||
|
||||
The default behavior is just to return the pointer value,
|
||||
so, be careful.
|
||||
*/
|
||||
#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
|
||||
if (*alloc != SWIG_OLDOBJ)
|
||||
#else
|
||||
if (*alloc == SWIG_NEWOBJ)
|
||||
#endif
|
||||
{
|
||||
*cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
|
||||
*alloc = SWIG_NEWOBJ;
|
||||
}
|
||||
else {
|
||||
*cptr = cstr;
|
||||
*alloc = SWIG_OLDOBJ;
|
||||
}
|
||||
} else {
|
||||
*cptr = SWIG_Python_str_AsChar(obj);
|
||||
}
|
||||
}
|
||||
if (psize) *psize = len + 1;
|
||||
return SWIG_OK;
|
||||
} else {
|
||||
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
||||
if (pchar_descriptor) {
|
||||
void* vptr = 0;
|
||||
if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
|
||||
if (cptr) *cptr = (char *) vptr;
|
||||
if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
|
||||
if (alloc) *alloc = SWIG_OLDOBJ;
|
||||
return SWIG_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
return SWIG_TypeError;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
SWIGINTERNINLINE PyObject*
|
||||
SWIG_From_bool (bool value)
|
||||
{
|
||||
return PyBool_FromLong(value ? 1 : 0);
|
||||
}
|
||||
|
||||
|
||||
#define SWIG_From_long PyInt_FromLong
|
||||
|
||||
|
||||
SWIGINTERNINLINE PyObject *
|
||||
SWIG_From_short (short value)
|
||||
{
|
||||
return SWIG_From_long (value);
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERNINLINE PyObject *
|
||||
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
||||
{
|
||||
|
@ -3331,92 +3368,6 @@ SWIG_FromCharPtr(const char *cptr)
|
|||
}
|
||||
|
||||
|
||||
SWIGINTERN int
|
||||
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
||||
{
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
if (PyUnicode_Check(obj))
|
||||
#else
|
||||
if (PyString_Check(obj))
|
||||
#endif
|
||||
{
|
||||
char *cstr; Py_ssize_t len;
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
if (!alloc && cptr) {
|
||||
/* We can't allow converting without allocation, since the internal
|
||||
representation of string in Python 3 is UCS-2/UCS-4 but we require
|
||||
a UTF-8 representation.
|
||||
TODO(bhy) More detailed explanation */
|
||||
return SWIG_RuntimeError;
|
||||
}
|
||||
obj = PyUnicode_AsUTF8String(obj);
|
||||
PyBytes_AsStringAndSize(obj, &cstr, &len);
|
||||
if(alloc) *alloc = SWIG_NEWOBJ;
|
||||
#else
|
||||
PyString_AsStringAndSize(obj, &cstr, &len);
|
||||
#endif
|
||||
if (cptr) {
|
||||
if (alloc) {
|
||||
/*
|
||||
In python the user should not be able to modify the inner
|
||||
string representation. To warranty that, if you define
|
||||
SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
|
||||
buffer is always returned.
|
||||
|
||||
The default behavior is just to return the pointer value,
|
||||
so, be careful.
|
||||
*/
|
||||
#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
|
||||
if (*alloc != SWIG_OLDOBJ)
|
||||
#else
|
||||
if (*alloc == SWIG_NEWOBJ)
|
||||
#endif
|
||||
{
|
||||
*cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
|
||||
*alloc = SWIG_NEWOBJ;
|
||||
}
|
||||
else {
|
||||
*cptr = cstr;
|
||||
*alloc = SWIG_OLDOBJ;
|
||||
}
|
||||
} else {
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
assert(0); /* Should never reach here in Python 3 */
|
||||
#endif
|
||||
*cptr = SWIG_Python_str_AsChar(obj);
|
||||
}
|
||||
}
|
||||
if (psize) *psize = len + 1;
|
||||
#if PY_VERSION_HEX>=0x03000000
|
||||
Py_XDECREF(obj);
|
||||
#endif
|
||||
return SWIG_OK;
|
||||
} else {
|
||||
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
||||
if (pchar_descriptor) {
|
||||
void* vptr = 0;
|
||||
if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
|
||||
if (cptr) *cptr = (char *) vptr;
|
||||
if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
|
||||
if (alloc) *alloc = SWIG_OLDOBJ;
|
||||
return SWIG_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
return SWIG_TypeError;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
SWIGINTERNINLINE PyObject*
|
||||
SWIG_From_bool (bool value)
|
||||
{
|
||||
return PyBool_FromLong(value ? 1 : 0);
|
||||
}
|
||||
|
||||
|
||||
#include <limits.h>
|
||||
#if !defined(SWIG_NO_LLONG_MAX)
|
||||
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
||||
|
@ -3711,6 +3662,143 @@ int SwigDirector_SipCallback::OnSubscriptionChanged(SubscriptionEvent const *e)
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
SWIGINTERN PyObject *_wrap_new_SipUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
char *arg1 = (char *) 0 ;
|
||||
int res1 ;
|
||||
char *buf1 = 0 ;
|
||||
int alloc1 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
SipUri *result = 0 ;
|
||||
|
||||
if (!PyArg_ParseTuple(args,(char *)"O:new_SipUri",&obj0)) SWIG_fail;
|
||||
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< char * >(buf1);
|
||||
result = (SipUri *)new SipUri((char const *)arg1);
|
||||
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_POINTER_NEW | 0 );
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
return resultobj;
|
||||
fail:
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_delete_SipUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
SipUri *arg1 = (SipUri *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
|
||||
if (!PyArg_ParseTuple(args,(char *)"O:delete_SipUri",&obj0)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, SWIG_POINTER_DISOWN | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipUri" "', argument " "1"" of type '" "SipUri *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipUri * >(argp1);
|
||||
delete arg1;
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SipUri_isValid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
char *arg1 = (char *) 0 ;
|
||||
int res1 ;
|
||||
char *buf1 = 0 ;
|
||||
int alloc1 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
bool result;
|
||||
|
||||
if (!PyArg_ParseTuple(args,(char *)"O:SipUri_isValid",&obj0)) SWIG_fail;
|
||||
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "char const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< char * >(buf1);
|
||||
result = (bool)SipUri::isValid((char const *)arg1);
|
||||
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
return resultobj;
|
||||
fail:
|
||||
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SipUri_isValid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
SipUri *arg1 = (SipUri *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
bool result;
|
||||
|
||||
if (!PyArg_ParseTuple(args,(char *)"O:SipUri_isValid",&obj0)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "SipUri *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipUri * >(argp1);
|
||||
result = (bool)(arg1)->isValid();
|
||||
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SipUri_isValid(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[2];
|
||||
int ii;
|
||||
|
||||
if (!PyTuple_Check(args)) SWIG_fail;
|
||||
argc = (int)PyObject_Length(args);
|
||||
for (ii = 0; (ii < argc) && (ii < 1); ii++) {
|
||||
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
||||
}
|
||||
if (argc == 1) {
|
||||
int _v;
|
||||
void *vptr = 0;
|
||||
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipUri, 0);
|
||||
_v = SWIG_CheckState(res);
|
||||
if (_v) {
|
||||
return _wrap_SipUri_isValid__SWIG_1(self, args);
|
||||
}
|
||||
}
|
||||
if (argc == 1) {
|
||||
int _v;
|
||||
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
||||
_v = SWIG_CheckState(res);
|
||||
if (_v) {
|
||||
return _wrap_SipUri_isValid__SWIG_0(self, args);
|
||||
}
|
||||
}
|
||||
|
||||
fail:
|
||||
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SipUri_isValid'.\n"
|
||||
" Possible C/C++ prototypes are:\n"
|
||||
" isValid(char const *)\n"
|
||||
" isValid(SipUri *)\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *SipUri_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *obj;
|
||||
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
||||
SWIG_TypeNewClientData(SWIGTYPE_p_SipUri, SWIG_NewClientData(obj));
|
||||
return SWIG_Py_Void();
|
||||
}
|
||||
|
||||
SWIGINTERN PyObject *_wrap_new_SipEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
SipEvent *result = 0 ;
|
||||
|
@ -4755,7 +4843,7 @@ SWIGINTERN PyObject *_wrap_disown_SipCallback(PyObject *SWIGUNUSEDPARM(self), Py
|
|||
}
|
||||
arg1 = reinterpret_cast< SipCallback * >(argp1);
|
||||
{
|
||||
Swig::Director *director = dynamic_cast<Swig::Director *>(arg1);
|
||||
Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
|
||||
if (director) director->swig_disown();
|
||||
}
|
||||
|
||||
|
@ -4959,6 +5047,108 @@ fail:
|
|||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SipStack_setRealm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int res2 ;
|
||||
char *buf2 = 0 ;
|
||||
int alloc2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
bool result;
|
||||
|
||||
if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setRealm",&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setRealm" "', argument " "1"" of type '" "SipStack *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipStack * >(argp1);
|
||||
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setRealm" "', argument " "2"" of type '" "char const *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< char * >(buf2);
|
||||
result = (bool)(arg1)->setRealm((char const *)arg2);
|
||||
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
return resultobj;
|
||||
fail:
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SipStack_setIMPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int res2 ;
|
||||
char *buf2 = 0 ;
|
||||
int alloc2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
bool result;
|
||||
|
||||
if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setIMPI",&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPI" "', argument " "1"" of type '" "SipStack *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipStack * >(argp1);
|
||||
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPI" "', argument " "2"" of type '" "char const *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< char * >(buf2);
|
||||
result = (bool)(arg1)->setIMPI((char const *)arg2);
|
||||
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
return resultobj;
|
||||
fail:
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SipStack_setIMPU(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int res2 ;
|
||||
char *buf2 = 0 ;
|
||||
int alloc2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
bool result;
|
||||
|
||||
if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setIMPU",&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPU" "', argument " "1"" of type '" "SipStack *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipStack * >(argp1);
|
||||
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
||||
if (!SWIG_IsOK(res2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPU" "', argument " "2"" of type '" "char const *""'");
|
||||
}
|
||||
arg2 = reinterpret_cast< char * >(buf2);
|
||||
result = (bool)(arg1)->setIMPU((char const *)arg2);
|
||||
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
return resultobj;
|
||||
fail:
|
||||
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SipStack_setPassword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
|
@ -5205,6 +5395,28 @@ fail:
|
|||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SipStack_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
bool result;
|
||||
|
||||
if (!PyArg_ParseTuple(args,(char *)"O:SipStack_isValid",&obj0)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_isValid" "', argument " "1"" of type '" "SipStack *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< SipStack * >(argp1);
|
||||
result = (bool)(arg1)->isValid();
|
||||
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_SipStack_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
SipStack *arg1 = (SipStack *) 0 ;
|
||||
|
@ -5236,6 +5448,10 @@ SWIGINTERN PyObject *SipStack_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObj
|
|||
|
||||
static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
|
||||
{ (char *)"new_SipUri", _wrap_new_SipUri, METH_VARARGS, NULL},
|
||||
{ (char *)"delete_SipUri", _wrap_delete_SipUri, METH_VARARGS, NULL},
|
||||
{ (char *)"SipUri_isValid", _wrap_SipUri_isValid, METH_VARARGS, NULL},
|
||||
{ (char *)"SipUri_swigregister", SipUri_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_SipEvent", _wrap_new_SipEvent, METH_VARARGS, NULL},
|
||||
{ (char *)"delete_SipEvent", _wrap_delete_SipEvent, METH_VARARGS, NULL},
|
||||
{ (char *)"SipEvent_getCode", _wrap_SipEvent_getCode, METH_VARARGS, NULL},
|
||||
|
@ -5287,12 +5503,16 @@ static PyMethodDef SwigMethods[] = {
|
|||
{ (char *)"new_SipStack", _wrap_new_SipStack, METH_VARARGS, NULL},
|
||||
{ (char *)"delete_SipStack", _wrap_delete_SipStack, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_start", _wrap_SipStack_start, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_setRealm", _wrap_SipStack_setRealm, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_setIMPI", _wrap_SipStack_setIMPI, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_setIMPU", _wrap_SipStack_setIMPU, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_setPassword", _wrap_SipStack_setPassword, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_setProxyCSCF", _wrap_SipStack_setProxyCSCF, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_setLocalIP", _wrap_SipStack_setLocalIP, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_setLocalPort", _wrap_SipStack_setLocalPort, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_addHeader", _wrap_SipStack_addHeader, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_removeHeader", _wrap_SipStack_removeHeader, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_isValid", _wrap_SipStack_isValid, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_stop", _wrap_SipStack_stop, METH_VARARGS, NULL},
|
||||
{ (char *)"SipStack_swigregister", SipStack_swigregister, METH_VARARGS, NULL},
|
||||
{ NULL, NULL, 0, NULL }
|
||||
|
@ -5301,21 +5521,21 @@ static PyMethodDef SwigMethods[] = {
|
|||
|
||||
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
||||
|
||||
static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipEvent *) ((RegistrationEvent *) x));
|
||||
}
|
||||
static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipEvent *) ((SubscriptionEvent *) x));
|
||||
}
|
||||
static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SafeObject *) ((SipStack *) x));
|
||||
}
|
||||
static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipSession *) ((RegistrationSession *) x));
|
||||
}
|
||||
static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipSession *) ((SubscriptionSession *) x));
|
||||
}
|
||||
static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SafeObject *) ((SipStack *) x));
|
||||
}
|
||||
static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipEvent *) ((RegistrationEvent *) x));
|
||||
}
|
||||
static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
||||
return (void *)((SipEvent *) ((SubscriptionEvent *) x));
|
||||
}
|
||||
static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)0, 0};
|
||||
|
@ -5323,6 +5543,7 @@ static swig_type_info _swigt__p_SipCallback = {"_p_SipCallback", "SipCallback *"
|
|||
static swig_type_info _swigt__p_SipEvent = {"_p_SipEvent", "SipEvent *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_SipSession = {"_p_SipSession", "SipSession *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_SipStack = {"_p_SipStack", "SipStack *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_SipUri = {"_p_SipUri", "SipUri *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "SubscriptionEvent *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
||||
|
@ -5338,6 +5559,7 @@ static swig_type_info *swig_type_initial[] = {
|
|||
&_swigt__p_SipEvent,
|
||||
&_swigt__p_SipSession,
|
||||
&_swigt__p_SipStack,
|
||||
&_swigt__p_SipUri,
|
||||
&_swigt__p_SubscriptionEvent,
|
||||
&_swigt__p_SubscriptionSession,
|
||||
&_swigt__p_char,
|
||||
|
@ -5353,6 +5575,7 @@ static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0
|
|||
static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
||||
|
@ -5368,6 +5591,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|||
_swigc__p_SipEvent,
|
||||
_swigc__p_SipSession,
|
||||
_swigc__p_SipStack,
|
||||
_swigc__p_SipUri,
|
||||
_swigc__p_SubscriptionEvent,
|
||||
_swigc__p_SubscriptionSession,
|
||||
_swigc__p_char,
|
||||
|
@ -5698,11 +5922,9 @@ extern "C" {
|
|||
|
||||
SWIGINTERN int
|
||||
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
|
||||
char *tmp;
|
||||
PyObject *str = swig_varlink_str(v);
|
||||
fprintf(fp,"Swig global variables ");
|
||||
fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
|
||||
SWIG_Python_str_DelForPy3(tmp);
|
||||
fprintf(fp,"%s\n", SWIG_Python_str_AsChar(str));
|
||||
Py_DECREF(str);
|
||||
return 0;
|
||||
}
|
||||
|
@ -5770,7 +5992,7 @@ extern "C" {
|
|||
(char *)"swigvarlink", /* Type name (tp_name) */
|
||||
sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
|
||||
0, /* Itemsize (tp_itemsize) */
|
||||
(destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
|
||||
(destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
|
||||
(printfunc) swig_varlink_print, /* Print (tp_print) */
|
||||
(getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
|
||||
(setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
|
||||
|
@ -5781,7 +6003,7 @@ extern "C" {
|
|||
0, /* tp_as_mapping */
|
||||
0, /* tp_hash */
|
||||
0, /* tp_call */
|
||||
(reprfunc) swig_varlink_str, /* tp_str */
|
||||
(reprfunc)swig_varlink_str, /* tp_str */
|
||||
0, /* tp_getattro */
|
||||
0, /* tp_setattro */
|
||||
0, /* tp_as_buffer */
|
||||
|
@ -5802,7 +6024,7 @@ extern "C" {
|
|||
#endif
|
||||
};
|
||||
varlink_type = tmp;
|
||||
/* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
|
||||
/* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */
|
||||
#if PY_VERSION_HEX < 0x03000000
|
||||
varlink_type.ob_type = &PyType_Type;
|
||||
#endif
|
||||
|
@ -5938,7 +6160,10 @@ PyObject*
|
|||
void
|
||||
#endif
|
||||
SWIG_init(void) {
|
||||
PyObject *m, *d;
|
||||
PyObject *m, *d;
|
||||
|
||||
/* Fix SwigMethods to carry the callback ptrs when needed */
|
||||
SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
static struct PyModuleDef SWIG_module = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
|
@ -5951,12 +6176,7 @@ SWIG_init(void) {
|
|||
NULL,
|
||||
NULL
|
||||
};
|
||||
#endif
|
||||
|
||||
/* Fix SwigMethods to carry the callback ptrs when needed */
|
||||
SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
|
||||
|
||||
#if PY_VERSION_HEX >= 0x03000000
|
||||
m = PyModule_Create(&SWIG_module);
|
||||
#else
|
||||
m = Py_InitModule((char *) SWIG_name, SwigMethods);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.40
|
||||
* 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
|
||||
|
|
|
@ -34,7 +34,24 @@ namespace test
|
|||
/* Create call back */
|
||||
callback = new MyCallback(this);
|
||||
/* Create and configure the IMS/LTE stack */
|
||||
stack = new SipStack(callback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM));
|
||||
// stack = new SipStack(callback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM));
|
||||
stack = new SipStack(callback, "sip:dd", "aaaa", "sip:444@example.com");
|
||||
|
||||
success = stack.setRealm(String.Format("sip:{0}", REALM));
|
||||
success = stack.setIMPI(String.Format("{0}@{1}", USER, REALM));
|
||||
success = stack.setIMPU(String.Format("sip:{0}@{1}", USER, REALM));
|
||||
|
||||
success = SipUri.isValid("sip:");
|
||||
success = SipUri.isValid("sip:sss");
|
||||
success = SipUri.isValid(":");
|
||||
success = SipUri.isValid("sip:aapp@ddd");
|
||||
|
||||
if (!stack.isValid())
|
||||
{
|
||||
this.textBoxDebug.Text = "Invalid stack";
|
||||
return;
|
||||
}
|
||||
|
||||
stack.addHeader("Allow", "INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER");
|
||||
stack.addHeader("Privacy", "header; id");
|
||||
stack.addHeader("P-Access-Network-Info", "ADSL;utran-cell-id-3gpp=00000000");
|
||||
|
@ -45,7 +62,7 @@ namespace test
|
|||
/* Sets Proxy-CSCF */
|
||||
success = stack.setProxyCSCF(PROXY_CSCF_IP, PROXY_CSCF_PORT, "tcp", "ipv4");
|
||||
/* Starts the stack */
|
||||
success = stack.Start();
|
||||
success = stack.start();
|
||||
}
|
||||
|
||||
private void buttonRegister_Click(object sender, EventArgs e)
|
||||
|
@ -56,8 +73,9 @@ namespace test
|
|||
this.regSession.addCaps("+g.oma.sip-im");
|
||||
this.regSession.addCaps("+g.3gpp.smsip");
|
||||
this.regSession.addCaps("language", "\"en,fr\"");
|
||||
this.regSession.setExpires(30);
|
||||
}
|
||||
this.regSession.Register(35);
|
||||
this.regSession.Register();
|
||||
}
|
||||
|
||||
private void buttonUnRegister_Click(object sender, EventArgs e)
|
||||
|
|
|
@ -57,6 +57,15 @@
|
|||
<Compile Include="..\..\..\csharp\SipStack.cs">
|
||||
<Link>SipStack.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\..\csharp\SipUri.cs">
|
||||
<Link>SipUri.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\..\csharp\SubscriptionEvent.cs">
|
||||
<Link>SubscriptionEvent.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\..\csharp\SubscriptionSession.cs">
|
||||
<Link>SubscriptionSession.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\..\csharp\tinyWRAP.cs">
|
||||
<Link>tinyWRAP.cs</Link>
|
||||
</Compile>
|
||||
|
@ -69,6 +78,9 @@
|
|||
<Compile Include="..\..\..\csharp\tsip_register_event_type_t.cs">
|
||||
<Link>tsip_register_event_type_t.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="..\..\..\csharp\tsip_subscribe_event_type_t.cs">
|
||||
<Link>tsip_subscribe_event_type_t.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
|
|
@ -210,6 +210,10 @@
|
|||
RelativePath="..\..\_common\SipStack.cxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\SipUri.cxx"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\SubscriptionEvent.cxx"
|
||||
>
|
||||
|
@ -264,6 +268,10 @@
|
|||
RelativePath="..\..\_common\SipStack.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\SipUri.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\SubscriptionEvent.h"
|
||||
>
|
||||
|
@ -282,10 +290,18 @@
|
|||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\_common\SipStack.i"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\tinyWRAP.i"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\_common\XcapStack.i"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
# REGISTER
|
||||
++reg --xp $$(expires) --caps +g.oma.sip-im --caps +g.3gpp.smsip --caps language="en,fr" \
|
||||
--header Action-Header=Myheader-value @@action\
|
||||
--header Action-Header=Myheader-value @@action \
|
||||
>>(reg-sid)
|
||||
|
||||
# sleep
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
++sleep --sec -1 # Press ENTER
|
||||
|
||||
# MESSAGE
|
||||
++m --to sip:mercuro2@$$(domain) --pay Test SMS-RPDATA --header Content-Type=application/vnd.3gpp.sms --header Transfer-Encoding=binary
|
||||
#++m --to sip:mercuro2@$$(domain) --pay Test SMS-RPDATA --header Content-Type=application/vnd.3gpp.sms --header Transfer-Encoding=binary
|
||||
|
||||
|
||||
# sleep
|
||||
|
|
|
@ -81,28 +81,34 @@ int message_handle_event(const tsip_event_t *sipevent)
|
|||
|
||||
case tsip_i_message: /* Incoming MESSAGE */
|
||||
{
|
||||
const char* content_type = TSIP_MESSAGE_CONTENT_TYPE(sipevent->sipmessage);
|
||||
|
||||
TSK_DEBUG_INFO("Event: Incoming MESSAGE.");
|
||||
if(TSIP_MESSAGE_HAS_CONTENT(sipevent->sipmessage)){
|
||||
const tsk_buffer_t* content = TSIP_MESSAGE_CONTENT(sipevent->sipmessage);
|
||||
TSK_DEBUG_INFO("MESSAGE Content-Type: %s", TSIP_MESSAGE_CONTENT_TYPE(sipevent->sipmessage));
|
||||
TSK_DEBUG_INFO("MESSAGE Content-Type: %s", content_type);
|
||||
TSK_DEBUG_INFO("MESSAGE Content: %s", content->data);
|
||||
}
|
||||
/* accept() the MESSAGE to terminate the dialog */
|
||||
tsip_action_ACCEPT(session->handle,
|
||||
TSIP_ACTION_SET_HEADER("Info", "I've accept()ed your message"),
|
||||
TSIP_ACTION_SET_NULL());
|
||||
if(tsk_striequals("plain/text", content_type) || tsk_striequals("text/html", content_type)){
|
||||
tsip_action_ACCEPT(session->handle,
|
||||
TSIP_ACTION_SET_HEADER("Info", "I've accept()ed your message"),// just for test
|
||||
TSIP_ACTION_SET_NULL());
|
||||
}
|
||||
/* reject() the MESSAGE to terminate the dialog */
|
||||
/*tsip_action_REJECT(session->handle,
|
||||
TSIP_ACTION_SET_HEADER("Info", "I've reject()ed your message"),
|
||||
TSIP_ACTION_SET_HEADER("In-Reply-To", "apb03a0s09dkjdfglkj49112"),
|
||||
TSIP_ACTION_SET_NULL());
|
||||
break;*/
|
||||
else{
|
||||
tsip_action_REJECT(session->handle,
|
||||
TSIP_ACTION_SET_HEADER("Info", "I've reject()ed your message"),// just for test
|
||||
TSIP_ACTION_SET_HEADER("In-Reply-To", "apb03a0s09dkjdfglkj49112"),// just for test
|
||||
TSIP_ACTION_SET_NULL());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
/* Server events (For whose dev. Server Side IMS Services) */
|
||||
case tsip_ai_message: /* Answer to Incoming MESSAGE */
|
||||
{
|
||||
TSK_DEBUG_WARN("Event not support by Client Framework.");
|
||||
TSK_DEBUG_WARN("Event not supported by Client Framework.");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,11 +65,12 @@ int tsk_fsm_set(tsk_fsm_t* self, ...)
|
|||
int guard;
|
||||
|
||||
if(!self){
|
||||
TSK_DEBUG_ERROR("Invalid parameter");
|
||||
return -1;
|
||||
}
|
||||
|
||||
va_start(args, self);
|
||||
while((guard=va_arg(args, int))){
|
||||
while((guard = va_arg(args, int))){
|
||||
tsk_fsm_entry_t* entry;
|
||||
if((entry = tsk_fsm_entry_create())){
|
||||
entry->from = va_arg(args, tsk_fsm_state_id);
|
||||
|
@ -101,7 +102,10 @@ int tsk_fsm_set_callback_terminated(tsk_fsm_t* self, tsk_fsm_onterminated_f call
|
|||
self->callback_data = callbackdata;
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
else{
|
||||
TSK_DEBUG_ERROR("Invalid parameter");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**@ingroup tsk_fsm_group
|
||||
|
@ -118,10 +122,10 @@ int tsk_fsm_act(tsk_fsm_t* self, tsk_fsm_action_id action, const void* cond_data
|
|||
tsk_list_item_t *item;
|
||||
va_list ap;
|
||||
tsk_bool_t found = tsk_false;
|
||||
int ret_exec = 0;
|
||||
int ret_exec = 0; /* success */
|
||||
|
||||
if(!self){
|
||||
TSK_DEBUG_ERROR("Null FSM.");
|
||||
TSK_DEBUG_ERROR("Invalid parameter");
|
||||
return -1;
|
||||
}
|
||||
if(tsk_fsm_terminated(self)){
|
||||
|
@ -192,7 +196,10 @@ tsk_bool_t tsk_fsm_terminated(tsk_fsm_t* self)
|
|||
if(self){
|
||||
return (self->current == self->term);
|
||||
}
|
||||
return tsk_false;
|
||||
else{
|
||||
TSK_DEBUG_ERROR("Invalid parameter");
|
||||
return tsk_true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -209,7 +216,7 @@ static tsk_object_t* tsk_fsm_ctor(tsk_object_t * self, va_list * app)
|
|||
fsm->entries = tsk_list_create();
|
||||
|
||||
#if defined(DEBUG) || defined(_DEBUG)
|
||||
fsm->debug = 1;
|
||||
fsm->debug = 1; /* default value, could be changed at any time */
|
||||
#endif
|
||||
tsk_safeobj_init(fsm);
|
||||
}
|
||||
|
@ -262,17 +269,17 @@ static tsk_object_t* tsk_fsm_entry_dtor(tsk_object_t * self)
|
|||
{
|
||||
tsk_fsm_entry_t *fsm_entry = self;
|
||||
if(fsm_entry){
|
||||
//TSK_FREE(fsm_entry->desc);
|
||||
/* desc is "const char*" => should not be deleted */
|
||||
/* TSK_FREE(fsm_entry->desc); */
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
static int tsk_fsm_entry_cmp(const tsk_object_t *obj1, const tsk_object_t *obj2)
|
||||
static int tsk_fsm_entry_cmp(const tsk_object_t *_entry1, const tsk_object_t *_entry2)
|
||||
{
|
||||
const tsk_fsm_entry_t* entry1 = obj1;
|
||||
const tsk_fsm_entry_t* entry2 = obj2;
|
||||
if(entry1 && entry2)
|
||||
{
|
||||
const tsk_fsm_entry_t* entry1 = _entry1;
|
||||
const tsk_fsm_entry_t* entry2 = _entry2;
|
||||
if(entry1 && entry2){
|
||||
/* Put "Any" states at the bottom. (Strong)*/
|
||||
if(entry1->from == tsk_fsm_state_any){
|
||||
return -20;
|
||||
|
|
|
@ -95,7 +95,7 @@ typedef int (*tsk_fsm_onterminated_f)(const void*);
|
|||
* @def TSK_FSM_ADD_ALWAYS
|
||||
*/
|
||||
/**@ingroup tsk_fsm_group
|
||||
* @def TSK_FSM_ADD_NOTING
|
||||
* @def TSK_FSM_ADD_NOTHING
|
||||
*/
|
||||
/**@ingroup tsk_fsm_group
|
||||
* @def TSK_FSM_ADD_ALWAYS_NOTHING
|
||||
|
@ -115,7 +115,7 @@ typedef int (*tsk_fsm_onterminated_f)(const void*);
|
|||
(tsk_fsm_exec)exec, \
|
||||
(const char*)desc
|
||||
#define TSK_FSM_ADD_ALWAYS(from, action, to, exec, desc) TSK_FSM_ADD(from, action, tsk_fsm_cond_always, to, exec, desc)
|
||||
#define TSK_FSM_ADD_NOTING(from, action, cond, desc) TSK_FSM_ADD(from, action, cond, from, tsk_fsm_exec_nothing, desc)
|
||||
#define TSK_FSM_ADD_NOTHING(from, action, cond, desc) TSK_FSM_ADD(from, action, cond, from, tsk_fsm_exec_nothing, desc)
|
||||
#define TSK_FSM_ADD_ALWAYS_NOTHING(from, desc) TSK_FSM_ADD(from, tsk_fsm_action_any, tsk_fsm_cond_always, from, tsk_fsm_exec_nothing, desc)
|
||||
#define TSK_FSM_ADD_DEFAULT()
|
||||
#define TSK_FSM_ADD_NULL()\
|
||||
|
|
|
@ -982,16 +982,7 @@ int tsip_dialog_deinit(tsip_dialog_t *self)
|
|||
|
||||
/* Cancel all transactions associated to this dialog (do it here before the dialog becomes unsafe) */
|
||||
tsip_transac_layer_cancel_by_dialog(TSIP_DIALOG_GET_STACK(self)->layer_transac, self);
|
||||
|
||||
/* "server-side-session"? */
|
||||
if(!self->ss->owner){
|
||||
/* not owned by the end-user */
|
||||
self->ss = tsk_object_unref(self->ss);
|
||||
}
|
||||
/* if "server-side-session" session, then it's normal to call tsk_object_unref() followed by TSK_OBJECT_SAFE_FREE()
|
||||
* tsk_object_unref(): tsk_object_new() called by tsip_ssession_create_2()
|
||||
* TSK_OBJECT_SAFE_FREE(): tsk_object_ref() called by tsip_dialog_init()
|
||||
*/
|
||||
|
||||
TSK_OBJECT_SAFE_FREE(self->ss);
|
||||
TSK_OBJECT_SAFE_FREE(self->curr_action);
|
||||
|
||||
|
|
|
@ -366,9 +366,9 @@ int tsip_ssession_handle(const tsip_ssession_t *self, const struct tsip_action_s
|
|||
ret = tsip_dialog_fsm_act(dialog, action->type, tsk_null, action);
|
||||
break;
|
||||
}
|
||||
/* unref */
|
||||
tsk_object_unref(dialog);
|
||||
}
|
||||
/* unref */
|
||||
tsk_object_unref(dialog);
|
||||
}
|
||||
else{
|
||||
TSK_DEBUG_ERROR("Failed to find dialog with this opid [%lld]", self->id);
|
||||
|
|
Loading…
Reference in New Issue