Newer
Older
* Author : Laurielle Lea <laurielle.lea@savoirfairelinux.com>
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __VOIP_LINK_H__
#define __VOIP_LINK_H__
#include <string>
virtual void newOutgoingCall (CALLID id) = 0;
virtual void newIncomingCall (CALLID id) = 0;
virtual int outgoingInvite (CALLID id, const std::string& to_url) = 0;
virtual int answer (CALLID id) = 0;
virtual int hangup (CALLID id) = 0;
virtual int cancel (CALLID id) = 0;
virtual int onhold (CALLID id) = 0;
virtual int offhold (CALLID id) = 0;
virtual int transfer (CALLID id, const std::string& to) = 0;
virtual int refuse (CALLID id) = 0;
virtual void carryingDTMFdigits(CALLID id, char code) = 0;
virtual AudioCodec* getAudioCodec (CALLID id) = 0;
void setType (VoIPLinkType type);
VoIPLinkType getType (void);
void setFullName (const std::string& fullname);
std::string getFullName (void);
void setHostName (const std::string& hostname);
std::string getHostName (void);
void setLocalIpAddress (const std::string& ipAdress);
private:
void initConstructor(void);
VoIPLinkType _type;
std::string _fullname;
std::string _hostname;
std::string _localIpAddress;