2010-05-14 02:05:29 +00:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
2010-05-14 11:53:20 +00:00
|
|
|
* Version 1.3.39
|
2010-05-14 02:05:29 +00:00
|
|
|
*
|
|
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
|
|
* the SWIG interface file instead.
|
|
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
package org.doubango.tinyWRAP;
|
|
|
|
|
|
|
|
public class SipStack extends SafeObject {
|
|
|
|
private long swigCPtr;
|
|
|
|
|
|
|
|
protected SipStack(long cPtr, boolean cMemoryOwn) {
|
|
|
|
super(tinyWRAPJNI.SWIGSipStackUpcast(cPtr), cMemoryOwn);
|
|
|
|
swigCPtr = cPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected static long getCPtr(SipStack obj) {
|
|
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected void finalize() {
|
|
|
|
delete();
|
|
|
|
}
|
|
|
|
|
|
|
|
public synchronized void delete() {
|
2010-05-14 11:53:20 +00:00
|
|
|
if(swigCPtr != 0 && swigCMemOwn) {
|
|
|
|
swigCMemOwn = false;
|
|
|
|
tinyWRAPJNI.delete_SipStack(swigCPtr);
|
2010-05-14 02:05:29 +00:00
|
|
|
}
|
2010-05-14 11:53:20 +00:00
|
|
|
swigCPtr = 0;
|
2010-05-14 02:05:29 +00:00
|
|
|
super.delete();
|
|
|
|
}
|
|
|
|
|
|
|
|
public SipStack(SipCallback callback, String realm_uri, String impi_uri, String impu_uri) {
|
|
|
|
this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(callback), callback, realm_uri, impi_uri, impu_uri), true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean Start() {
|
|
|
|
return tinyWRAPJNI.SipStack_Start(swigCPtr, this);
|
|
|
|
}
|
|
|
|
|
2010-05-14 11:53:20 +00:00
|
|
|
public boolean setPassword(String password) {
|
|
|
|
return tinyWRAPJNI.SipStack_setPassword(swigCPtr, this, password);
|
|
|
|
}
|
|
|
|
|
2010-05-14 02:05:29 +00:00
|
|
|
public boolean setProxyCSCF(String fqdn, long port, String transport, String ipversion) {
|
|
|
|
return tinyWRAPJNI.SipStack_setProxyCSCF(swigCPtr, this, fqdn, port, transport, ipversion);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean setLocalIP(String ip) {
|
|
|
|
return tinyWRAPJNI.SipStack_setLocalIP(swigCPtr, this, ip);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean setLocalPort(long port) {
|
|
|
|
return tinyWRAPJNI.SipStack_setLocalPort(swigCPtr, this, port);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean addHeader(String name, String value) {
|
|
|
|
return tinyWRAPJNI.SipStack_addHeader(swigCPtr, this, name, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean removeHeader(String name) {
|
|
|
|
return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean Stop() {
|
|
|
|
return tinyWRAPJNI.SipStack_Stop(swigCPtr, this);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|