Files
jami-daemon/sflphone-common/src/sip/sipcall.h

120 lines
2.8 KiB
C
Raw Normal View History

/*
* Copyright (C) 2004-2007 Savoir-Faire Linux inc.
* Author: Alexandre Bourget <alexandre.bourget@savoirfairelinux.com>
* Author: Yan Morin <yan.morin@savoirfairelinux.com>
* Author : Laurielle Lea <laurielle.lea@savoirfairelinux.com>
2005-12-19 00:11:35 +00:00
*
* 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 3 of the License, or
* (at your option) any later version.
2005-12-19 00:11:35 +00:00
*
* 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.
2005-12-19 00:11:35 +00:00
*
* 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.
2005-12-19 00:11:35 +00:00
*/
#ifndef SIPCALL_H
#define SIPCALL_H
2005-12-19 00:11:35 +00:00
#include "call.h"
#include "sipvoiplink.h"
2009-02-27 16:47:37 -05:00
#include "sdp.h"
2005-12-19 00:11:35 +00:00
class AudioCodec;
/**
* @file sipcall.h
* @brief SIPCall are SIP implementation of a normal Call
*/
class SIPCall : public Call
{
public:
/**
* Constructor
* @param id The call identifier
* @param type The type of the call. Could be Incoming
* Outgoing
*/
2009-02-27 16:47:37 -05:00
SIPCall(const CallID& id, Call::CallType type, pj_pool_t *pool );
/**
* Destructor
*/
~SIPCall();
/**
* Call Identifier
* @return int SIP call id
*/
int getCid() { return _cid; }
/**
* Call Identifier
* @param cid SIP call id
*/
void setCid(int cid) { _cid = cid ; }
/**
* Domain identifier
* @return int SIP domain id
*/
int getDid() { return _did; }
/**
* Domain identifier
* @param did SIP domain id
*/
void setDid(int did) { _did = did; }
/**
* Transaction identifier
* @return int SIP transaction id
*/
int getTid() { return _tid; }
2009-02-14 12:36:47 -05:00
/**
* Transaction identifier
* @param tid SIP transaction id
*/
void setTid(int tid) { _tid = tid; }
void setXferSub(pjsip_evsub* sub) {_xferSub = sub;}
pjsip_evsub *getXferSub() {return _xferSub;}
void setInvSession(pjsip_inv_session* inv) {_invSession = inv;}
pjsip_inv_session *getInvSession() {return _invSession;}
2009-02-27 16:47:37 -05:00
Sdp* getLocalSDP (void) { return _local_sdp; }
void setLocalSDP (Sdp *local_sdp) { _local_sdp = local_sdp; }
private:
2008-10-02 09:34:16 -04:00
int _cid;
int _did;
int _tid;
2009-02-14 12:36:47 -05:00
// Copy Constructor
SIPCall(const SIPCall& rh);
2009-02-14 12:36:47 -05:00
// Assignment Operator
SIPCall& operator=( const SIPCall& rh);
pjsip_evsub *_xferSub;
pjsip_inv_session *_invSession;
Sdp *_local_sdp;
2005-12-19 00:11:35 +00:00
};
#endif