mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
Associate invite session and _xferSub to call.
This commit is contained in:
2
src/sipcall.cpp
Normal file → Executable file
2
src/sipcall.cpp
Normal file → Executable 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
11
src/sipcall.h
Normal file → Executable 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
|
||||
|
Reference in New Issue
Block a user