summaryrefslogtreecommitdiffstats
path: root/branches/1.0/bindings/_common/SipStack.h
diff options
context:
space:
mode:
Diffstat (limited to 'branches/1.0/bindings/_common/SipStack.h')
-rw-r--r--branches/1.0/bindings/_common/SipStack.h109
1 files changed, 0 insertions, 109 deletions
diff --git a/branches/1.0/bindings/_common/SipStack.h b/branches/1.0/bindings/_common/SipStack.h
deleted file mode 100644
index bba308e..0000000
--- a/branches/1.0/bindings/_common/SipStack.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/*
-* Copyright (C) 2009-2010 Mamadou Diop.
-*
-* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
-*
-* This file is part of Open Source Doubango Framework.
-*
-* DOUBANGO is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation, either version 3 of the License, or
-* (at your option) any later version.
-*
-* DOUBANGO is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with DOUBANGO.
-*
-*/
-#ifndef TINYWRAP_SIPSTACK_H
-#define TINYWRAP_SIPSTACK_H
-
-#include "SipCallback.h"
-#include "SafeObject.h"
-
-#include "tinydav/tdav.h"
-#include "tinysip.h"
-
-class DDebugCallback;
-
-class SipStack: public SafeObject
-{
-public: /* ctor() and dtor() */
- SipStack(SipCallback* callback, const char* realm_uri, const char* impi_uri, const char* impu_uri);
- ~SipStack();
-
-public: /* API functions */
- bool start();
- bool setDebugCallback(DDebugCallback* callback);
- bool setRealm(const char* realm_uri);
- bool setIMPI(const char* impi);
- bool setIMPU(const char* impu_uri);
- bool setPassword(const char* password);
- bool setAMF(const char* amf);
- bool setOperatorId(const char* opid);
- bool setProxyCSCF(const char* fqdn, unsigned short port, const char* transport, const char* ipversion);
- bool setLocalIP(const char* ip);
- bool setLocalPort(unsigned short port);
- bool setEarlyIMS(bool enabled);
- bool addHeader(const char* name, const char* value);
- bool removeHeader(const char* name);
- bool addDnsServer(const char* ip);
- bool setDnsDiscovery(bool enabled);
- bool setAoR(const char* ip, int port);
-#if !defined(SWIG)
- bool setModeServer();
-#endif
-
- bool setSigCompParams(unsigned dms, unsigned sms, unsigned cpb, bool enablePresDict);
- bool addSigCompCompartment(const char* compId);
- bool removeSigCompCompartment(const char* compId);
-
- bool setSTUNServer(const char* ip, unsigned short port);
- bool setSTUNCred(const char* login, const char* password);
-
- bool setTLSSecAgree(bool enabled);
- bool setSSLCretificates(const char* privKey, const char* pubKey, const char* caKey);
- bool setIPSecSecAgree(bool enabled);
- bool setIPSecParameters(const char* algo, const char* ealgo, const char* mode, const char* proto);
-
- char* dnsENUM(const char* service, const char* e164num, const char* domain);
- char* dnsNaptrSrv(const char* domain, const char* service, unsigned short *OUTPUT);
- char* dnsSrv(const char* service, unsigned short* OUTPUT);
-
- char* getLocalIPnPort(const char* protocol, unsigned short* OUTPUT);
-
- char* getPreferredIdentity();
-
- bool isValid();
- bool stop();
-
- static void setCodecs(tdav_codec_id_t codecs);
- static void setCodecs_2(int codecs); // For stupid languages
- static bool isCodecSupported(tdav_codec_id_t codec);
-
-public: /* Public helper function */
-#if !defined(SWIG)
- inline tsip_stack_handle_t* getHandle()const{
- return this->handle;
- }
- inline SipCallback* getCallback()const{
- return this->callback;
- }
- inline DDebugCallback* getDebugCallback() const{
- return this->debugCallback;
- }
-#endif
-
-private:
- SipCallback* callback;
- DDebugCallback* debugCallback;
- tsip_stack_handle_t *handle;
-
- static unsigned count;
-};
-
-#endif /* TINYWRAP_SIPSTACK_H */
OpenPOWER on IntegriCloud