Skip to content
Snippets Groups Projects
Commit 16d5d67f authored by Sébastien Blin's avatar Sébastien Blin Committed by Philippe Gorley
Browse files

newcallmodel: link to transfer for sip call


+ Add the possibility to do a blind transfer
(transfer to a SIP number without calling him)
+ Add the possibility to do an attended transfer
(transfer to a current SIP call)

Change-Id: I88e09678e6edb0fea18172d4b84a6b3ae644284a
Gitlab: #362
Reviewed-by: default avatarPhilippe Gorley <philippe.gorley@savoirfairelinux.com>
parent 53a42379
No related branches found
No related tags found
No related merge requests found
......@@ -141,9 +141,17 @@ public:
*/
void setQuality(const std::string& callId, const double quality) const;
/**
* Not implemented yet
* Blind transfer. Directly transfer a call to a sip number
* @param callId: the call to transfer
* @param to: the sip number (for example: "sip:1412")
*/
void transfer(const std::string& callId, const std::string& to) const;
/**
* Perform an attended. Transfer a call to another call
* @param callIdSrc: the call to transfer
* @param callIdDest: the destination's call
*/
void transferToCall(const std::string& callIdSrc, const std::string& callIdDest) const;
/**
* Create a conference from 2 calls.
* @param callIdA uid of the call A
......
......@@ -282,7 +282,13 @@ NewCallModel::setQuality(const std::string& callId, const double quality) const
void
NewCallModel::transfer(const std::string& callId, const std::string& to) const
{
qDebug() << "transfer, isn't yet implemented";
CallManager::instance().transfer(callId.c_str(), to.c_str());
}
void
NewCallModel::transferToCall(const std::string& callId, const std::string& callIdDest) const
{
CallManager::instance().attendedTransfer(callId.c_str(), callIdDest.c_str());
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment