Commit eb21b8ab authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add a content parameter to the update() method of the call session.

parent 4eb16ce3
......@@ -934,7 +934,7 @@ LinphoneStatus CallSession::terminate (const LinphoneErrorInfo *ei) {
return 0;
}
LinphoneStatus CallSession::update (const CallSessionParams *csp, const string &subject) {
LinphoneStatus CallSession::update (const CallSessionParams *csp, const string &subject, const Content *content) {
L_D();
LinphoneCallState nextState;
LinphoneCallState initialState = d->state;
......@@ -942,6 +942,8 @@ LinphoneStatus CallSession::update (const CallSessionParams *csp, const string &
return -1;
if (d->currentParams == csp)
lWarning() << "CallSession::update() is given the current params, this is probably not what you intend to do!";
if (content)
d->op->set_local_body(*content);
LinphoneStatus result = d->startUpdate(subject);
if (result && (d->state != initialState)) {
/* Restore initial state */
......
......@@ -56,7 +56,7 @@ public:
virtual void startIncomingNotification ();
virtual int startInvite (const Address *destination, const std::string &subject = "", const Content *content = nullptr);
LinphoneStatus terminate (const LinphoneErrorInfo *ei = nullptr);
LinphoneStatus update (const CallSessionParams *csp, const std::string &subject = "");
LinphoneStatus update (const CallSessionParams *csp, const std::string &subject = "", const Content *content = nullptr);
CallSessionParams *getCurrentParams () const;
LinphoneCallDir getDirection () const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment