Add CallSession::getPreviousState() method.

This commit is contained in:
Ghislain MARY 2018-02-28 10:40:50 +01:00
parent 969b78d7e2
commit c8823c1023
2 changed files with 6 additions and 0 deletions

View file

@ -1297,6 +1297,11 @@ CallSession::State CallSession::getState () const {
return d->state;
}
CallSession::State CallSession::getPreviousState () const {
L_D();
return d->prevState;
}
const Address& CallSession::getToAddress () const {
L_D();
d->toAddress = Address(d->op->get_to());

View file

@ -103,6 +103,7 @@ public:
protected:
explicit CallSession (CallSessionPrivate &p, const std::shared_ptr<Core> &core);
CallSession::State getPreviousState () const;
private:
L_DECLARE_PRIVATE(CallSession);