linphone发消息

void SendNews(CString sip,CString msg)
{
std::string str= CUtility::string_To_UTF8(msg.GetString());
LinphoneChatRoom* chat_room = linphone_core_get_chat_room_from_uri(the_core, sip.GetString());
linphone_chat_room_send_message(chat_room, str.c_str());
}

posted @ 2017-12-28 17:02  出来打酱油  阅读(583)  评论(0编辑  收藏  举报