Skip to content
Snippets Groups Projects
Commit a0acc70a authored by Yun Liu's avatar Yun Liu
Browse files

Associate invite session and _xferSub to call.

parent 521bb0a9
Branches
Tags
No related merge requests found
......@@ -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()
......
src/sipcall.h 100644 → 100755
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment