Skip to content
Snippets Groups Projects
Commit dc888c7a authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3963] Get account ID from call for sendTextMessage

parent fe8b60a4
No related branches found
No related tags found
No related merge requests found
......@@ -1722,8 +1722,13 @@ void ManagerImpl::incomingMessage (const CallID& callID,
void ManagerImpl::sendTextMessage (const CallID& callID, const std::string& message)
{
if (participToConference (callID))
_debug ("Manager: Particip to a conference, send message on everyone");
AccountID accountId = getAccountFromCall (callID);
SIPVoIPLink * link = NULL;
link = dynamic_cast<SIPVoIPLink *> (getAccountLink (AccountNULL));
link = dynamic_cast<SIPVoIPLink *> (getAccountLink (accountId));
if (link == NULL) {
_debug ("Manager: Failed to get sip link");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment