Associate invite session and _xferSub to call.

This commit is contained in:
Yun Liu
2008-09-25 10:07:03 -04:00
parent 521bb0a998
commit a0acc70ad4
2 changed files with 13 additions and 0 deletions

2
src/sipcall.cpp Normal file → Executable file
View File

@ -35,6 +35,8 @@ SIPCall::SIPCall(const CallID& id, Call::CallType type) : Call(id, type)
_cid = 0;
_did = 0;
_tid = 0;
_xferSub = NULL;
_invSession = NULL;
}
SIPCall::~SIPCall()

11
src/sipcall.h Normal file → Executable file
View File

@ -30,6 +30,8 @@ struct pjmedia_sdp_session;
struct pjmedia_sdp_media;
struct pjmedia_sdp_neg;
struct pj_pool_t;
struct pjsip_inv_session;
struct pjsip_evsub;
class AudioCodec;
@ -152,6 +154,12 @@ class SIPCall : public Call
*/
bool createInitialOffer(pj_pool_t *pool);
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;}
private:
/** No longer being used */
@ -232,6 +240,9 @@ class SIPCall : public Call
/** IP address */
std::string _ipAddr;
pjsip_evsub *_xferSub;
pjsip_inv_session *_invSession;
};
#endif